API 文档
文档目录
    加载中
文档中心 API 文档 监控列表

监控列表

1. 接口描述

本接口 Monitor.List 用于获取监控列表。
接口请求地址:https://dnsapi.cn/Monitor.List
HTTP请求方式:POST

2. 请求参数

以下请求参数列表仅列出了接口请求参数,正式调用时需要加上公共请求参数,见 公共请求参数 页面。

参数名 是否必须 类型 参数描述
domain或domain_id Integer 或 String 分别对应域名ID和域名, 提交其中一个即可。

3. 响应代码

以下请求参数列表仅列出了此接口请求响应代码,除此接口请求响应代码外。还包含 共通返回

响应码 描述
共通返回

4. 示例

curl -X POST https://dnsapi.cn/Monitor.List -d 'login_token=LOGIN_TOKEN&format=json&domain_id=2317346'

返回示例如下:

  • JSON:
{
    "status": {
        "code": "1",
        "message": "Action completed successful",
        "created_at": "2012-11-24 20:48:02"
    },
    "info": {
        "total_count": 1,
        "down_count": 0
    },
    "monitors": [
        {
            "monitor_id": "281ecb9e-3635-11e2-bab7-0819a6248970",
            "domain": "testapi.com",
            "domain_id": "2317346",
            "domain_grade": "D_Plus",
            "record_id": "16909160",
            "sub_domain": "@",
            "record_line": "默认",
            "ip": "119.180.24.194",
            "now_ip": "119.180.24.194",
            "host": "testapi.com",
            "port": "80",
            "monitor_type": "http",
            "monitor_path": "/",
            "monitor_interval": "360",
            "points": "ctc,cuc",
            "bak_ip": "auto",
            "status": "Ok",
            "status_code": "200",
            "sms_notice": "me",
            "email_notice": "me",
            "less_notice": "yes",
            "callback_url": "",
            "callback_key": "",
            "monitor_status": "enabled",
            "created_on": "2012-11-24 20:47:51",
            "updated_on": "2012-11-24 20:47:51",
            "bak_ip_status": [ ]
        }
    ]
}
最近更新于 2022-01-24 11:46

DNSPod 域名检测工具

查询域名信息,快速排查网站问题

网站自助排障

快速判断问题、提供合适的解决方案