Queries the quota and usage of free certificates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetCertificateQuota |
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 |
| Type |
string |
Yes |
The certificate quota type. |
free |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Quota |
integer |
The free certificate quota. |
10 |
| QuotaUsage |
integer |
The free certificate quota usage. |
5 |
| RequestId |
string |
The request ID. |
0AEDAF20-4DDF-4165-8750-47FF9C1929C9 |
| Type |
string |
The certificate quota type. |
free |
| SiteCount |
integer |
The number of sites. |
2 |
| SiteUsage |
array<object> |
The list of site usage details. |
|
|
object |
The site usage details. |
||
| SiteId |
string |
The site ID. |
165929521496928 |
| SiteName |
string |
The site name. |
example.com |
| SiteUsage |
integer |
The site usage. |
5 |
Examples
Success response
JSON format
{
"Quota": 10,
"QuotaUsage": 5,
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9",
"Type": "free",
"SiteCount": 2,
"SiteUsage": [
{
"SiteId": "165929521496928",
"SiteName": "example.com ",
"SiteUsage": 5
}
]
}
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 | QuotaCheckFailed | Failed to check free certificate Quota, please try again later. | Failed to check free certificate Quota, please try again later. |
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 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.