Retrieves the health status information of endpoint groups and endpoints under a specified listener.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ga:GetHealthStatus |
get |
*Listener
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the Alibaba Cloud Global Accelerator (GA) instance. Set the value to cn-hangzhou. |
cn-hangzhou |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. Note
If you do not specify this parameter, the system automatically uses the RequestId of the API request as the ClientToken. The RequestId of each API request is unique. |
123e4567-e89b-12d3-a456-426655440000 |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. Valid values:
|
true |
| AcceleratorId |
string |
Yes |
The instance ID of the Alibaba Cloud Global Accelerator (GA). |
ga-bp1odcab8tmno0hdq**** |
| ListenerId |
string |
Yes |
The instance ID of the listener. |
lsr-bp1bpn0kn908w4nbw**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The list of returned information. |
||
| EndpointGroups |
array<object> |
The endpoint group information. |
|
|
array<object> |
The endpoint group information. |
||
| EndpointGroupId |
string |
The ID of the endpoint group. |
epg-bp14sz7ftcwwjgrdm**** |
| EndpointGroupType |
string |
The type of the endpoint group. Valid values:
|
default |
| Endpoints |
array<object> |
The endpoint information. |
|
|
object |
The endpoint information. |
||
| Address |
string |
The address of the endpoint. |
47.0.XX.XX |
| EndpointId |
string |
The ID of the endpoint. |
ep-hp33b2e43fays7s8**** |
| HealthDetail |
string |
The health check details of the endpoint. Note
This parameter is not supported. |
None |
| HealthStatus |
string |
The health status of the endpoint. Valid values:
|
normal |
| Port |
integer |
The port of the endpoint. |
80 |
| Type |
string |
The endpoint type. Valid values:
|
Ip |
| ForwardingRuleIds |
array |
The list of forwarding rule IDs. |
|
|
string |
The list of forwarding rule IDs. |
frule-bp134k63nmtwmnwee**** |
|
| HealthStatus |
string |
The health status of the endpoint group. Valid values:
|
normal |
| HealthStatus |
string |
The health status of the endpoint groups and endpoints under the listener. Valid values:
|
normal |
| ListenerId |
string |
The instance ID of the listener. |
lsr-bp1bpn0kn908w4nbw**** |
| RequestId |
string |
The request ID. |
64ADAB1E-0B7F-4FD8-A404-3BECC0E9CCFF |
Examples
Success response
JSON format
{
"EndpointGroups": [
{
"EndpointGroupId": "epg-bp14sz7ftcwwjgrdm****",
"EndpointGroupType": "default",
"Endpoints": [
{
"Address": "47.0.XX.XX",
"EndpointId": "ep-hp33b2e43fays7s8****",
"HealthDetail": "无",
"HealthStatus": "normal",
"Port": 80,
"Type": "Ip"
}
],
"ForwardingRuleIds": [
"frule-bp134k63nmtwmnwee****"
],
"HealthStatus": "normal"
}
],
"HealthStatus": "normal",
"ListenerId": "lsr-bp1bpn0kn908w4nbw****",
"RequestId": "64ADAB1E-0B7F-4FD8-A404-3BECC0E9CCFF"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.