GetLBPools【获取资源池信息列表】

获取负载均衡资源池信息列表

Request Parameters

Parameter name Type Description Required
action String API 标识符 Yes

Response Elements

Name Type Description
message String 执行结果信息
code Integer HTTP Resonpe响应状态码
data Array JSON 格式的负载均衡资源池信息列表,每项参数可见下面 Data Item

Data Item

Name Type Description
status String 资源池状态
lb_method String 负载均衡方法
protocol String 协议
description String 资源池描述
vip_address Array 虚拟服务地址(内网、公网IP地址)
id String 负载均衡ID
name String 负载均衡名称
vip_id String 虚拟服务地址ID
admin_state_up Boolean 管理员状态
subnet_name String 负载均衡所在子网网段
provider String 提供者
has_monitor Boolean 是否已关联监控
vip_name String 虚拟服务地址名称

Example

Example Request:

Request Headers:

POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/x-www-form-urlencoded

Form Data:

action: GetLBPools

Example Response:

{
    "message": "成功",
    "code": 200,
    "data": [
        {
            "status": "ACTIVE",
            "lb_method": "ROUND_ROBIN",
            "protocol": "HTTP",
            "description": "http-test",
            "vip_address": [
                "192.168.100.159"
            ],
            "id": "143b4103-f5f5-4456-9b60-28ff891a66fa",
            "name": "LB",
            "vip_id": "55a3b961-5fd8-49a7-9684-67e4dfc94111",
            "admin_state_up": true,
            "subnet_name": "192.168.100.0/24",
            "provider": "haproxy",
            "has_monitor": true,
            "vip_name": "VIP"
        }
    ]
}