Updated on 2025-08-06 GMT+08:00

Querying Quotas

Function

This API is used to obtain the quota list of a user.

URI

GET /v3/{project_id}/quotas

Table 1 URI parameter

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID, which is used for resource isolation. For how to obtain a project ID, see Obtaining a Project ID.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

is_success

Boolean

Whether the query is successful.

quotas

object

Quota list. For details, see Table 3.

Table 3 quotas

Parameter

Type

Description

resources

Array of objects

Quota resource details. For details, see Table 4.

Table 4 resources

Parameter

Type

Description

type

String

Quota type.

min

Integer

Minimum quota.

max

Integer

Maximum quota.

quota

Integer

Current quota.

used

Integer

Used quota.

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Status code: 500

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Request

None

Example Response

{
 "quotas": {
  "resources": [
   {
    "type": "CU",
    "min": 0,
    "max": 100000,
    "quota": 2500,
    "used": 992
   },
   {
    "type": "QUEUE",
    "min": 0,
    "max": 1000,
    "quota": 50000,
    "used": 53
   },
   {
    "type": "DATABASE",
    "min": 0,
    "max": 500,
    "quota": 1000,
    "used": 593
   },
   {
    "type": "TABLE",
    "min": 0,
    "max": 10000,
    "quota": 50000,
    "used": 8548
   },
   {
    "type": "TEMPLATE",
    "min": 0,
    "max": 10000,
    "quota": 1000,
    "used": 130
   },
   {
    "type": "SL_PKG_RESOURCE",
    "min": 0,
    "max": 2000,
    "quota": 50000,
    "used": 525
   },
   {
    "type": "SL_SESSION",
    "min": 0,
    "max": 1000,
    "quota": 300,
    "used": 2
   },
   {
    "type": "JOB_CU",
    "min": 0,
    "max": 400,
    "quota": 400,
    "used": 0
   },
   {
    "type": "ELASTIC_RESOURCE_POOL",
    "min": 0,
    "max": 1024,
    "quota": 5000,
    "used": 3
   }
  ]
 },
 "is_success": true
}

Status Codes

Status Code

Description

200

Returned result.

400

Error type and description.

500

Internal server error.

Error Codes

See Error Codes.