This API is used to query the load balancer or listener quotas.
GET /v1.0/{project_id}/elbaas/quotas
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
Parameter |
Type |
Description |
|---|---|---|
quotas |
Object |
Specifies the resource quotas. |
Parameter |
Type |
Description |
|---|---|---|
resources |
Array |
Lists the resource quotas. |
Parameter |
Type |
Description |
|---|---|---|
type |
String |
Specifies the resource type. The value can be elb or listener. |
used |
Integer |
Specifies the quantity of used resources. |
quota |
Integer |
Specifies the total resource quotas. |
max |
Integer |
Specifies the maximum number of resources. |
min |
Integer |
Specifies the minimum number of resources. |
{
"quotas": {
"resources": [
{
"type": "elb",
"used": 2,
"quota": 5,
"max": 100,
"min": 1
},
{
"type": "listener",
"quota": 5,
"max": 200,
"min": 1
}
]
}
}
The used parameter is unavailable for listeners, for which an empty character string is returned.
Status Code |
Message |
Description |
|---|---|---|
400 |
badRequest |
Request error. |
401 |
unauthorized |
Authentication failed. |
403 |
userDisabled |
You do not have the permission to perform the operation. |
404 |
Not Found |
The requested page does not exist. |
500 |
authFault |
System error. |
503 |
serviceUnavailable |
The service is unavailable. |