Queries the health check status of a Network Load Balancer (NLB) listener.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nlb:GetListenerHealthStatus |
get |
*LoadBalancer
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ListenerId |
string |
Yes |
The ID of the listener on the NLB instance. |
lsn-bp1bpn0kn908w4nbw****@80 |
| RegionId |
string |
No |
The ID of the region where the NLB instance is deployed. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The health check status of the listener. |
||
| RequestId |
string |
The ID of the request. |
54B48E3D-DF70-471B-AA93-08E683A1B45 |
| ListenerHealthStatus |
array<object> |
The health check status of the server group of the listener. |
|
|
array<object> |
The health check status of the server group of the listener. |
||
| ListenerId |
string |
The ID of the listener of the NLB instance. |
lsn-bp1bpn0kn908w4nbw****@80 |
| ListenerPort |
integer |
The listening port. |
80 |
| ListenerProtocol |
string |
The listening protocol. Valid values: TCP, UDP, and TCPSSL. |
TCPSSL |
| ServerGroupInfos |
array<object> |
The information about the server groups. |
|
|
array<object> |
The information about the server group. |
||
| HeathCheckEnabled |
boolean |
Indicates whether the health check feature is enabled. Valid values:
|
true |
| ServerGroupId |
string |
The ID of the server group. |
sgp-ppdpc14gdm3x4o**** |
| NonNormalServers |
array<object> |
A list of unhealthy backend servers. |
|
|
array<object> |
A list of unhealthy backend servers. |
||
| Status |
string |
The health check status. Valid values:
|
Initial |
| Port |
integer |
The backend port. |
80 |
| Reason |
object |
The cause of the health check failure. |
|
| ReasonCode |
string |
The reason why the status is abnormal. Valid values:
|
CONNECT_TIMEOUT |
| ServerId |
string |
The ID of the backend server. |
i-bp1bt75jaujl7tjl**** |
| ServerIp |
string |
The IP address of the backend server. |
192.168.8.10 |
| TotalCount |
integer |
The number of entries returned. |
10 |
| NextToken |
string |
The token that is used for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
The number of entries returned per page. |
20 |
Examples
Success response
JSON format
{
"RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B45",
"ListenerHealthStatus": [
{
"ListenerId": "\tlsn-bp1bpn0kn908w4nbw****@80",
"ListenerPort": 80,
"ListenerProtocol": "TCPSSL",
"ServerGroupInfos": [
{
"HeathCheckEnabled": true,
"ServerGroupId": "sgp-ppdpc14gdm3x4o****",
"NonNormalServers": [
{
"Status": "Initial",
"Port": 80,
"Reason": {
"ReasonCode": "CONNECT_TIMEOUT"
},
"ServerId": "i-bp1bt75jaujl7tjl****",
"ServerIp": "192.168.8.10"
}
]
}
]
}
],
"TotalCount": 10,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"MaxResults": 20
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SystemBusy | System is busy, please try again later. | |
| 403 | Forbidden.NoPermission | Authentication is failed for NoPermission. | Authentication is failed for NoPermission. |
| 404 | ResourceNotFound.loadBalancer | The specified resource of loadbalancer is not found. | The specified load balancer resource was not found. Please check the input parameters. |
| 404 | ResourceNotFound.listener | The specified resource %s is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.