查询配额
功能介绍
查询租户资源配额。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v1/edgeclouds/quotas
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 |
请求示例
GET https://{endpoint}/v1/edgeclouds/quotas
响应示例
状态码: 200
OK
{ "quotas" : { "resources" : [ { "type" : "vpn", "used" : 0, "quota" : 50, "min" : 0, "max" : 100000 }, { "type" : "vpc", "used" : 22, "quota" : 50, "min" : 0, "max" : 100000 }, { "type" : "securityGroup", "used" : 3, "quota" : 250, "min" : 0, "max" : 100000 }, { "type" : "subnet", "used" : 150, "quota" : 250, "min" : 0, "max" : 100000 }, { "type" : "firewall", "used" : 23, "quota" : 100, "min" : 0, "max" : 100000 }, { "type" : "shareBandwidth", "used" : 13, "quota" : 50, "min" : 0, "max" : 100000 }, { "type" : "publicIp", "used" : 55, "quota" : 190, "min" : 0, "max" : 100000 }, { "type" : "securityGroupRule", "used" : 81, "quota" : 10000, "min" : 0, "max" : 100000 }, { "type" : "image", "used" : 8, "quota" : 100, "min" : 0, "max" : 500 }, { "type" : "edgeclouds", "used" : 22, "quota" : 30, "min" : 0, "max" : 10000 }, { "type" : "gigabyte", "used" : 760, "quota" : 8000, "min" : 0, "max" : 4096000 }, { "type" : "instance", "used" : 11, "quota" : 120, "min" : 0, "max" : 20480 }, { "type" : "volume", "used" : 13, "quota" : 100, "min" : 0, "max" : 100000 }, { "type" : "vcpu", "used" : 88, "quota" : 1024, "min" : 0, "max" : 204800 }, { "type" : "ram", "used" : 360448, "quota" : 5120000, "min" : 0, "max" : 81920000 } ] } }
状态码
状态码 |
描述 |
---|---|
200 |
OK |
错误码
请参见错误码。