All Products
Search
Document Center

CDN:DescribeCdnCertificateDetailById

Last Updated:Nov 29, 2024

Queries certificate details by certificate ID.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cdn:DescribeCdnCertificateDetailByIdget
*All Resources
*
    none
none

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.