Queries the health status of listeners.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetHealthStatus

The operation that you want to perform. Set the value to GetHealthStatus.

RegionId String Yes cn-hangzhou

The ID of the region where the Global Accelerator (GA) instance is deployed. Set the value to cn-hangzhou.

ClientToken String No 5A2CFF0E-5718-45B5-9D4D-70B3FF3898

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 only contain ASCII characters and cannot exceed 64 characters in length.

DryRun Boolean No true

Specifies whether only to precheck the request. Valid values:

  • true: prechecks the request without creating resources. The system checks the required parameters, request format, and service limits. If the precheck fails, an error message is returned. If the precheck is successful, the error code DryRunOperation is returned.
  • false: sends the request. If the precheck is successful, a 2xx HTTP status code is returned and the operation is performed. Default value: false.
AcceleratorId String Yes ga-bp1odcab8tmno0hdq****

The ID of the GA instance.

ListenerId String Yes lsr-bp1bpn0kn908w4nbw****

The ID of the listener.

Response parameters

Parameter Type Example Description
RequestId String 64ADAB1E-0B7F-4FD8-A404-3BECC0E9CCFF

The ID of the request.

ListenerId String lsr-bp1bpn0kn908w4nbw****

The ID of the listener.

HealthStatus String normal

The health status of the listener. Valid values:

  • normal: The listener is running as expected.
  • Abnormal: The listener is abnormal.
  • partiallyAbnormal: Some endpoint groups that are associated with the listener are abnormal.
EndpointGroups Array of endpointGroupHealthStatuses

The information about the endpoint groups.

EndpointGroupId String epg-bp14sz7ftcwwjgrdm****

The ID of the endpoint group.

EndpointGroupType String default

The type of the endpoint group. Valid values:

  • default: a default endpoint group
  • virtual: a virtual endpoint group
HealthStatus String normal

The health status of the endpoint group. Valid values:

  • init: The endpoint group is being initialized.
  • normal: The endpoint group is normal.
  • abnormal: The endpoint group is abnormal.
  • partiallyAbnormal: Some endpoints in the endpoint group are abnormal.
ForwardingRuleIds Array of String frule-bp134k63nmtwmnweexxxx

The IDs of the forwarding rules.

Endpoints Array of endpointHealthStatuses

The information about the endpoints.

EndpointId String ep-hp33b2e43fays7s8****

The ID of the endpoint.

Address String 127.xxx.xxx.xxx

The IP address of the endpoint.

HealthStatus String normal

The health status of the endpoint. Valid values:

  • init: The endpoint is being initialized.
  • normal: The endpoint is normal.
  • Abnormal: The endpoint is abnormal.
HealthDetail String None

The health check details of the endpoint.

Port Long 80

The port number that is used to connect to the endpoint.

Type String Ip

The type of the endpoint. Valid values:

  • Domain: a custom domain name
  • Ip: a custom IP address
  • PublicIp: a public IP address provided by Alibaba Cloud
  • ECS: an Elastic Compute Service (ECS) instance
  • SLB: a Server Load Balancer (SLB) instance


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "64ADAB1E-0B7F-4FD8-A404-3BECC0E9CCFF",
  "ListenerId" : "lsr-bp1bpn0kn908w4nbw****",
  "HealthStatus" : "normal",
  "EndpointGroups" : [ {
    "EndpointGroupId" : "epg-bp14sz7ftcwwjgrdm****",
    "EndpointGroupType" : "default",
    "HealthStatus" : "normal",
    "ForwardingRuleIds" : [ "frule-bp134k63nmtwmnweexxxx" ],
    "Endpoints" : [ {
      "EndpointId" : "ep-hp33b2e43fays7s8****",
      "Address" : "127.xxx.xxx.xxx",
      "HealthStatus" : "normal",
      "HealthDetail" : "None",
      "Port" : 80,
      "Type" : "Ip"
    } ]
  } ]

Error codes

For a list of error codes, visit the API Error Center.