调用DescribeDomainInfo根据传入参数查询指定域名的信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDomainInfo |
系统规定参数。取值:DescribeDomainInfo。 |
DomainName | String | 是 | example.com |
域名名称。 |
Lang | String | 否 | en |
用户语言。 |
NeedDetailAttributes | Boolean | 否 | false |
默认值为false,表示不需要细节属性。 当值为true时,则返回以下数据:lineType、minTtl、recordLineTreeJson、recordLines、lineCode、lineDisplayName、lineName、regionLines、slaveDns。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 536E9CAD-DB30-4647-AC87-AA5CC38C5382 |
请求ID。 |
DomainId | String | 00efd71a-770e-4255-b54e-6fe5659baffe |
域名ID。 |
DomainName | String | example.com |
域名名称。 |
PunyCode | String | example.com |
只针对中文域名返回punycode码。 |
AliDomain | Boolean | true |
是否为阿里云万网域名。 |
Remark | String | remark |
备注。 |
GroupId | String | 2223 |
域名分组ID。 |
GroupName | String | mygroup |
域名分组名称。 |
InstanceId | String | i-7bg |
云解析产品ID。 |
VersionCode | String | version1 |
云解析版本ID。 |
VersionName | String | 企业标准版 |
云解析产品名称。 |
MinTtl | Long | 1 |
最小TTL。 |
RecordLineTreeJson | String | {"default":{},"unicom":{},"telecom":{},"mobile":{},"edu":{},"oversea":{},"baidu":{},"biying":{},"google":{}} |
树形化解析线路列表 |
LineType | String | region_province |
线路类型。 |
RegionLines | Boolean | false |
是否是地域线路。 |
InBlackHole | Boolean | false |
是否在黑洞中。 |
InClean | Boolean | false |
是否在清洗中。 |
SlaveDns | Boolean | true |
是否允许有辅助dns。 |
RecordLines | Array |
解析线路数据列表。 |
|
LineCode | String | cn_region_xibei |
子线路Code。 |
FatherCode | String | internal |
父线路Code,如果没有则为空。 |
LineName | String | 西北 |
子线路展示名。 |
LineDisplayName | String | 中国地区_西北 |
父线路展示名。 |
DnsServers | List | ["vip3.alidns.com", "vip4.alidns.com"] |
DNS信息。 |
AvailableTtls | List | [600,1800,3600,43200,86400] |
可用TTL列表。 |
示例
请求示例
http(s)://alidns.aliyuncs.com/?Action=DescribeDomainInfo
&DomainName=example.com
&<公共请求参数>
正常返回示例
XML
格式
<DescribeDomainInfoResponse>
<RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
<DomainId>00efd71a-770e-4255-b54e-6fe5659baffe</DomainId>
<DomainName>example.com</DomainName>
<AliDomain>true</AliDomain>
<GroupId>2223</GroupId>
<GroupName>MyGroup</GroupName>
<InstanceId>i-7bg</InstanceId>
<VersionCode>version1</VersionCode>
<PunyCode>example.com</PunyCode>
<DnsServers>
<DnsServer>dns1.hichina.com</DnsServer>
<DnsServer>dns2.hichina.com</DnsServer>
</DnsServers>
</DescribeDomainInfoResponse>
JSON
格式
{
"RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
"DomainId": "00efd71a-770e-4255-b54e-6fe5659baffe",
"DomainName": "example.com",
"AliDomain": "true",
"GroupId": "2223",
"GroupName": "MyGroup",
"InstanceId": "i-7bg",
"VersionCode": "version1",
"PunyCode": "example.com",
"DnsServers": {
"DnsServer": [
"ns1.alidns.com",
"ns2.alidns.com"
]
}
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交