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.0/lbaas/loadbalancers/{loadbalancer_id}/statuses
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
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 |
This field is reserved. It specifies the operating status of the load balancer. The value can be one of the following:
|
provisioning_status |
String |
This parameter is reserved, and its value can only be ACTIVE. It specifies the provisioning status of the load balancer. |
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 |
This parameter is reserved, and its value can only be ONLINE. It specifies the operating status of the listener. |
provisioning_status |
String |
This parameter is reserved, and its value can only be ACTIVE. It specifies the provisioning status of the listener. |
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 |
This parameter is reserved, and its value can only be ONLINE. It specifies the operating status of the backend server group. |
provisioning_status |
String |
This parameter is reserved, and its value can only be ACTIVE. It specifies the provisioning status of the backend server group. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the health check ID. |
name |
String |
Specifies the health check name. |
type |
String |
|
provisioning_status |
String |
This parameter is reserved, and its value can only be ACTIVE. It specifies the provisioning status of the health check. |
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 |
Specifies the port used by the backend server. The port number ranges from 0 to 65535. |
operating_status |
String |
This parameter is reserved. It specifies the operating status of the backend server. The value can be one of the following:
NOTE:
When admin_state_up is set to false and operating_status is set to OFFLINE for a backend server, DISABLED is returned for operating_status of the backend server in the response of this API. |
provisioning_status |
String |
This parameter is reserved, and its value can only be ACTIVE. It specifies the provisioning status of the backend server. |
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 |
This parameter is reserved. It specifies the provisioning status of the forwarding policy. Value options:
|
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the forwarding rule ID. |
type |
String |
|
provisioning_status |
String |
This parameter is reserved. It specifies the provisioning status of the forwarding rule. The value can be one of the following:
|
Example Request
- Example request
GET https://{Endpoint}/v2.0/lbaas/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 Status Codes.
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