All Products
Search
Document Center

CDN:DescribeCdnCertificateDetailById

Last Updated:Mar 28, 2024

Queries certificate details by certificate ID.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
CertIdstringYes

The ID of the certificate.

12345
CertRegionstringNo

The region of the certificate. Valid values:

  • ap-southeast-1: Singapore
  • cn-hangzhou: China (Hangzhou)

Default value: cn-hangzhou

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
CertNamestring

The name of the certificate.

yourCertName
Keystring

The public key of the certificate.

587f6db37e3a2f01047b032b739cbe31
Certstring

The content of the certificate.

-----BEGINCERTIFICATE-----xxx-----END CERTIFICATE-----
CertIdlong

The ID of the certificate.

12345
RequestIdstring

The ID of the request.

C370DAF1-C838-4288-A1A0-9A87633D248E

Examples

Sample success responses

JSONformat

{
  "CertName": "yourCertName\n",
  "Key": "587f6db37e3a2f01047b032b739cbe31\n",
  "Cert": "-----BEGINCERTIFICATE-----xxx-----END CERTIFICATE-----\n",
  "CertId": 12345,
  "RequestId": "C370DAF1-C838-4288-A1A0-9A87633D248E\n"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidCertId.NotFoundThe certId does not exist.The certificate ID does not exist.
400Abs.CertRegion.ValueNotSupportedCertRegion is not supported.The certificate region is not supported.

For a list of error codes, visit the Service error codes.