Queries the details of a certificate by certificate ID.
Debugging
Authorization information
The following table lists the authorization details for this operation. Use the values in the Operation column in the Action element of your RAM policy to grant a RAM user or RAM role permission to call this operation.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| cdn:DescribeCdnCertificateDetailById | get | *All Resources | none | none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| CertId | string | Yes | The ID of the certificate. | 12345 |
| CertRegion | string | No | The region of the certificate. Valid values:
| cn-hangzhou |
Response parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| CertName | string | The name of the certificate. | yourCertName |
| Key | string | The public key of the certificate. | 587f6db37e3a2f01047b032b739cbe31 |
| Cert | string | The content of the certificate. | -----BEGINCERTIFICATE-----xxx-----END CERTIFICATE----- |
| CertId | long | The ID of the certificate. | 12345 |
| RequestId | string | The request ID. | C370DAF1-C838-4288-A1A0-9A87633D248E |
Examples
Sample success responses
JSON format
{
"CertName": "yourCertName",
"Key": "587f6db37e3a2f01047b032b739cbe31",
"Cert": "-----BEGINCERTIFICATE-----xxx-----END CERTIFICATE-----",
"CertId": 12345,
"RequestId": "C370DAF1-C838-4288-A1A0-9A87633D248E"
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidCertId.NotFound | The certId does not exist. | The certificate ID does not exist. |
| 400 | Abs.CertRegion.ValueNotSupported | CertRegion is not supported. | The certificate region is not supported. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| No change history |