DescribeLoadBalancers

1. API Description

This API is used to query the list of load balancer instances.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter Name
Required
Type
Description

regionId

No

String

Region ID.

vpcId

No

String

Filter by the VPC ID to which the load balance backend server belongs.

loadBalancerIds

No

Array of String

ID list of the load balance instance.

The maximum number of instance IDs is 100.

loadBalancerName

No

String

Load balance instance name.

Add * at the end to support fuzzy matching.

pageSize

No

Integer

Number of items in the current page result.

Default value: 20; Maximum value: 1000.

pageNum

No

Integer

Page number of the current page result.

Default value: 1.

3. Output Parameters

Parameter Name
Type
Description

requestId

String

The unique request ID, which is returned for each request. RequestId is required to locate a problem.

totalCount

Integer

The total number of load balance instances that meet the filtering conditions.

dataSet

Array of LoadBalancer

The returned list of load balance instances.

4. Code Example

View the list of load balancer instances.

POST /api/v2/zlb HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: DescribeLoadBalancers
<Common Request Params>

Request:
{
}

Response:
{
    "requestId": "TC073A2C6-3923-48AD-960F-446CBF303A2A",
    "response": {
        "requestId": "TC073A2C6-3923-48AD-960F-446CBF303A2A",
        "totalCount": 6,
        "dataSet": [
            {
                "loadBalancerId": "<loadBalancerId>",
                "listenerCount": 0,
                "regionId": "asia-east-1",
                "publicIpAddress": [
                    "128.xx.xx.1"
                ],
                "createTime": "2025-04-01T01:01:01Z",
                "loadBalancerName": "sample-load-balancer",
                "vpcId": "<vpcId>",
                "status": "RUNNING"
              }
        ]
    }
}

5. Developer Resources

Zenlayer Cloud API 2.0 SDKs to make it easier for you to call APIs. More programming languages will be supported.

6. Error Codes

No error codes related to the API business logic. For other error codes, see Common Error Codes.​

Last updated