Queries the health status of origins under one or more load balancers.
Operation description
Queries the health status of origins in the origin pools of one or more load balancers. You can specify multiple load balancer IDs separated by commas. This operation applies only to load balancers with monitors configured. The monitor probes each origin in the associated origin pools and records its current status.
-
Healthy (healthy): The origin is reachable.
-
Unhealthy (unhealthy): The origin is unreachable.
-
Unknown (unknown): The monitor has not yet probed the origin.
-
Undetected (undetected): The load balancer that the origin belongs to is not bound to a monitor.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:ListLoadBalancerOriginStatus |
list |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
The site ID. |
1159101787**** |
| LoadBalancerIds |
string |
Yes |
The load balancer IDs. To query multiple load balancers, separate the IDs with commas. You can specify up to 100 load balancer IDs at a time. You can obtain load balancer IDs by calling the ListLoadBalancers operation. |
99874066052****,100892832360**** |
| PoolType |
string |
No |
The origin pool type. A load balancer can have multiple origin pools configured, including default pools, fallback pools, and primary region pools. Only the status of origins in the default pool affects the overall load balancer status. Set this parameter to |
default_pool |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
0AEDAF20-4DDF-4165-8750-47FF9C1929C9 |
| OriginStatus |
array<object> |
The origin status list for the load balancer. |
|
|
object |
The origin status details. |
||
| LoadBalancerId |
integer |
The load balancer ID. |
99874066052**** |
| OriginId |
integer |
The origin ID. |
99750209487**** |
| PoolId |
integer |
The origin pool ID. |
99750209487**** |
| Status |
string |
The origin status. Valid values:
|
healthy |
| Reason |
string |
The reason for the probe failure. |
TCP connection error |
| PoolType |
string |
The type of origin pool to which the origin belongs under this load balancer. Only |
default_pool |
Examples
Success response
JSON format
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9",
"OriginStatus": [
{
"LoadBalancerId": 0,
"OriginId": 0,
"PoolId": 0,
"Status": "healthy",
"Reason": "TCP connection error",
"PoolType": "default_pool"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | LoadBalancerNotExist | The specified load balancer name is invalid or load balancing is not enabled for your website.Make sure that you specify a valid load balancer name and load balancing is enabled. Then, try again. | The specified load balancer name is invalid or load balancing is not enabled for your website.Make sure that you specify a valid load balancer name and load balancing is enabled. Then, try again. |
| 404 | SiteNotFound | The website does not exist or does not belong to you. | The website does not exist or does not belong to you. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.