Help Center/ GaussDB/ API Reference/ APIs (Recommended)/ Quota Management/ Modifying Enterprise Project Quotas
Updated on 2024-08-20 GMT+08:00

Modifying Enterprise Project Quotas

Function

This API is used to modify enterprise project quotas. Before calling this API:

URI

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

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Explanation:

Project ID of a tenant in a region.

For details about how to obtain the project ID, see Obtaining a Project ID.

Restrictions:

None

Value range:

The value can contain 32 characters. Only letters and digits are allowed.

Default value:

None

Request Parameters

Table 2 Parameter description

Parameter

Mandatory

Type

Description

eps_quotas

Yes

Array of objects

Enterprise quotas to be modified.

For details, see Table 3.

Table 3 EpsQuotasOption parameter description

Parameter

Mandatory

Type

Description

enterprise_projects_id

Yes

String

Enterprise project ID.

instance_quota

No

Integer

Instance quota. Value: Number of created instances - 100,000

vcpus_quota

No

Integer

CPU quota. Value: Actually vCPUs - 2,147,483,646.

ram_quota

No

Integer

Memory quota, in GB. Value: Actually used memory - 2,147,483,646.

volume_quota

No

Integer

Storage quota, GB. Value: Actually used storage - 2,147,483,646.

Response Parameters

None

Example Request

Configuring quotas for an enterprise project (1,000 instances, 100,000 vCPUs, 200,000 GB of memory, and 1,000,000 GB of storage)
PUT https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/0483b6b16e954cb88930a360d2c4e663/enterprise-projects/quotas
{
    "eps_quotas": [
        {
            "enterprise_projects_id": "0",
            "instance_quota": 1000,
            "vcpus_quota": 100000,
            "ram_quota": 200000,
            "volume_quota": 1000000
        }
    ]
}

Example Response

None

Status Code

Error Code

For details, see Error Codes.