ListEndpointGroups
Queries endpoint groups.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ga:ListEndpointGroups |
list |
*EndpointGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the Global Accelerator (GA) instance. Set the value to cn-hangzhou. |
cn-hangzhou |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page in a paging query. Maximum value: 50. Default value: 10. |
10 |
| AcceleratorId |
string |
Yes |
The ID of the Global Accelerator (GA) instance. |
ga-bp1odcab8tmno0hdq**** |
| ListenerId |
string |
No |
The ID of the listener. |
lsr-bp1bpn0kn908w4nbw**** |
| EndpointGroupType |
string |
No |
The type of the endpoint group. Valid values:
Valid values:
|
virtual |
| AccessLogSwitch |
string |
No |
Specifies whether to enable access logging. Valid values:
|
on |
| EndpointGroupId |
string |
No |
The ID of the endpoint group. |
epg-bp16jdc00bhe97sr5**** |
| Tag |
array<object> |
No |
The tags of the endpoint group. |
|
|
object |
No |
The tags of the endpoint group. |
||
| Key |
string |
No |
The tag key of the endpoint group.
The tag key cannot be an empty string.
The tag key can be up to 64 characters in length and cannot start with |
test-key |
| Value |
string |
No |
The tag value of the endpoint group. The tag value can be an empty string.
The tag value can be up to 128 characters in length and cannot start with |
test-value |
| EndpointGroupRegion |
string |
No |
The region ID of the endpoint group used for filtering. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The list of returned information. |
||
| TotalCount |
integer |
The total number of entries in the list. |
1 |
| PageSize |
integer |
The number of entries returned per page in a paged query. This parameter is used for paging. |
10 |
| RequestId |
string |
The request ID. |
A052D49E-CCC2-41DB-816C-DC3381503194 |
| PageNumber |
integer |
The page number of the returned list. |
1 |
| EndpointGroups |
array<object> |
The endpoint group configurations. |
|
|
array<object> |
The endpoint group configurations. |
||
| EndpointGroupId |
string |
The ID of the endpoint group. |
epg-bp16jdc00bhe97sr5**** |
| EndpointGroupIpList |
array |
The list of outbound public IP addresses of the endpoint group. Important
For endpoint groups that use private network back-to-origin routing, the console displays only the private back-to-origin addresses and no longer displays public addresses. If the network connectivity type of the backend service in the endpoint group changes, such as from private network to public network, or to a hybrid of public and private networks, monitor the changes in back-to-origin addresses and update the access control list (ACL) of the backend service in synchronization. |
|
|
string |
An outbound public IP address of the endpoint group. |
47.1.XX.XX |
|
| EndpointGroupUnconfirmedIpList |
array |
The list of new endpoint group IP addresses that are pending confirmation after the Alibaba Cloud Global Accelerator (GA) instance is upgraded. |
|
|
string |
The list of new endpoint group IP addresses that are pending confirmation after the Alibaba Cloud Global Accelerator (GA) instance is upgraded. |
47.1.XX.XX |
|
| State |
string |
The status of the endpoint group. Valid values:
|
active |
| HealthCheckPath |
string |
The health check path. |
/healthcheck |
| EndpointGroupRegion |
string |
The ID of the region to which the endpoint group belongs. |
cn-hangzhou |
| HealthCheckIntervalSeconds |
integer |
The interval between two consecutive health checks. Unit: seconds. |
3 |
| TrafficPercentage |
integer |
The traffic percentage routed to the endpoint group when a listener is associated with multiple endpoint groups. |
100 |
| HealthCheckProtocol |
string |
The protocol used for health checks. Valid values:
|
tcp |
| ThresholdCount |
integer |
The number of consecutive failed health checks required to mark an endpoint as unhealthy. |
3 |
| ListenerId |
string |
The listener instance ID. |
lsr-bp1bpn0kn908w4nbw**** |
| AcceleratorId |
string |
The Alibaba Cloud Global Accelerator (GA) instance ID. |
ga-bp1odcab8tmno0hdq**** |
| EndpointConfigurations |
array<object> |
The endpoint configurations. |
|
|
object |
The endpoint configurations. |
||
| Type |
string |
The endpoint type. Valid values:
|
Ip |
| EnableClientIPPreservation |
boolean |
Specifies whether client IP address preservation is enabled by using the automatic retrieval method. Valid values:
|
false |
| Weight |
integer |
The weight of the endpoint. |
20 |
| ProbeProtocol |
string |
The probe protocol used for latency monitoring. Valid values:
|
tcp |
| Endpoint |
string |
The IP address, domain name, or instance ID of the endpoint. |
47.1.XX.XX |
| EnableProxyProtocol |
boolean |
Specifies whether client IP address preservation is enabled by using the Proxy Protocol. Valid values:
|
|
| ProbePort |
integer |
The probe port used for latency monitoring. |
80 |
| EndpointId |
string |
The endpoint ID. |
ep-bp1d2utp8qqe2a44t**** |
| SubAddress |
string |
The private IP of the elastic network interface controller (NIC). |
172.168.XX.XX |
| VpcId |
string |
The virtual private cloud (VPC) ID. |
vpc-8vbhucmd5b2q2fpqqu**** |
| VSwitchIds |
array |
The list of vSwitches in the VPC. |
|
|
string |
The vSwitch ID. |
vsw-hp3xwc2aebg2u30ln**** |
|
| Provider |
string |
The provider information. |
BAILIAN |
| ApiKeys |
array |
The API keys in the endpoint configuration. |
|
|
string |
The first API key in the endpoint group. |
sk-******* |
|
| PortOverrides |
array<object> |
The port mappings. |
|
|
object |
The port mappings. |
||
| ListenerPort |
integer |
The listener port. |
443 |
| EndpointPort |
integer |
The endpoint port. |
80 |
| ForwardingRuleIds |
array |
The IDs of the forwarding rules associated with the endpoint group. |
|
|
string |
The IDs of the forwarding rules associated with the endpoint group. |
frule-bp19a3t3yzr21q3**** |
|
| EndpointGroupType |
string |
The endpoint group type. Valid values:
|
default |
| EndpointRequestProtocol |
string |
The backend service protocol. Valid values:
|
HTTP |
| EndpointProtocolVersion |
string |
The backend service protocol version. Valid values:
|
HTTP1.1 |
| Description |
string |
The description of the endpoint group. |
group1 |
| Name |
string |
The name of the endpoint group. |
group1 |
| HealthCheckPort |
integer |
The health check port. |
10 |
| HealthCheckEnabled |
boolean |
Specifies whether health checks are enabled. Valid values:
|
true |
| ServiceId |
string |
The ID of the service provider to which the managed instance belongs. Note
This parameter is valid only when the ServiceManaged parameter is set to True. |
ALB |
| ServiceManaged |
boolean |
Specifies whether the instance is a managed instance. Valid values:
|
true |
| ServiceManagedInfos |
array<object> |
The list of action policies that users can execute on the managed instance. Note
|
|
|
object |
An action policy that users can execute on the managed instance. |
||
| Action |
string |
The name of the managed policy action. Valid values:
|
Update |
| ChildType |
string |
The child resource type. Valid values:
Note
This parameter is valid only when the Action parameter is set to CreateChild. |
Listener |
| IsManaged |
boolean |
Specifies whether the managed policy action is managed. Valid values:
|
false |
| Tags |
array<object> |
The tags of the endpoint group. |
|
|
object |
The tags of the endpoint group. |
||
| Key |
string |
The tag key of the endpoint group. |
test-key |
| Value |
string |
The tag value of the endpoint group. |
test-value |
| HealthCheckHost |
string |
The domain name used for health checks. |
www.taobao.com |
| EndpointIpVersion |
string |
The backend IP address protocol. Valid values:
|
IPv4 |
| EndpointPrivateIpList |
array<object> |
The list of private IP addresses of the backend endpoints. |
|
|
object |
|||
| PrivateIp |
string |
The private IP address. |
172.19.115.37 |
| VSwitchId |
string |
The ID of the vSwitch in the VPC. |
gsw-0jl6tmriqep1ga*** |
| CIDR |
string |
The CIDR block associated with the private IP address. |
10.0.0.0/24 |
| HealthCheckSuccessCodes |
string |
The set of HTTP status codes that indicate a successful health check. |
http_2xx,http_3xx |
| HealthCheckMethod |
string |
The HTTP request method used for health checks. |
GET |
| ProxyTunnel |
object |
The proxy tunnel configuration. |
|
| ConnectAuthPrefix |
string |
The authentication prefix for the proxy tunnel connection. |
prefix-auth |
| ConnectAuthSuffix |
string |
The authentication suffix for the proxy tunnel connection. |
suffix-auth |
| ConnectSessionHashHdr |
string |
The name of the request header used for session hashing. |
X-Session-Hash |
| ConnectTunnelTimeout |
integer |
The timeout period for the proxy tunnel connection. Unit: milliseconds. |
5000 |
| TunnelServerPort |
integer |
The tunnel server port. |
8443 |
| TunnelServerType |
string |
The address type of the tunnel server. Valid values: ip (IPv4 address) and domain (domain name). |
domain |
| TunnelServer |
string |
The IPv4 address or domain name of the tunnel server. |
tunnel.example.com |
Examples
Success response
JSON format
{
"TotalCount": 1,
"PageSize": 10,
"RequestId": "A052D49E-CCC2-41DB-816C-DC3381503194\t",
"PageNumber": 1,
"EndpointGroups": [
{
"EndpointGroupId": "epg-bp16jdc00bhe97sr5****",
"EndpointGroupIpList": [
"47.1.XX.XX"
],
"EndpointGroupUnconfirmedIpList": [
"47.1.XX.XX"
],
"State": "active",
"HealthCheckPath": "/healthcheck",
"EndpointGroupRegion": "cn-hangzhou",
"HealthCheckIntervalSeconds": 3,
"TrafficPercentage": 100,
"HealthCheckProtocol": "tcp",
"ThresholdCount": 3,
"ListenerId": "lsr-bp1bpn0kn908w4nbw****",
"AcceleratorId": "ga-bp1odcab8tmno0hdq****",
"EndpointConfigurations": [
{
"Type": "Ip",
"EnableClientIPPreservation": false,
"Weight": 20,
"ProbeProtocol": "tcp",
"Endpoint": "47.1.XX.XX",
"EnableProxyProtocol": false,
"ProbePort": 80,
"EndpointId": "ep-bp1d2utp8qqe2a44t****",
"SubAddress": "172.168.XX.XX",
"VpcId": "vpc-8vbhucmd5b2q2fpqqu****",
"VSwitchIds": [
"vsw-hp3xwc2aebg2u30ln****"
],
"Provider": "BAILIAN",
"ApiKeys": [
"sk-*******"
]
}
],
"PortOverrides": [
{
"ListenerPort": 443,
"EndpointPort": 80
}
],
"ForwardingRuleIds": [
"frule-bp19a3t3yzr21q3****"
],
"EndpointGroupType": "default",
"EndpointRequestProtocol": "HTTP",
"EndpointProtocolVersion": "HTTP1.1",
"Description": "group1",
"Name": "group1",
"HealthCheckPort": 10,
"HealthCheckEnabled": true,
"ServiceId": "ALB",
"ServiceManaged": true,
"ServiceManagedInfos": [
{
"Action": "Update",
"ChildType": "Listener",
"IsManaged": false
}
],
"Tags": [
{
"Key": "test-key",
"Value": "test-value"
}
],
"HealthCheckHost": "www.taobao.com",
"EndpointIpVersion": "IPv4",
"EndpointPrivateIpList": [
{
"PrivateIp": "172.19.115.37",
"VSwitchId": "gsw-0jl6tmriqep1ga***",
"CIDR": "10.0.0.0/24"
}
],
"HealthCheckSuccessCodes": "http_2xx,http_3xx",
"HealthCheckMethod": "GET",
"ProxyTunnel": {
"ConnectAuthPrefix": "prefix-auth",
"ConnectAuthSuffix": "suffix-auth",
"ConnectSessionHashHdr": "X-Session-Hash",
"ConnectTunnelTimeout": 5000,
"TunnelServerPort": 8443,
"TunnelServerType": "domain",
"TunnelServer": "tunnel.example.com"
}
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | No permissions. | No permissions. |
| 500 | UnknownError | An error occurred while processing your request. Please try again. If the error persists, please submit a ticket. | An error occurred while the request was being processed. Try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.