API 文档
文档目录
    加载中
文档中心 API 文档 列出子域名的 A 记录

列出子域名的 A 记录

1. 接口描述

本接口 Monitor.Listsubvalue 列出子域名的 A 记录。
接口请求地址:https://dnsapi.cn/Monitor.Listsubvalue
HTTP请求方式:POST

2. 请求参数

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

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

3. 响应代码

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

响应码 描述
6 当前域名有误,请返回重新操作。
7 域名编号错误。

4. 示例

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

返回示例如下:

  • JSON:
{
    "status": {
        "code": "1",
        "message": "Action completed successful",
        "created_at": "2012-11-24 20:19:05"
    },
    "domain": {
        "id": 2317346,
        "name": "testapi.com",
        "punycode": "testapi.com",
        "grade": "D_Plus"
    },
    "points": {
        "max": 999,
        "list": {
            "ctc": "电信",
            "cuc": "联通",
        }
    },
    "records": [
        {
            "id": "16909160",
            "area": "默认",
            "value": "119.180.24.194"
        }
    ]
}
最近更新于 2022-01-24 11:46

DNSPod 域名检测工具

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

网站自助排障

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