GetAssociationMonitor【获取可关联的负载均衡监控列表】

获取可关联的负载均衡监控信息列表:在负载均衡器关联监控时,获取可选监控列表。如果不指定资源池ID,则会返回错误信息。

Request Parameters

Parameter name Type Description Required
action String API 标识符 Yes
pool_id String 资源池ID Yes
type String 关联类型(默认为add:增加关联) No

Response Elements

Name Type Description
message String 执行结果信息
code Integer HTTP Resonpe响应状态码
data Array JSON 格式的监控信息列表,包含监控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: GetAssociationMonitor
pool_id: 143b4103-f5f5-4456-9b60-28ff891a66fa
type: add

Example Response:

{
    "message": "成功",
    "code": 200,
    "data": [
        {
            "9fbf0e27-14b4-4734-980a-7ca46aa1ad49": "PING 延时:2 重试:3 超时:3"
        },
        {
            "cad6ba2c-b668-4f3a-8058-4d5d60fca49f": "HTTP URL:/ 方法:GET 命令:200 延时:1 重试:3 超时:2"
        }
    ]
}