GetLBMonitors【获取所有资源池监控列表】¶
获取所有负载均衡资源池监控信息列表
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 |
---|---|---|
display_name | String | 监控呈现的名称 |
delay | Integer | 延迟(单位:秒) |
max_retries | Integer | 最大重连数 |
timeout | Integer | 超时(单位:秒) |
status_description | String | 监控状态描述 |
type | String | 监控类型 |
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: GetLBMonitors
Example Response:
{
"message": "成功",
"code": 200,
"data": [
{
"display_name": "PING 延时:2 重试:3 超时:3",
"delay": 2,
"max_retries": 3,
"timeout": 3,
"status_description": "-",
"type": "PING",
"id": "9fbf0e27-14b4-4734-980a-7ca46aa1ad49"
},
{
"display_name": "HTTP URL:/ 方法:GET 命令:200 延时:1 重试:2 超时:2",
"delay": 1,
"max_retries": 2,
"timeout": 2,
"status_description": "-",
"type": "HTTP",
"id": "cee78490-b24f-4e27-ac8e-522f48d42b79"
}
]
}