Updated on 2024-08-08 GMT+08:00

Modifying Enterprise Project Quotas

Function

This API is used to modify enterprise project quotas.

URI

PUT https://{Endpoint}/v3/{project_id}/enterprise-projects/quotas

Table 1 Path parameters

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

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

quotas

Yes

objects

Enterprise quotas to be modified. For details, see Table 4.

Table 4 NoSqlRequestEpsQuota

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.

Table 5 NoSqlEpsQuotaRequestInfo

Parameter

Mandatory

Type

Description

instance

No

Integer

Instance quota

vcpus

No

Integer

vCPU quota

ram

No

Integer

RAM quota

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.