Querying Quotas
Function
This API is used to query the used quotas of resources, such as enterprise routers and VPC attachments.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account root user has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
er:quotas:list |
List |
- |
- |
- |
- |
URI
GET /v3/{project_id}/enterprise-router/quotas
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
quotas |
Array of Quota objects |
Used quota details |
|
page_info |
PageInfo object |
Pagination query information |
Example Requests
Querying the resource quotas
GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/quotas
Example Responses
Status code: 200
OK
{
"quotas" : [ {
"quota_key" : "er_instance",
"quota_limit" : 1,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "dc_attachment",
"quota_limit" : 2,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "route_table",
"quota_limit" : 20,
"used" : 5,
"unit" : "count"
}, {
"quota_key" : "static_route",
"quota_limit" : 500,
"used" : 2,
"unit" : "count"
}, {
"quota_key" : "can_attachment",
"quota_limit" : 10,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "connect_attachment",
"quota_limit" : 20,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "peering_attachment",
"quota_limit" : 10,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "vpn_attachment",
"quota_limit" : 10,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "flow_log",
"quota_limit" : 20,
"used" : 4,
"unit" : "count"
} ],
"page_info" : {
"next_marker" : "1",
"current_count" : 9
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.