This API is used to query a resource quota. You can query the quota of users, user groups, identity providers, agencies, and policies.
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
Content-Type |
Yes |
String |
Fill application/json;charset=utf8 in this field. |
X-Auth-Token |
Yes |
String |
User token (no special permission requirements). |
GET https://sample.domain.com/v3.0/OS-QUOTA/domains/{domain_id}?type=group
Parameter |
Type |
Description |
|---|---|---|
Object |
Quota information of the domain. |
Parameter |
Type |
Description |
|---|---|---|
max |
Integer |
Maximum quota. |
min |
Integer |
Minimum quota. |
quota |
Integer |
Current quota. |
type |
String |
Quota type. |
used |
Integer |
Used quota. |
Group quota:
{
"quotas": {
"resources": [
{
"max": 200,
"min": 10,
"quota": 20,
"type": "group",
"used": 6
}
]
}
}
Status Code |
Description |
|---|---|
200 |
The request is successful. |
400 |
The server failed to process the request. |
401 |
Authentication failed. |
403 |
Access denied. |
500 |
Internal server error. |
503 |
Service unavailable. |