Description
This function is for querying the details about the custom domain name that you have bound, including the automatically assigned second-level domain name, custom domain name, and SSL certificate.
- This function is intended for API providers.
Request parameters
Name | Type | Required? | Description |
---|---|---|---|
Action | String | Yes | Interface name, which is a required parameter; value: DescribeDomain. |
GroupId | String | Yes | API group ID, which is generated by the system and globally unique. |
DomainName | String | Yes | Custom domain name. |
Returned parameters
Name | Type | Description |
---|---|---|
RequestId | String | Unique request ID. |
GroupID | String | API group ID, which is generated by the system and globally unique. |
DomainName | String | Custom domain name. |
SubDomain | String | Second-level domain name automatically assigned to the API group. |
CertificateId | String | Unique SSL certificate ID, which is automatically generated by the system. |
CertificateName | String | SSL certificate name. |
CertificateBody | String | Certificate content. |
CertificatePrivateKey | String | Private key of the certificate. |
DomainBindingStatus | String | Binding status of the custom domain name; values:
|
DomainCNAMEStatus | String | Domain name resolution status; values:
|
DomainLegalStatus | String | Domain legal status; values:
|
DomainRemark | String | Remark of the domain, such as the reason for abnormity. |
Examples
Request example
https://apigateway.cn-hangzhou.aliyuncs.com/?Action=DescribeDomain
&GroupId=927d50c0f2e54b359919923d908bb015
&DomainName=api.demo.com
&<Public request parameters>
Response example
XML
format
<DescribeDomainResponse>
<RequestId>6EF60BEC-0242-43AF-BB20-270359FB54A7</RequestId>
<GroupId>927d50c0f2e54b359919923d908bb015</GroupId>
<SubDomain>927d50c0f2e54b359919923d908bb015-cn-hangzhou.alicloudapi.com</SubDomain>
<DomainName>api.demo.com</DomainName>
<CertificateId>6EF60BEC-0242-43AF-BB20-270359FB54A7</CertificateId>
<CertificateName>myCertificate</CertificateName>
<CertificateBody>..</CertificateBody>
<CertificatePrivateKey>..</CertificatePrivateKey>
<DomainBindingStatus>BINDING</DomainBindingStatus>
<DomainCNAMEStatus>RESOLVED</DomainCNAMEStatus>
<DomainLegalStatus>ABNORMAL</DomainLegalStatus>
<DomainRemark>The domain did not put on record</DomainRemark>
</DescribeDomainResponse>
JSON
format
{
"RequestId": "6EF60BEC-0242-43AF-BB20-270359FB54A7",
"GroupId": "927d50c0f2e54b359919923d908bb015",
"SubDomain": "927d50c0f2e54b359919923d908bb015-cn-hangzhou.alicloudapi.com",
"DomainName": "api.demo.com",
"CertificateId":"6EF60BEC-0242-43AF-BB20-270359FB54A7",
"CertificateName": "myCertificate",
"CertificateBody":"..",
"CertificatePrivateKey":"..",
"DDomainBindingStatus": "BINDING",
"DomainCNAMEStatus": "RESOLVED",
"DomainLegalStatus":"ABNORMAL",
"DomainRemark":"The domain did not put on record"
}