Queries details about a bound custom domain name, including the automatically assigned second-level domain name, custom domain name, and SSL certificate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:DescribeDomain |
get |
*ApiGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
Yes |
The ID of the API group. This ID is generated by the system and globally unique. |
927d50c0f2e54b359919923d908bb015 |
| DomainName |
string |
Yes |
The custom domain name. |
api.demo.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CertificatePrivateKey |
string |
The private key of the SSL certificate. |
xxx |
| DomainName |
string |
The custom domain name. |
api.demo.com |
| DomainBindingStatus |
string |
The binding status of the custom domain name. Valid values:
|
BINDING |
| DomainRemark |
string |
Remarks about the domain name, such as the cause of an exception. |
The domain is not registered with the MIIT. |
| CertificateId |
string |
The unique ID of the SSL certificate, which is automatically generated by the system. |
6EF60BEC-0242-43AF-BB20-270359FB54A7 |
| DomainWebSocketStatus |
string |
The status of the domain name that uses WebSocket. |
NORMAL |
| RequestId |
string |
The ID of the request. |
6EF60BEC-0242-43AF-BB20-270359FB54A7 |
| CertificateName |
string |
The name of the SSL certificate. |
myCertificate |
| DomainLegalStatus |
string |
The validity status of the domain name. Valid values:
|
NORMAL |
| GroupId |
string |
The ID of the API group. This ID is generated by the system and globally unique. |
927d50c0f2e54b359919923d908bb015 |
| CertificateBody |
string |
The content of the certificate. |
xxx |
| SubDomain |
string |
The second-level domain name that is automatically assigned to the API group. |
xxx-cn-hangzhou.alicloudapi.com |
| DomainCNAMEStatus |
string |
The domain name resolution status. Valid values:
|
RESOLVED |
| CertificateValidStart |
integer |
Certificate effective timestamp(milliseconds) |
1672502400000 |
| CertificateValidEnd |
integer |
Certificate expiration timestamp(milliseconds) |
1704038400000 |
Examples
Success response
JSON format
{
"CertificatePrivateKey": "xxx",
"DomainName": "api.demo.com",
"DomainBindingStatus": "BINDING",
"DomainRemark": "The domain is not registered with the MIIT.",
"CertificateId": "6EF60BEC-0242-43AF-BB20-270359FB54A7",
"DomainWebSocketStatus": "NORMAL",
"RequestId": "6EF60BEC-0242-43AF-BB20-270359FB54A7",
"CertificateName": "myCertificate",
"DomainLegalStatus": "NORMAL",
"GroupId": "927d50c0f2e54b359919923d908bb015",
"CertificateBody": "xxx",
"SubDomain": "xxx-cn-hangzhou.alicloudapi.com",
"DomainCNAMEStatus": "RESOLVED",
"CertificateValidStart": 1672502400000,
"CertificateValidEnd": 1704038400000
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.