Modifying Resource Quotas
Function
This API is used to modify the resource quotas of a specified enterprise project. Before calling this API:
This API will be unavailable on March 31, 2025. You are advised to switch workloads to the new API (Modifying the Resource Quotas of a Specified Enterprise Project) before then.
- Learn how to authorize and authenticate it.
- Obtain the required region and endpoint.
URI
- Parameter description
Table 1 Parameter description Name
Mandatory
Description
project_id
Yes
Project ID of a tenant in a region.
To obtain this value, see Obtaining a Project ID.
quota_list
Yes
Enterprise project resource quotas to be updated. A maximum of 10 quotas can be updated at a time.
For details, see Table 2.
Request
- Parameter description
Table 2 quota_list field data structure description Name
Type
Description
enterprise_project_id
String
Enterprise project ID.
instance_quota
Integer
Quota of the DB instance quantity. Value range: 0–1000. (If there are already DB instances created, this parameter value must be at least the number of existing DB instances.)
vcpus_quota
Integer
Quota of vCPUs. Value range: 0–3600000. (If there are already DB instances created, this parameter value must be at least the number of used vCPUs.)
ram_quota
Integer
Memory quota in GB.
Memory quota in GB. Value range: 0–19200000. (If there are already DB instances created, this parameter value must be at least the used memory size.)
- Request example
{ "quota_list": [ { "enterprise_project_id": "0", "instance_quota": 1, "vcpus_quota": 4, "ram_quota": 8 } ] }
Response
- Parameter description
Table 3 Parameter description Name
Type
Description
quota_list
Array of objects
Configured quota information.
For details, see Table 4.
- Example response
{ "quota_list": [ { "enterprise_project_id": "0", "instance_quota": 1, "vcpus_quota": 4, "ram_quota": 8 } ] }
Status Code
For details, see Status Codes.
Error Code
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