根据配额名称查询当前实例或者站点对应的套餐的配额详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:ListInstanceQuotas |
list |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
否 |
套餐实例 ID,可通过调用 ListSites 接口获取。与参数 SiteId 至少传其一。 |
sp-xcdn-96wblslz**** |
| SiteId |
integer |
否 |
站点 ID,可通过调用 ListSites 接口获取。与参数 InstanceId 至少传其一。 |
2882900**** |
| QuotaNames |
string |
是 |
套餐配额名称,多个用(,)隔开。支持:
|
waf:phase:http_anti_scan:actions, waf:phase:http_bot:actions, siteCount |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
15C66C7B-671A-4297-9187-2C4477247B78 |
| InstanceId |
string |
套餐实例 ID。 |
sp-xcdn-96wblslz**** |
| Status |
string |
套餐实例状态。支持:
|
online |
| Quotas |
array<object> |
套餐实例配额列表。 |
|
|
object |
套餐实例配额详情。 |
||
| QuotaName |
string |
配额名称。 |
customHttpCert |
| QuotaValue |
string |
配额值。 |
10 |
| QuotaValueType |
string |
配额的阈值类型。取值:
|
bool |
示例
正常返回示例
JSON格式
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247B78",
"InstanceId": "sp-xcdn-96wblslz****",
"Status": "online",
"Quotas": [
{
"QuotaName": "customHttpCert",
"QuotaValue": "10",
"QuotaValueType": "bool"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | 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. | 套餐配额项不存在或购买套餐未生效,请确认后重试。 |
| 400 | InstanceNotExist | The instance does not exist. Check whether the specified instance ID is correct or whether the instance belongs to your account. | 实例不存在,请检查提供的实例ID是否正确或该实例是否属于您的账户。 |
| 400 | ErService.HasOpened | 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. | 指定的站点不存在或当前未被系统识别。请检查站点标识符是否准确,并确保它与一个已定义、当前活跃且在系统公认的站点网络中可访问的站点相匹配。如果该站点是预定新增的,请确保已完成适当的创建或注册流程,以将其整合到系统中。 |
| 404 | SiteNotFound | The website does not exist or does not belong to you. | 站点不存在,或者不属于你。 |
| 404 | UnsupportQuota | Unsupported quota is specified. Check and try again. | 当前操作不支持该配额,请检查传入的配额是否有效。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。