Querying Quotas
Function
This API is used to query resource quotas.
-
This API supports fine-grained permissions for enterprise projects. For details, see ies:quota:list.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
ies::listQuotas
List
-
-
- ies:quota:list
-
URI
GET /v1/{domain_id}/quotas
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
domain_id |
Yes |
String |
Account ID in the path. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
quotas |
QuotaResources object |
Resource quota details. |
|
Parameter |
Type |
Description |
|---|---|---|
|
resources |
Array of QuotaDetail objects |
Resource quota list. |
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
String |
Resource type
|
|
quota |
Integer |
Total resource quota. The default quota is 10, which can be changed. |
|
used |
Integer |
Number of registered edge sites. The value ranges from 0 to the value of quota. |
Example Requests
Querying user quotas
GET https://{ies_endpoint}/v1/{domain_id}/quotas
Example Responses
Status code: 200
successful operation
{
"quotas" : {
"resources" : [ {
"type" : "edge_site",
"quota" : 10,
"used" : 7
} ]
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
successful operation |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot