forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
15 KiB
15 KiB
Querying a Resource Quota
Function
This API is used to query a resource quota. You can query the quota of users, user groups, identity providers, agencies, and policies.
URI
Request Parameters
- Parameters in the request header
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).
- Example request
GET https://sample.domain.com/v3.0/OS-QUOTA/domains/{domain_id}?type=group
Response Parameters
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. |
- Example response
Group quota: { "quotas": { "resources": [ { "max": 200, "min": 10, "quota": 20, "type": "group", "used": 6 } ] } }
Status Codes
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. |
Parent topic: Tenant Management