Queries Server Load Balancer (SLB) instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request header. For more information, see Common request parameters.

Request syntax

GET /pop/v5/slb_list HTTPS|HTTP

Request parameters

None.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Message String success

The additional information.

RequestId String b197-40ab-9155-7ca7

The ID of the request.

SlbList Array of SlbEntity

The list of SLB instances.

SlbEntity
Address String 39.XX.XX.176

The IP address of the SLB instance.

AddressType String internet

The type of the IP address.

Expired Boolean false

Indicates whether the SLB instance has expired.

  • true: expired
  • false: not expired
GroupId Integer 0

The ID of the Enterprise Distributed Application Service (EDAS) resource group.

NetworkType String classic

The type of the network where the returned SLB instance is located.

RegionId String cn-beijing

The ID of the region.

SlbId String lb-2ze055t3xv7s8****

The ID of the SLB instance.

SlbName String adce

The name of the SLB instance.

SlbStatus String active

The status of the SLB instance.

UserId String edas_****_**st@aliyun-****.com

The ID of the user.

VpcId String ""

The ID of the virtual private cloud (VPC).

VswitchId String ""

The ID of the vSwitch in the VPC.

Examples

Sample requests

GET /pop/v5/slb_list HTTP/1.1
Common request parameters

Sample success responses

XML format

<Message>success</Message>
<SlbList>
    <SlbEntity>
        <NetworkType>vpc</NetworkType>
        <SlbId>lb-2zebf1fpbpkc7dnro****</SlbId>
        <SlbStatus>active</SlbStatus>
        <Expired>false</Expired>
        <Address>192.168.0.196</Address>
        <RegionId>cn-beijing</RegionId>
        <VswitchId>vsw-2zerrn5g7esghlsjk****</VswitchId>
        <AddressType>intranet</AddressType>
        <UserId>edas_****_test@aliyun-****.com</UserId>
        <SlbName>K8sMasterSlbIntranet</SlbName>
        <GroupId>0</GroupId>
        <VpcId>vpc-2ze1ram356umxs598****</VpcId>
    </SlbEntity>
    <SlbEntity>
        <NetworkType>classic</NetworkType>
        <SlbId>lb-2zebmw95pzkkrx69b****</SlbId>
        <SlbStatus>active</SlbStatus>
        <Expired>false</Expired>
        <Address>112.XX.XX.149</Address>
        <RegionId>cn-beijing</RegionId>
        <VswitchId/>
        <AddressType>internet</AddressType>
        <UserId>edas_****_test@aliyun-****.com</UserId>
        <SlbName>a9315af59b4cd11e9a18c00163e1****</SlbName>
        <GroupId>0</GroupId>
        <VpcId/>
    </SlbEntity>
</SlbList>
<Code>200</Code>

JSON format

{
    "Message": "success",
    "SlbList": {
        "SlbEntity": [
            {
                "NetworkType": "vpc",
                "SlbId": "lb-2zebf1fpbpkc7dnro****",
                "SlbStatus": "active",
                "Expired": false,
                "Address": "192.168.0.196",
                "RegionId": "cn-beijing",
                "VswitchId": "vsw-2zerrn5g7esghlsjk****",
                "AddressType": "intranet",
                "UserId": "edas_****_test@aliyun-****.com",
                "SlbName": "K8sMasterSlbIntranet",
                "GroupId": 0,
                "VpcId": "vpc-2ze1ram356umxs598****"
            },
            {
                "NetworkType": "classic",
                "SlbId": "lb-2zebmw95pzkkrx69b****",
                "SlbStatus": "active",
                "Expired": false,
                "Address": "112.XX.XX.149",
                "RegionId": "cn-beijing",
                "VswitchId": "",
                "AddressType": "internet",
                "UserId": "edas_****_test@aliyun-****.com",
                "SlbName": "a9315af59b4cd11e9a18c00163e1****",
                "GroupId": 0,
                "VpcId": ""
            }
        ]
    },
    "Code": 200
}

Error codes

For a list of error codes, visit the API Error Center.