You need to enable JavaScript to run this app.
导航
响应结果
最近更新时间:2023.04.25 21:24:20首次发布时间:2022.11.24 20:57:30

响应状态码

API 请求成功时,HTTP 响应状态码是 200。

API 请求失败时,会出现以下任意一个情况:

  • HTTP 响应状态码是 4xx 或 5xx。
  • 响应正文的 ResponseMetadata 结构体包含 Error 字段。

如果响应出现异常,响应正文的内容如下。此时您可根据 Error 结构体中的 CodeNCodeMessage 等提示信息排查问题原因。

API 请求成功的响应示例

{
    "ResponseMetadata": {
        "RequestId": "20230411150314CE53198BCFE9484824BA",
        "Action": "QueryZone",
        "Version": "2018-08-01",
        "Service": "dns",
        "Region": "cn-north-1"
    },
    "Result": {
        "InstanceNo": "DNS71279xxxxx9644332",
        "ZoneName": "xxxxx.com",
        "Remark": "",
        "ExpiredTime": 1691164799000,
        "ConfigurationCode": "monthly_plan_publiczone",
        "Status": 1,
        "AllocateDNSServerList": [
            "ns1.volcdns.com",
            "ns2.volcdns.com",
            "ns3.volcdns.com",
            "ns4.volcdns.com",
            "ns5.volcdns.com"
        ],
        "RealDNSServerList": [
            "ns1.volcdns.com",
            "ns2.volcdns.com",
            "ns3.volcdns.com",
            "ns4.volcdns.com",
            "ns5.volcdns.com"
        ],
        "IsNSCorrect": false,
        "Stage": 2,
        "TradeCode": "ultimate_inner",
        "UpdatedAt": "2023-04-03T19:17:32+08:00",
        "RecordCount": 0
    }
}

API 请求失败的响应示例

{
    "ResponseMetadata": {
        "RequestId": "2023041116283931DC4B51E4C8C7660227",
        "Action": "QueryZone",
        "Version": "2018-08-01",
        "Service": "dns",
        "Region": "cn-north-1",
        "Error": {
            "CodeN": 400100,
            "Code": "ErrParsingParams",
            "Message": "parsing params error",
            "MessageCN": "解析请求失败"
        }
    }
}