You can call this operation to query 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 only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

GET /pop/v5/slb_list HTTPS|HTTP

Request parameters

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

RequestId String b197-40ab-9155-7ca7
SlbList Array

The returned list of SLB instances.

SlbId String lb-2ze055t3xv7s8n64t****

The ID of the SLB instance returned.

SlbName String a9a0eeecafd3111e8b4dc00163e0****

The name of the SLB instance returned.

RegionId String cn-beijing

The ID of the region where the returned SLB instance is located.

UserId String edas_****_test@aliyun-****.com

The ID of the user who created the returned SLB instance.

Address String 39.XX.XX.176

The IP address allocated to the SLB instance returned.

SlbStatus String active

The state of the SLB instance returned.

AddressType String internet

The type of the IP address allocated to the SLB instance returned.

VswitchId String ""

The ID of the virtual switch (VSwitch) used in the virtual private cloud (VPC) where the returned SLB instance is located.

VpcId String ""

The ID of the VPC where the returned SLB instance is located.

NetworkType String classic

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

GroupId Integer 0

The ID of the Enterprise Distributed Application Service (EDAS) resource group bound to the SLB instance returned.

Expired Boolean false

Indicates whether the returned SLB instance has expired.

Examples

Sample requests

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

Sample success responses

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
}

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>

Error codes

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