This API is used to set resource quotas for a specified enterprise project.
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 |
Quota details. A maximum of 10 quota records can be configured at a time. For details, see Table 2. |
Name |
Type |
Description |
---|---|---|
enterprise_project_id |
String |
Enterprise project ID. |
instance_quota |
Integer |
DB instance quantity quota. The value ranges from 0 to 1000. (If there are already DB instances created, this parameter value must be greater than the number of existing DB instances.) |
vcpus_quota |
Integer |
vCPUs quota. The value ranges from 0 to 3600000. (If there are already DB instances created, this parameter value must be greater than the number of used vCPUs.) |
ram_quota |
Integer |
Memory quota in GB. The value ranges from 0 to 19200000. (If there are already DB instances created, this parameter value must be greater than the used memory size.) |
{ "quota_list": [ { "enterprise_project_id": "0", "instance_quota": 1, "vcpus_quota": 4, "ram_quota": 8 } ] }
Name |
Type |
Description |
---|---|---|
quota_list |
Array of objects |
Configured quota information. For details, see Table 4. |
{ "quota_list": [ { "enterprise_project_id": "0", "instance_quota": 1, "vcpus_quota": 4, "ram_quota": 8 } ] }
For details, see Status Codes.
For details, see Error Codes.