Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
14 KiB
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 |
|---|---|---|---|
Content-Type |
Yes |
String |
MIME type of the request body. application/json is recommended. |
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://{Endpoint}/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
See Status Codes.
Error Codes
See Error Codes.