Queries the quota information of multiple instances.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceIds |
string |
Yes |
Multiple instance IDs separated by commas (,). You can obtain instance IDs by calling the ListSites operation. |
sp-xcdn-96wblslz****,sp-xcdn-81wblslz**** |
| QuotaName |
string |
Yes |
The quota name. Separate multiple names with commas (,). Valid values:
|
waf:phase:http_anti_scan:actions, waf:phase:http_bot:actions, siteCount |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
156A6B-677B1A-4297B7-9187B7-2B44792 |
| QuotaName |
string |
The quota name. |
siteCount |
| QuotaValueType |
string |
The threshold type of the quota. Valid values:
|
bool |
| QuotaValues |
array<object> |
The list of quota values. |
|
|
object |
The quota value information. |
||
| InstanceId |
string |
The instance ID. |
esa-site-blea5hv7m0ow |
| QuotaValue |
string |
The quota value. |
10 |
Examples
Success response
JSON format
{
"RequestId": "156A6B-677B1A-4297B7-9187B7-2B44792",
"QuotaName": "siteCount",
"QuotaValueType": "bool",
"QuotaValues": [
{
"InstanceId": "esa-site-blea5hv7m0ow",
"QuotaValue": "10"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | QuotaNotExist | The quota item does not exist or the purchased plan has not taken effect. Confirm and try again. | The quota item does not exist or the purchased plan has not taken effect. Confirm and try again. |
| 400 | InstanceNotExist | The instance does not exist. Check whether the specified instance ID is correct or whether the instance belongs to your account. | The instance does not exist. Check whether the specified instance ID is correct or whether the instance belongs to your account. |
| 400 | ErService.HasOpened | You have already activated Edge Routine. | You have already activated Edge Routine. |
| 403 | Site.NotExist | The specified website does not exist or is not recognized by the system.Check whether the specified website identifier is valid and matches a website that is active, defined, and recognized by the system.If you want to add a new website, make sure that the creation and registration process is complete to integrate the website to the system. | The specified website does not exist or is not recognized by the system.Check whether the specified website identifier is valid and matches a website that is active, defined, and recognized by the system.If you want to add a new website, make sure that the creation and registration process is complete to integrate the website to the system. |
| 404 | SiteNotFound | The website does not exist or does not belong to you. | The website does not exist or does not belong to you. |
| 404 | UnsupportQuota | Unsupported quota is specified. Check and try again. | Unsupported quota is specified. Check and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.