You can call this operation to perform queries on health check statuses.

Request parameters

Name Type Required Description
Listeners String Yes The array of listeners that you want to query represented as a JSON string. For more information, see Listener.
Table 1. Listener
Name Type Required Description
InstanceId String Yes The ID of the Anti-DDoS Pro instance.
Protocol String Yes The listener protocol.
FrontendPort Integer Yes The port for front-end (client to Anti-DDoS Pro) connections. Valid values: 0-65535.
BackendPort Integer No The port for back-end (Anti-DDoS Pro to origin server) connections. Valid values: 0-65535.
RealServers JSON array No The IP addresses of the origin servers.
IsAutoCreate Boolean No Indicates whether the listener is automatically created. If true, the listener cannot be deleted or modified.

Response parameters

Name Type Description
HealthCheckStatusList HealthCheckStatus The array of health check statuses. For more information, see HealthCheckStatus.
RequestId String The GUID generated by Alibaba Cloud for the request.
Table 2. HealthCheckStatus
Name Type Description
InstanceId String The ID of the Anti-DDoS Pro instance.
Protocol String The listener protocol.
FrontendPort Integer The port for front-end connections.
RealServerStatusList RealServerStatus The statuses of origin servers represented as a JSON array. For more information, see RealServerStatus.
Status String The health check status. Valid values: normal and abnormal.
Table 3. RealServerStatus
Name Type Description
Address String The IP address of the origin server.
Status String The status of the origin server. Valid values: normal and abnormal.

Examples

Sample requests
{
  "Listeners": "[{\"InstanceId\":\"0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc\",\"Protocol\":\"tcp\",\"FrontendPort\":80}]"
}
Sample responses
{
  "HealthCheckStatusList": [
    {
      "InstanceId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc",
      "Protocol": "tcp",
      "FrontendPort": 80,
	  "Status": "normal",
	  "RealServerStatusList": [
        "Status": "normal",
        "Address": "1.1.1.1"
      ]
    }
  ],
  "RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}