Querying Enterprise Project Quotas
Function
This API is used to query enterprise project quotas.
Authorization Information
Each account has permissions to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- 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
gaussdbfornosql::listEpsQuota
List
-
-
nosql:quota:list
-
URI
GET /v3/{project_id}/enterprise-projects/quotas
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
enterprise_project_name |
No |
String |
Enterprise project name. Fuzzy search is supported. If this parameter is not specified, all enterprise project quotas are returned. |
|
offset |
No |
Integer |
Index offset.
|
|
limit |
No |
Integer |
Maximum records to be queried.
|
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
total_count |
Integer |
Total number of records |
|
quotas |
objects |
Enterprise project quotas. For details, see Table 5. |
|
Parameter |
Type |
Description |
|---|---|---|
|
enterprise_project_id |
String |
Enterprise project ID |
|
enterprise_project_name |
String |
Enterprise project name |
|
quota |
object |
Enterprise project quotas. For details, see Table 6. |
|
used |
object |
Enterprise project quota used. For details, see Table 7. |
Example Request
Example Response
Status code: 200
Success.
{
"quotas" : [ {
"enterprise_project_id" : "c0348bb1-d09d-4ee2-8edd-53e496fe6b52",
"enterprise_project_name" : "test1",
"quota" : {
"instance" : 500,
"vcpus" : 1000,
"ram" : 2000
},
"used" : {
"instance" : 15,
"vcpus" : 88,
"ram" : 256
}
}, {
"enterprise_project_id" : "780a6b1f-58b8-4df6-a85e-326d052de704",
"enterprise_project_name" : "test2",
"quota" : {
"instance" : 500,
"vcpus" : 1000,
"ram" : 2000
},
"used" : {
"instance" : 36,
"vcpus" : 64,
"ram" : 192
}
} ],
"total_count" : 2
}
Status Codes
For details, see Status Codes.
Error Codes
For details, 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