LBPoolGet【取指定资源池的详细信息】¶
获取指定资源池的详细信息:指定资源池ID,可以获取该资源池详细信息。如果不指定资源池ID,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
pool_id | String | 资源池ID | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
data | Dict | JSON 格式的指定资源池的详细信息,每项参数可见下面 Data Item |
Data Item
Name | Type | Description |
---|---|---|
status | String | 资源池状态 |
protocol | String | 协议 |
description | String | 资源池描述 |
name | String | 资源池名称 |
health_monitors | Array | 关联的监控ID |
subnet_id | String | 所在子网ID |
id | String | 资源池ID |
subnet_name | String | 子网网段 |
provider | String | 提供者 |
vip_name | String | 虚拟服务地址名称 |
vip_id | String | 虚拟服务地址ID |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json
JSON Data:
{
"action": "LBPoolGet",
"pool_id": "143b4103-f5f5-4456-9b60-28ff891a66fa"
}
Example Response:
{
"message": "成功",
"code": 200,
"data": {
"status": "ACTIVE",
"protocol": "HTTP",
"description": "http-test",
"name": "LB",
"health_monitors": [
"cee78490-b24f-4e27-ac8e-522f48d42b79"
],
"subnet_id": "dcc01e93-b2c0-44f3-807d-837a0d915ec3",
"id": "143b4103-f5f5-4456-9b60-28ff891a66fa",
"subnet_name": "192.168.100.0/24",
"provider": "haproxy",
"vip_name": "VIP",
"vip_id": "55a3b961-5fd8-49a7-9684-67e4dfc94111"
}
}