Querying the Quota
Function
This API is used to query the network resource quotas of a tenant. The network resources include VPCs, subnets, security groups, security group rules, EIPs, VPNs, and more.
This API can be used to query quotas of EIPs and VPCs.
URI
GET /v1/{project_id}/quotas
GET https://{Endpoint}/v1/{project_id}/quotas?type={type}
Name |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
type |
No |
String |
|
Request Parameters
None
Response Parameters
Name |
Type |
Description |
---|---|---|
quotas |
quotas object |
Specifies the quota object. For details, see Table 3. |
Name |
Type |
Description |
---|---|---|
resources |
Array of resource objects |
Specifies the resource objects. For details, see Table 4. |
Name |
Type |
Description |
---|---|---|
type |
String |
|
used |
Integer |
|
quota |
Integer |
|
min |
Integer |
Specifies the minimum quota value allowed. |
If value -1 is returned when you use an API to query your VPC quota, this indicates that the VPC quota is not limited.
Example Response
{ "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 } ] } }
Status Code
See Status Codes.
Error Code
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot