You need to enable JavaScript to run this app.
导航
ListDomainRecords - 获取自定义解析记录
最近更新时间:2023.10.30 15:09:03首次发布时间:2023.10.17 17:43:57

获取指定的域名下的自定义解析记录。

请求说明

您可以使用 GET 或 POST 方法。

请求鉴权

您需要 对请求进行鉴权

请求参数

名称
类型
是否必填
示例值
描述
Action
String

ListDomainRecords

要执行的操作,取值:ListDomainRecords

Version
String

2023-09-01

API的版本,取值:2023-09-01

Domain
String

www.douyin.com

需要获取自定义解析记录的域名

响应数据

名称
类型
示例值
描述
AList
Array of DomainRecordList

A 记录列表

CnameList
Array of DomainRecordList

CNAME 记录列表

AAAAList
Array of DomainRecordList

AAAA 记录列表

CreateTime
String

该参数无实际意义

DomainId
Integer

域名的 ID

DomainName
String

域名

示例

GET 示例

请求

GET https://open.volcengineapi.com?Action=ListDomainRecords&Version=2023-09-01&Domain=www.douyin.com

响应

{
    "ResponseMetadata": {
        "RequestId": "2023102712250675DF81C62D0EBC5FDFDD",
        "Action": "ListDomainRecords",
        "Version": "2023-09-01",
        "Service": "httpdns",
        "Region": "cn-north-1"
    },
    "Result": {
        "DomainInfo": {
            "CnameList": [
                {
                    "Line": "中国_华北",
                    "Records": [
                        {
                            "CreateTime": null,
                            "Enable": true,
                            "Id": 26940,
                            "RecordAlias": "自定义解析配置-1",
                            "Target": [
                                "www.toutiao.com"
                            ],
                            "Ttl": 0,
                            "UpdateTime": "2023-10-19T19:30:05+08:00",
                            "Weights": [
                                {
                                    "Key": "www.toutiao.com",
                                    "Value": 2
                                }
                            ]
                        }
                    ]
                }
            ],
            "CreateTime": "2022-10-12T16:11:02+08:00",
            "DomainId": 62672,
            "DomainName": "www.douyin.com"
        }
    }
}

POST 示例

请求

POST https://open.volcengineapi.com?Action=ListDomainRecords&Version=2023-09-01
{
  "Domain": "www.douyin.com"
}

响应

{
    "ResponseMetadata": {
        "RequestId": "2023102712250675DF81C62D0EBC5FDFDD",
        "Action": "ListDomainRecords",
        "Version": "2023-09-01",
        "Service": "httpdns",
        "Region": "cn-north-1"
    },
    "Result": {
        "DomainInfo": {
            "CnameList": [
                {
                    "Line": "中国_华北",
                    "Records": [
                        {
                            "CreateTime": null,
                            "Enable": true,
                            "Id": 26940,
                            "RecordAlias": "自定义解析配置-1",
                            "Target": [
                                "www.toutiao.com"
                            ],
                            "Ttl": 0,
                            "UpdateTime": "2023-10-19T19:30:05+08:00",
                            "Weights": [
                                {
                                    "Key": "www.toutiao.com",
                                    "Value": 2
                                }
                            ]
                        }
                    ]
                }
            ],
            "CreateTime": "2022-10-12T16:11:02+08:00",
            "DomainId": 62672,
            "DomainName": "www.douyin.com"
        }
    }
}

错误码

您可访问公共错误码,获取详细信息。