Help Center/ Cloud Service Engine/ API Reference/ CSE API/ Engine Management/ Querying Details About the Microservice Engine Quota
Updated on 2025-04-25 GMT+08:00

Querying Details About the Microservice Engine Quota

Function

This API is used to query details about the microservice engine quota.

URI

GET /v2/{project_id}/enginemgr/quotas

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID, which must be unique. The value contains 1 to 64 characters.

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

X-Enterprise-Project-ID

No

String

If this parameter is not set, the default enterprise project is default and the ID is 0.

Content-Type

Yes

String

Set it to application/json;charset=UTF-8.

Accept

Yes

String

Set it to application/json.

Response

Status code: 200
Table 3 Response body parameters

Parameter

Type

Description

quotas

quotas object

Microservice engine quota content.

Table 4 quotas

Parameter

Type

Description

resources

Array of TenantQuotaUsed objects

List of microservice engine quota details.

Table 5 TenantQuotaUsed

Parameter

Type

Description

type

String

Quota type. Fixed value: Engine.

used

Integer

Used quota.

quota

Integer

Total engine quota.

Status code: 400
Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

detail

String

Location details.

Status code: 500
Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

detail

String

Location details.

Example Request

GET https://{endpoint}/v2/{project_id}/enginemgr/quotas

Example Response

Status code: 200

Structure for querying details about the microservice engine quota.

{
  "quotas" : {
    "resources" : [ {
      "type" : "Engine",
      "used" : 4,
      "quota" : 5
    } ]
  }
}

Status Code

Status Code

Description

200

OK

400

Bad Request

500

Internal Server Error

Error Code

See Error Codes.