Obtaining Resource Quotas in a Specified Range
Function
Obtain the quota of resources within a specified range.
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, no identity policy-based permission required for calling this API.
URI
GET /v1/{project_id}/cae/quotas/{scope_type}/{scope_id}/{resource_type}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. See Obtaining a Project ID. |
|
scope_type |
Yes |
String |
Effective scope type. Currently, only env is supported, that is, the environment level. If a non-enumerated value is entered, the default value of resource_type is returned. |
|
scope_id |
Yes |
String |
Instance ID of the effective scope type, for example, environment ID. |
|
resource_type |
Yes |
String |
Resource type. Only component is supported, that is, the number of components. If env is specified, the default number of environments is returned. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token.
|
|
X-Enterprise-Project-ID |
No |
String |
Enterprise project ID.
NOTE:
For details about how to obtain enterprise project IDs and enterprise project features, see Enterprise Management User Guide.
|
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
String |
Resource type. |
|
unit |
String |
Unit, which is left blank by default. |
|
quota |
Integer |
Total quotas. |
|
used |
Integer |
Used capacity. |
Example Requests
None
Example Responses
Status code: 200
Request succeeded.
{
"type" : "component",
"unit" : "",
"quota" : 50,
"used" : 8
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Request succeeded. |
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