Skip to main content

DescribeHealthStatus

Description

call the DescribeHealthStatus to query the health status of the backend server.

Request Method

POST

Request Path

/apsara/route/Slb/DescribeHealthStatus

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
ListenerPortBODYintegerNo80the port used by the front end of the load balancing instance. value:1~65535 Description If this parameter is not set, it means that the health check status of all ports is obtained.
regionIdBODYstringYesNo sample value for this parameter.region id
LoadBalancerIdBODYstringYeslb-bp1qjwo61pqz3ah****load balancing instance ID.
RegionIdBODYstringYescn-hangzhouthe region ID of the load balancing instance.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
ListenerPortinteger80the port used by the front end of the load balancing instance.
ServerIdstringi-bp1h5u3fv54ytf****ECS instance ID or ENI instance ID.
RequestIdstring365F4154-92F6-4AE4-92F8-7FF34B540710request ID.
BackendServerNo sample value for this parameter.No description for this parameter.
portinteger80No description for this parameter.
ServerHealthStatusstringabnormalthe health status of the backend server. normal: backend server health. abnormal: the backend server is unhealthy. unavailable: health check has not been completed.
BackendServersarray of backendserverNo sample value for this parameter.backend server list.

Example

Successful Response example

{
"ListenerPort":"80",
"ServerId":"i-bp1h5u3fv54ytf****",
"RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
"BackendServer":"",
"port":"80",
"ServerHealthStatus":"abnormal",
"BackendServers":""
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}