Updated on 2025-10-09 GMT+08:00

Querying Quotas

Function

Query quotas.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/antiddos/quotas

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Content-Type

Yes

String

Content-Type request header.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

ddos_quota

ddos_quota object

Quota information.

Table 4 ddos_quota

Parameter

Type

Description

current

Integer

Quota used by the current user.

quota

Integer

Maximum quota.

Example Requests

None

Example Responses

Status code: 200

OK

{
  "ddos_quota" : {
    "current" : 3,
    "quota" : 350
  }
}

Status Codes

Status Code

Description

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.