GetLBMembers【获取资源池成员】¶
获取负载均衡资源池成员信息列表
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 | 成员状态 |
pool_name | String | 所属资源池名称 |
weight | Integer | 权重 |
admin_state_up | Boolean | 管理员状态 |
address | String | ip地址 |
protocol_port | Integer | 协议端口 |
id | String | 成员ID |
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: GetLBMembers
Example Response:
{
"message": "成功",
"code": 200,
"data": [
{
"status": "ACTIVE",
"pool_name": "LB",
"weight": 16,
"admin_state_up": true,
"address": "192.168.100.31",
"protocol_port": 80,
"id": "9b00831c-48bd-42a8-a4d9-3e1459bf557e"
},
{
"status": "ACTIVE",
"pool_name": "LB",
"weight": 16,
"admin_state_up": true,
"address": "192.168.100.30",
"protocol_port": 80,
"id": "a3eb9754-09d0-446c-8b8f-249b27b70ad1"
}
]
}