Querying the Status Tree of a Load Balancer
Function
This API is used to query the status tree of a load balancer. You can use this API to query details about the associated listeners, backend server groups, backend servers, health checks, forwarding policies, and forwarding rules, helping you understand the topology of resources associated with the load balancer.
URI
GET /v2/{project_id}/elb/loadbalancers/{loadbalancer_id}/statuses
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
loadbalancer_id |
Yes |
String |
Specifies the load balancer ID. |
Request
None
Response
Parameter |
Type |
Description |
---|---|---|
statuses |
Object |
Specifies the status tree of a load balancer. For details, see Table 3. |
Parameter |
Type |
Description |
---|---|---|
loadbalancer |
Object |
Specifies the load balancer. For details, see Table 4. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the load balancer ID. |
name |
String |
Specifies the load balancer name. The value contains a maximum of 255 characters. |
listeners |
Array |
Lists the listeners added to the load balancer. For details of this parameter, see Table 5. |
pools |
Array |
Lists the backend server groups associated with the load balancer. For details of this parameter, see Table 6. |
operating_status |
String |
|
provisioning_status |
String |
|
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the listener ID. |
name |
String |
Specifies the listener name. |
l7policies |
Array |
Lists associated forwarding policies. For details of this parameter, see Table 9. |
pools |
Array |
Lists the backend server groups associated with the listener. For details of this parameter, see Table 6. |
operating_status |
String |
|
provisioning_status |
String |
|
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the ID of the backend server group. |
name |
String |
Specifies the name of the backend server group. |
healthmonitor |
Object |
Provides health check details of the backend server group. For details of this parameter, see Table 7. |
members |
Array |
Lists the members contained in the backend server group. For details of this parameter, see Table 8. |
operating_status |
String |
|
provisioning_status |
String |
|
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the health check ID. |
name |
String |
Specifies the health check name. |
type |
String |
|
provisioning_status |
String |
|
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the backend server ID. |
address |
String |
Specifies the private IP address of the backend server, for example, 192.168.3.11. |
protocol_port |
Integer |
|
operating_status |
String |
|
provisioning_status |
String |
|
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the forwarding policy ID. |
name |
String |
Specifies the forwarding policy name. |
rules |
Array |
Lists the forwarding rules of the forwarding policy. For details of this parameter, see Table 10. |
action |
String |
|
provisioning_status |
String |
|
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the forwarding rule ID. |
type |
String |
|
provisioning_status |
String |
|
Example Request
- Example request
GET https://{Endpoint}/v2/145483a5107745e9b3d80f956713e6a3/elb/loadbalancers/38278031-cfca-44be-81be-a412f618773b/statuses
Example Response
- Example response
{ "statuses": { "loadbalancer": { "name": "lb-jy", "provisioning_status": "ACTIVE", "listeners": [ { "name": "listener-jy-1", "provisioning_status": "ACTIVE", "pools": [ { "name": "pool-jy-1", "provisioning_status": "ACTIVE", "healthmonitor": { "type": "TCP", "id": "7422b51a-0ed2-4702-9429-4f88349276c6", "name": "", "provisioning_status": "ACTIVE" }, "members": [ { "protocol_port": 80, "address": "192.168.44.11", "id": "7bbf7151-0dce-4087-b316-06c7fa17b894", "operating_status": "ONLINE", "provisioning_status": "ACTIVE" } ], "id": "c54b3286-2349-4c5c-ade1-e6bb0b26ad18", "operating_status": "ONLINE" } ], "l7policies": [], "id": "eb84c5b4-9bc5-4bee-939d-3900fb05dc7b", "operating_status": "ONLINE" } ], "pools": [ { "name": "pool-jy-1", "provisioning_status": "ACTIVE", "healthmonitor": { "type": "TCP", "id": "7422b51a-0ed2-4702-9429-4f88349276c6", "name": "", "provisioning_status": "ACTIVE" }, "members": [ { "protocol_port": 80, "address": "192.168.44.11", "id": "7bbf7151-0dce-4087-b316-06c7fa17b894", "operating_status": "ONLINE", "provisioning_status": "ACTIVE" } ], "id": "c54b3286-2349-4c5c-ade1-e6bb0b26ad18", "operating_status": "ONLINE" } ], "id": "38278031-cfca-44be-81be-a412f618773b", "operating_status": "ONLINE" } } }
Status Code
For details, see HTTP Status Codes of Load Balancers.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot