分页查询调度策略

更新时间:2020-10-06 21:17:29

1. 接口描述

用于分页查询调度策略信息。生效耗时1分钟。

限制说明:
建议调用频率不超过240次/分钟。
域名必须不包含如下信息:出售药物和管制刀具类,含有不法言论、信息。
视频类域名必须有视听许可证;博客论坛或社区类加速域名必须有BBS专项审批资质。
鉴权方法:见概览页公共鉴权示例。

2. 请求参数

参数 类型 必填 描述
domainId String 被授权用户名
start Int 分页查询起始记录
limit Int 分页查询条数
language string 为空返回中文结果(默认)en:返回英文提示结果

3. 返回参数

参数 类型 描述
policyDesc String 策略描述 小于200字符
policyType Int 策略类型 0:负载均衡+主备,1:负载均衡
domainId Int 域名ID标识
view Json 域名ID标识
rate Int 调度频率 以分钟为单位,可选值1、2、5、10、30、60
monitor Json 监控配置:monitorType 监控类型,0 http 1 https 2 udp(暂不支持) 3 tcp 4 ping;monitorNodes 监控节点;isp 监控节点运营商;area 监控节点区域;path 监控路径,当监控方式为http,https 时选项;port监控端口,当监控方式为http,https,tcp 时选项;responseTimeout响应超时时间,单位:秒,当监控方式为http,https时选项;excludedCodes状态排除码,当监控方式为http,https 时选项,多个状态码用英文分号分隔;httpMethod 监控方式为http/https时支持,可选值:0 默认请求方法 1 post请求;requestData 监控方式为http/https时支持,httpMethod为1时 必填(可为空串);packetLossLimit 丢包率,当监控方式为ping时选项;delayLimit时延,单位:毫秒,当监控方式为ping时选项;availability不可用判定条件:不可用监控点比例
warning Json warnMethod告警方式, 1 邮件告警;warnInterval连续告警提醒周期,单位:分钟;warnEmail 告警邮箱,多个邮箱以英文分号分隔
policyResource List 策略资源:partType资源类型,0 主解析资源 1 一级备 2 二级备 3 三级备;type 资源记录类型,0 A记录 1 CNAME;value 资源记录值;loadRatio 比例
release List 解析情况(release节点不存在或为空,表示当前策略尚未发布解析 )spType 服务提供者类型 0 主解析资源 1 一级备 2 二级备 3 三级备;spList 服务提供资源列表;load 负载比例;value 资源记录值
status Int 1启用 0禁用

4. 请求示例

https://open.chinanetcenter.com/clouddns/QueryDispatchPolicies
<公共参数>
{
"domainId":4641,
"start":0,
"limit":10,
}

5. 返回示例

{
    "resCode":0,
    "msg":"操作成功",
    "content":{
        "count":3,
        "rows":[
            {
                "policyDesc":"",
                "monitor":{
                    "port":80,
                    "httpMethod":0,
                    "monitorNodes":[
                        {
                            "area":"fujian",
                            "isp":"0"
                        },
                        {
                            "area":"shandong",
                            "isp":"0"
                        },
                        {
                            "area":"hebei",
                            "isp":"0"
                        },
                        {
                            "area":"tianjin",
                            "isp":"0"
                        },
                        {
                            "area":"sichuan",
                            "isp":"0"
                        },
                        {
                            "area":"guangdong",
                            "isp":"0"
                        },
                        {
                            "area":"liangning",
                            "isp":"0"
                        },
                        {
                            "area":"hunan",
                            "isp":"0"
                        },
                        {
                            "area":"henan",
                            "isp":"0"
                        },
                        {
                            "area":"gamsu",
                            "isp":"0"
                        }
                    ],
                    "monitorType":4,
                    "path":"/img/cggall01.jpg",
                    "excludedCodes":"",
                    "delayLimit":0,
                    "packetLossLimit":0,
                    "responseTimeout":20,
                    "requestData":"",
                    "availability":100
                },
                "policyResource":[
                    {
                        "partType":0,
                        "resourceDesc":"undefined",
                        "value":"218.98.38.157",
                        "type":0,
                        "loadRatio":1
                    },
                    {
                        "partType":1,
                        "resourceDesc":"undefined",
                        "value":"218.98.38.158",
                        "type":0,
                        "loadRatio":1
                    },
                    {
                        "partType":0,
                        "resourceDesc":"",
                        "value":"2.2.3.5",
                        "type":0,
                        "loadRatio":1
                    },
                    {
                        "partType":1,
                        "resourceDesc":"",
                        "value":"2.3.5.6",
                        "type":0,
                        "loadRatio":1
                    }
                ],
                "status":0,
                "policyType":0,
                "switchType":0,
                "rate":2,
                "policyId":7079,
                "domainId":4641,
                "currentAnalyze":0,
                "view":{
                    "viewEn":"China_Telecom",
                    "viewCn":"中国电信",
                    "type":0,
                    "viewId":"1"
                },
                "release":{
                    "spList":[
                        {
                            "value":"218.98.38.157",
                            "load":1
                        },
                        {
                            "value":"2.2.3.5",
                            "load":1
                        }
                    ],
                    "spType":0
                },
                "warning":{
                    "warnMethod":1,
                    "warnEmail":"512334906@qq.com",
                    "warnInterval":15
                },
                "switchTarget":0
            },
            {
                "policyDesc":"",
                "monitor":{
                    "port":80,
                    "httpMethod":0,
                    "monitorNodes":[
                        {
                            "area":"fujian",
                            "isp":"0"
                        },
                        {
                            "area":"shanghai",
                            "isp":"1"
                        },
                        {
                            "area":"beijing",
                            "isp":"0"
                        },
                        {
                            "area":"anhui",
                            "isp":"0"
                        },
                        {
                            "area":"beijing",
                            "isp":"1"
                        },
                        {
                            "area":"guangdong",
                            "isp":"0"
                        },
                        {
                            "area":"heilongjiang",
                            "isp":"1"
                        },
                        {
                            "area":"henan",
                            "isp":"1"
                        },
                        {
                            "area":"gamsu",
                            "isp":"0"
                        }
                    ],
                    "monitorType":0,
                    "path":"/img/cggall01.jpg",
                    "excludedCodes":"",
                    "delayLimit":0,
                    "packetLossLimit":0,
                    "responseTimeout":20,
                    "requestData":"",
                    "availability":0
                },
                "policyResource":[
                    {
                        "partType":0,
                        "value":"218.92.145.14",
                        "type":0,
                        "loadRatio":1
                    }
                ],
                "status":1,
                "policyType":1,
                "switchType":1,
                "rate":2,
                "policyId":7077,
                "domainId":4641,
                "view":{
                    "viewEn":"UnitedStates",
                    "viewCn":"美国",
                    "type":0,
                    "viewId":"389"
                },
                "warning":{
                    "warnMethod":1,
                    "warnEmail":"512334906@qq.com",
                    "warnInterval":15
                },
                "switchTarget":0
            },
            {
                "policyDesc":"",
                "monitor":{
                    "port":80,
                    "httpMethod":0,
                    "monitorNodes":[
                        {
                            "area":"zhejiang",
                            "isp":"0"
                        },
                        {
                            "area":"fujian",
                            "isp":"1"
                        },
                        {
                            "area":"tianjin",
                            "isp":"0"
                        },
                        {
                            "area":"hebei",
                            "isp":"1"
                        },
                        {
                            "area":"chongqing",
                            "isp":"0"
                        },
                        {
                            "area":"guangdong",
                            "isp":"0"
                        },
                        {
                            "area":"guangdong",
                            "isp":"1"
                        },
                        {
                            "area":"liangning",
                            "isp":"0"
                        },
                        {
                            "area":"hubei",
                            "isp":"0"
                        },
                        {
                            "area":"hunan",
                            "isp":"1"
                        }
                    ],
                    "monitorType":0,
                    "path":"/img/cggall01.jpg",
                    "excludedCodes":"",
                    "delayLimit":0,
                    "packetLossLimit":0,
                    "responseTimeout":20,
                    "requestData":"",
                    "availability":100
                },
                "policyResource":[
                    {
                        "partType":0,
                        "value":"58.221.78.86",
                        "type":0,
                        "loadRatio":1
                    }
                ],
                "status":0,
                "policyType":1,
                "switchType":1,
                "rate":2,
                "policyId":7073,
                "domainId":4641,
                "currentAnalyze":0,
                "view":{
                    "viewEn":"*",
                    "viewCn":"默认",
                    "type":0,
                    "viewId":"*"
                },
                "release":{
                    "spList":[
                        {
                            "value":"58.221.78.86",
                            "load":1
                        }
                    ],
                    "spType":0
                },
                "warning":{
                    "warnMethod":1,
                    "warnEmail":"512334906@qq.com",
                    "warnInterval":15
                },
                "switchTarget":0
            }
        ]
    }
}
本篇文档内容对您是否有帮助?
有帮助
我要反馈
提交成功!非常感谢您的反馈,我们会继续努力做到更好!