Queries the certificate list for a specific site.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:ListCertificates |
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 |
| Keyword |
string |
No |
The search keyword. |
example |
| ValidOnly |
boolean |
No |
Specifies whether to return only valid certificates. |
true |
| PageNumber |
integer |
No |
The page number of the data to return. |
3 |
| PageSize |
integer |
No |
The number of records per page. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
15C66C7B-671A-4297-9187-2C4477247A74 |
| TotalCount |
integer |
The total number of records. |
10 |
| PageNumber |
integer |
The page number of the data to return. |
1 |
| PageSize |
integer |
The number of records per page. |
20 |
| SiteId |
integer |
The site ID. |
1234567890123 |
| SiteName |
string |
The site name. |
example.com |
| Result |
array<object> |
The result array. |
|
|
array<object> |
The result. |
||
| CasId |
string |
The cloud certificate ID. |
30000569 |
| Id |
string |
The certificate ID. |
baba39055622c008b90285a8838e**** |
| Name |
string |
The certificate name. |
yourCertName |
| Region |
string |
The region information. |
cn-hangzhou |
| Status |
string |
The certificate status. Valid values:
Valid values:
|
OK |
| Type |
string |
The certificate type. Valid values:
Valid values:
|
free |
| CommonName |
string |
The common name of the certificate. |
www.example.com |
| NotBefore |
string |
The start time of the certificate validity period. Format: YYYY-MM-DD HH:MM:SS, in UTC/GMT time zone. |
2023-03-31 02:08:00 |
| NotAfter |
string |
The end time of the certificate validity period. Format: YYYY-MM-DD HH:MM:SS, in UTC/GMT time zone. |
2024-03-31 02:08:00 |
| Issuer |
string |
The certificate issuer. |
GlobalSign nv-sa |
| IssuerCN |
string |
The common name of the certificate issuer. |
GlobalSign Organization Validation CA - SHA256 - G3 |
| SAN |
string |
The Subject Alternative Name (SAN) of the certificate. |
www.example.com,*.example.com |
| SigAlg |
string |
The signature algorithm of the certificate. |
SHA256-RSA |
| PubAlg |
string |
The public key algorithm of the certificate. |
RSA |
| CreateTime |
string |
The creation time. Format: YYYY-MM-DD HH:MM:SS, in UTC/GMT time zone. |
2022-06-24 07:48:51 |
| UpdateTime |
string |
The update time. Format: YYYY-MM-DD HH:MM:SS, in UTC/GMT time zone. |
2023-04-20 06:18:42 |
| SerialNumber |
string |
The certificate serial number. |
babab022c5e9b27bf9c64d7f4b16**** |
| FingerprintSha256 |
string |
The SHA-256 fingerprint of the certificate. |
1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456a**** |
| DCV |
array<object> |
The Domain Control Validation (DCV) information. |
|
|
object |
The Domain Control Validation (DCV) information. |
||
| Id |
string |
The ID of the DCV record. |
bababf7cdd1546a2ad04c0def1f4**** |
| Type |
string |
The DCV method. Valid values: Valid values:
|
HTTP |
| Key |
string |
The DCV key. For the |
http://www.example.com/.well-known/acme-challenge/pH20CqwS5L3ZnvkhI436DCzadKFuG7QcUcvB_4KsAow |
| Value |
string |
The DCV value. |
pH20CqwS5L3ZnvkhI436DCzadKFuG7QcUcvB_4KsAow.KfzYo4LH3EgOt7a73G-RqZkbR0eYtLfEUmtmqGmr4FQ |
| Status |
string |
The validation status. |
pending |
| ApplyCode |
integer |
The error code for the certificate application. |
2 |
| ApplyMessage |
string |
The error message for the certificate application. |
canceled |
| KeyServerId |
string |
The Keyless server ID. This parameter is valid only when Type is set to keyless. |
baba39055622c008b90285a8838e**** |
Examples
Success response
JSON format
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74",
"TotalCount": 10,
"PageNumber": 1,
"PageSize": 20,
"SiteId": 1234567890123,
"SiteName": "example.com ",
"Result": [
{
"CasId": "30000569",
"Id": "baba39055622c008b90285a8838e****",
"Name": "yourCertName",
"Region": "cn-hangzhou",
"Status": "OK",
"Type": "free",
"CommonName": "www.example.com",
"NotBefore": "2023-03-31 02:08:00",
"NotAfter": "2024-03-31 02:08:00",
"Issuer": "GlobalSign nv-sa",
"IssuerCN": "GlobalSign Organization Validation CA - SHA256 - G3",
"SAN": "www.example.com,*.example.com",
"SigAlg": "SHA256-RSA",
"PubAlg": "RSA",
"CreateTime": "2022-06-24 07:48:51",
"UpdateTime": "2023-04-20 06:18:42",
"SerialNumber": "babab022c5e9b27bf9c64d7f4b16****",
"FingerprintSha256": "1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456a****",
"DCV": [
{
"Id": "bababf7cdd1546a2ad04c0def1f4****",
"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****\n"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.SiteId | Failed to query the website based on the SiteID you specified. Check parameter SiteId and try again. | Failed to query the website based on the SiteID you specified. Check parameter SiteId and try again. |
| 400 | MissingSiteId | Required parameter SiteId missing. Specify SiteId and try again. | Required parameter SiteId missing. Specify SiteId and try again. |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.