Queries the quota details of the plan associated with a specific instance or site by quota name.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:ListInstanceQuotas |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The plan instance ID. You can call the ListSites operation to obtain the ID. You must specify at least one of this parameter and SiteId. |
sp-xcdn-96wblslz**** |
| SiteId |
integer |
No |
The site ID. You can call the ListSites operation to obtain the ID. You must specify at least one of this parameter and InstanceId. |
2882900**** |
| QuotaNames |
string |
Yes |
The plan quota names, separated by 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. |
15C66C7B-671A-4297-9187-2C4477247B78 |
| InstanceId |
string |
The plan instance ID. |
sp-xcdn-96wblslz**** |
| Status |
string |
The plan instance status. Valid values:
|
online |
| Quotas |
array<object> |
The list of plan instance quotas. |
|
|
object |
The plan instance quota details. |
||
| QuotaName |
string |
The quota name. |
customHttpCert |
| QuotaValue |
string |
The quota value. |
10 |
| QuotaValueType |
string |
The threshold type of the quota. Valid values:
|
bool |
Examples
Success response
JSON format
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247B78",
"InstanceId": "sp-xcdn-96wblslz****",
"Status": "online",
"Quotas": [
{
"QuotaName": "customHttpCert",
"QuotaValue": "10",
"QuotaValueType": "bool"
}
]
}
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.