Modifying Enterprise Project Quotas
Function
This API is used to modify enterprise project quotas.
URI
PUT https://{Endpoint}/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. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
quotas |
Yes |
objects |
Enterprise quotas to be modified. For details, see Table 4. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
enterprise_project_id |
Yes |
String |
Enterprise project ID |
quota |
Yes |
object |
Enterprise quotas to be modified. For details, see Table 5.
NOTE:
At least one of parameters instance, vcpus, and ram must be transferred. |
Response Parameters
Status code: 204
No response parameters
Example Requests
- URI example
PUT https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/enterprise-projects/quotas
- Modifying quotas of an enterprise project (Set instance to 1000, vcpus to 500, and ram to 1024.)
{ "quotas" : [ { "enterprise_project_id" : "4d05638e-d4c6-477c-9b51-9620fa257a11", "quota" : { "instance" : 1000, "vcpus" : 500, "ram" : 1024 } }, { "enterprise_project_id" : "92450d0e-8c4b-48e1-9909-4d9d2f086ce4", "quota" : { "ram" : 512 } } ] }
Example Responses
None
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