Querying Enterprise Project Quotas
Function
This API is used to query enterprise project quotas. Before calling this API:
- Learn how to authenticate this API.
- Obtain the required region and endpoint.
URI
GET /v3/{project_id}/enterprise-projects/quotas
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition Project ID of a tenant in a region. To obtain the value, see Obtaining a Project ID. Constraints N/A Range The value can contain 32 characters. Only letters and digits are allowed. Default Value N/A |
enterprise_project_id |
No |
String |
Definition Enterprise project ID. Constraints N/A Range N/A Default Value
|
offset |
No |
Integer |
Definition Index offset. Constraints N/A Range 0–2,147,483,647 Default Value 0: The query starts from the first data record. |
limit |
No |
Integer |
Definition Number of records returned by a query. Constraints N/A Range 1–100 Default Value 100 |
Request Parameters
None
Response Parameters
Parameter |
Type |
Description |
---|---|---|
eps_quotas |
Array of objects |
Definition Enterprise project details. For details, see Table 3. |
total_count |
Integer |
Definition Total number of records. Range N/A |
Parameter |
Type |
Description |
---|---|---|
enterprise_project_id |
String |
Definition Enterprise project ID. Range N/A |
enterprise_project_name |
String |
Definition Enterprise project name. Range N/A |
instance_eps_quota |
Integer |
Definition EPS instance quota. The value -1 indicates that the quota is not limited. Range N/A |
vcpus_eps_quota |
Integer |
Definition EPS compute quota. The value -1 indicates that the quota is not limited. Range N/A |
ram_eps_quota |
Integer |
Definition EPS memory quota in GB. The value -1 indicates that the quota is not limited. Range N/A |
volume_eps_quota |
Integer |
Definition EPS storage quota in GB. The value -1 indicates that the quota is not limited. Range N/A |
instance_used |
Integer |
Definition Used EPS instance quota. Range N/A |
vcpus_used |
Integer |
Definition Used EPS compute quota. Range N/A |
ram_used |
Integer |
Definition Used EPS memory quota in GB. Range N/A |
volume_used |
Integer |
Definition Used EPS storage quota, in GB. Range N/A |
Example Request
GET https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/0611f1bd8b00d5d32f17c017f15b599f/enterprise-projects/quotas
Example Response
{ "eps_quotas" : [ { "enterprise_project_id" : "2c049d98-3347-494f-8767-99af6b3aa5f0", "enterprise_project_name" : "default", "instance_eps_quota" : 100, "vcpus_eps_quota" : 1500, "ram_eps_quota" : 20000, "volume_eps_quota" : 100000, "instance_used" : 33, "vcpus_used" : 1460, "ram_used" : 19680, "volume_used" : 8840 }, { "enterprise_project_id" : "2c049d98-3347-494f-8767-99af6b3aa5f0", "enterprise_project_name" : "11111", "instance_eps_quota" : -1, "vcpus_eps_quota" : -1, "ram_eps_quota" : -1, "volume_eps_quota" : -1, "instance_used" : 2, "vcpus_used" : 54, "ram_used" : 384, "volume_used" : 680 }, { "enterprise_project_id" : "bd91e1eb-2e33-4f17-a8d4-05eb2c805781", "enterprise_project_name" : "quota_at_gaussdbv5_test", "instance_eps_quota" : -1, "vcpus_eps_quota" : -1, "ram_eps_quota" : -1, "volume_eps_quota" : -1, "instance_used" : 1, "vcpus_used" : 240, "ram_used" : 1920, "volume_used" : 480 } ], "total_count" : 3 }
Status Codes
- Normal
- Abnormal
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