根据站点或者实例ID,查询对应实例套餐的某些配额以及当前的用量详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:ListInstanceQuotasWithUsage |
list |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
否 |
套餐实例 ID,可通过调用 ListSites 接口获取。 |
sp-xcdn-96wblslz**** |
| SiteId |
integer |
否 |
站点 ID,可通过调用 ListSites 接口获取。 |
1232223**** |
| QuotaNames |
string |
是 |
套餐配额名称,多个用(,)隔开,一次最多可查询 10 个配额。支持:
|
customHttpCert |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
85H66C7B-671A-4297-9187-2C4477247A74 |
| InstanceId |
string |
套餐实例 ID。 |
sp-xcdn-96wblslz**** |
| Status |
string |
套餐实例状态。支持:
|
online |
| Quotas |
array<object> |
套餐实例配额及用量列表。 |
|
|
array<object> |
套餐实例配额及用量详情。 |
||
| QuotaName |
string |
配额名称。 |
redirect_rules|rule_quota |
| QuotaValue |
string |
配额值。 |
10 |
| Usage |
string |
配额已使用量。 |
3 |
| SiteUsage |
array<object> |
实例绑定的各个站点的用量详情。 |
|
|
object |
单个站点用量详情。 |
||
| SiteId |
integer |
站点 ID。 |
34818329392**** |
| SiteUsage |
string |
当前站点的用量。 |
1 |
| SiteName |
string |
站点名称。 |
test.top |
示例
正常返回示例
JSON格式
{
"RequestId": "85H66C7B-671A-4297-9187-2C4477247A74",
"InstanceId": "sp-xcdn-96wblslz****",
"Status": "online",
"Quotas": [
{
"QuotaName": "redirect_rules|rule_quota",
"QuotaValue": "10",
"Usage": "3",
"SiteUsage": [
{
"SiteId": 0,
"SiteUsage": "1",
"SiteName": "test.top"
}
]
}
]
}
错误码
|
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 | NoPermission | You do not have permissions to access or operate on the resource.Contact your account administrator to attach the AliyunESAFullAccess policy to the current user. | 对当前资源无权限访问或者操作。请联系您阿里云账户的管理员,以授予您 AliyunESAFullAccess 策略。 |
| 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. | 当前操作不支持该配额,请检查传入的配额是否有效。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。