Retrieves information about a specified certificate for a site.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetCertificate |
list |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
The site ID. You can call the ListSites operation to query the site ID. |
1234567890123 |
| Id |
string |
Yes |
The certificate ID. |
babaded901474b9693acf530e0fb1d95 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| SiteId |
integer |
The site ID. |
1234567890123 |
| SiteName |
string |
The site name. |
example.com |
| Status |
string |
The certificate status. |
OK |
| Certificate |
string |
The certificate content. |
-----BEGIN CERTIFICATE----- |
| Result |
object |
The certificate information. |
|
| CasId |
string |
The cloud certificate ID. |
30000478 |
| Id |
string |
The certificate ID. |
babaded901474b9693acf530e0fb1d95 |
| Name |
string |
The certificate name. |
yourCertName |
| Region |
string |
The region. |
cn-hangzhou |
| Status |
string |
The certificate status. |
OK |
| Type |
string |
The certificate type. Valid values:
|
free |
| CommonName |
string |
The Common Name (CN) field of the certificate. |
www.example.com |
| NotBefore |
string |
The start time of the certificate validity period. The time is in the YYYY-MM-DD HH:MM:SS format in the UTC/GMT time zone. |
2026-07-01 06:26:47 |
| NotAfter |
string |
The end time of the certificate validity period. The time is in the YYYY-MM-DD HH:MM:SS format in the UTC/GMT time zone. |
2026-09-29 06:26:46 |
| Issuer |
string |
The certificate issuer. |
DigiCert |
| IssuerCN |
string |
The certification authority. |
DigiCert Global Root CA |
| SAN |
string |
The Subject Alternative Name (SAN) of the certificate. |
www.example.com,*.example.com |
| SigAlg |
string |
The signature algorithm of the certificate. |
ECDSA-SHA1 |
| PubAlg |
string |
The public key algorithm of the certificate. |
ECDSA |
| CreateTime |
string |
The creation time. The time is in the YYYY-MM-DD HH:MM:SS format in the UTC/GMT time zone. |
2026-07-01 07:25:23 |
| UpdateTime |
string |
The update time. The time is in the YYYY-MM-DD HH:MM:SS format in the UTC/GMT time zone. |
2026-07-01 07:25:23 |
| SerialNumber |
string |
The certificate serial number. |
babaded901474b9693acf530e0fb1daa |
| FingerprintSha256 |
string |
The SHA-256 fingerprint of the certificate. |
1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456aca66 |
| DCV |
array<object> |
The Domain Control Validation (DCV) information. |
|
|
object |
The Domain Control Validation (DCV) information. |
||
| Id |
string |
The DCV ID. |
bababf7cdd1546a2ad04c0def1f4c980 |
| Type |
string |
The DCV type. Valid values: Valid values:
|
HTTP |
| Key |
string |
The DCV name. For DNS, this is the TXT record name. For HTTP, this is the URL. |
http://www.example.com/.well-known/acme-challenge/pH20CqwS5L3ZnvkhI436DCzadKFuG7QcUcvB_4KsAow |
| Value |
string |
The value required for the DCV check. For a DNS check, this is the TXT record value. For an HTTP check, this is the content of the validation file. |
pH20CqwS5L3ZnvkhI436DCzadKFuG7QcUcvB_4KsAow.KfzYo4LH3EgOt7a73G-RqZkbR0eYtLfEUmtmqGmr4FQ |
| Status |
string |
The status of the DCV check. |
pending |
| ApplyCode |
integer |
The error code of the certificate application. |
2 |
| ApplyMessage |
string |
The error message of the certificate application. |
canceled |
| KeyServerId |
string |
The Keyless server ID. This parameter is valid only when Type is set to keyless. |
baba39055622c008b90285a8838e**** |
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
Examples
Success response
JSON format
{
"SiteId": 1234567890123,
"SiteName": "example.com ",
"Status": "OK",
"Certificate": "-----BEGIN CERTIFICATE-----",
"Result": {
"CasId": "30000478",
"Id": "babaded901474b9693acf530e0fb1d95",
"Name": "yourCertName",
"Region": "cn-hangzhou",
"Status": "OK",
"Type": "free",
"CommonName": "www.example.com",
"NotBefore": "2026-07-01 06:26:47",
"NotAfter": "2026-09-29 06:26:46",
"Issuer": "DigiCert",
"IssuerCN": "DigiCert Global Root CA",
"SAN": "www.example.com,*.example.com",
"SigAlg": "ECDSA-SHA1",
"PubAlg": "ECDSA",
"CreateTime": "2026-07-01 07:25:23",
"UpdateTime": "2026-07-01 07:25:23",
"SerialNumber": "babaded901474b9693acf530e0fb1daa",
"FingerprintSha256": "1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456aca66",
"DCV": [
{
"Id": "bababf7cdd1546a2ad04c0def1f4c980",
"Type": "HTTP",
"Key": "http://www.example.com/.well-known/acme-challenge/pH20CqwS5L3ZnvkhI436DCzadKFuG7QcUcvB_4KsAow",
"Value": "pH20CqwS5L3ZnvkhI436DCzadKFuG7QcUcvB_4KsAow.KfzYo4LH3EgOt7a73G-RqZkbR0eYtLfEUmtmqGmr4FQ",
"Status": "pending"
}
],
"ApplyCode": 2,
"ApplyMessage": "canceled",
"KeyServerId": "baba39055622c008b90285a8838e****"
},
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingSiteId | Required parameter SiteId missing. Specify SiteId and try again. | Required parameter SiteId missing. Specify SiteId and try again. |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | Id.MissingParameter | The parameter Id is required. | The required parameter Id is missing. |
| 403 | Unauthorized.InvalidTime | The specified authentication time is invalid. | The authentication time parameter you entered is invalid. Check the parameter value and try again. |
| 403 | Unauthorized.InvalidToken | Token authentication failed. | The token you entered is invalid. Please check and enter the correct token and try again. |
| 404 | Certificate.NotFound | The specified certificate does not exist. | The specified certificate does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.