获取指定的域名下的自定义解析记录。
您可以使用 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 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 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" } } }
您可访问公共错误码,获取详细信息。