调试
您可以在API Explorer中调试该接口。
URI
GET /v1/{project_id}/quotas
GET https://{Endpoint}/v1/{project_id}/quotas?type={type}
名称 |
是否必选 |
参数类型 |
说明 |
---|---|---|---|
project_id |
是 |
String |
项目ID,获取项目ID请参见获取项目ID。 |
type |
否 |
String |
|
请求参数
无
请求示例
GET https://{Endpoint}/v1/{project_id}/quotas
响应参数
名称 |
参数类型 |
说明 |
---|---|---|
type |
String |
|
used |
Integer |
|
quota |
Integer |
|
min |
Integer |
允许修改的配额最小值 |

通过接口查询单租户在VPC服务下的网络资源配额,返回值“-1”,表示配额数量不限制。
响应示例
{
"quotas": {
"resources": [
{
"type": "vpc",
"used": 4,
"quota": 150,
"min": 0
},
{
"type": "subnet",
"used": 5,
"quota": 400,
"min": 0
},
{
"type": "securityGroup",
"used": 1,
"quota": 100,
"min": 0
},
{
"type": "securityGroupRule",
"used": 6,
"quota": 5000,
"min": 0
},
{
"type": "publicIp",
"used": 2,
"quota": 10,
"min": 0
},
{
"type": "vpn",
"used": 0,
"quota": 5,
"min": 0
},
{
"type": "vpngw",
"used": 0,
"quota": 2,
"min": 0
},
{
"type": "vpcPeer",
"used": 0,
"quota": 50,
"min": 0
},
{
"type":"physicalConnect",
"used":0,
"quota":10,
"min":0
},
{
"type":"virtualInterface",
"used":0,
"quota":50,
"min":0
},
{
"type": "firewall",
"used": 0,
"quota": 200,
"min": 0
},
{
"type": "shareBandwidth",
"used": 0,
"quota": 5,
"min": 0
},
{
"type": "shareBandwidthIP",
"used": 0,
"quota": 20,
"min": 0
},
{
"type": "loadbalancer",
"used": 0,
"quota": 10,
"min": 0
},
{
"type": "listener",
"used": 0,
"quota": 10,
"min": 0
},
{
"type": "vpcContainRoutetable",
"used": 0,
"quota": 1,
"min": 0
},
{
"type": "routetableContainRoutes",
"used": 0,
"quota": 200,
"min": 0
},
{
"type": "address_group",
"used": 0,
"quota": 50,
"min": 0
}
]
}
}
状态码
请参见状态码。
错误码
请参考错误码。