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

Querying Resource Quotas

Function

Query the quotas of DNS resources, including public zones, private zones, record sets, PTR records, inbound endpoints, outbound endpoints, custom lines, and line groups.

Calling Method

For details, see Calling APIs.

URI

GET /v2/quotamg/dns/quotas

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

domain_id

Yes

String

Tenant 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 an IAM API. The value of X-Subject-Token in the response header is the user token.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

quotas

Array of quotas objects

Quotas

Table 4 quotas

Parameter

Type

Description

quota_key

String

Resource type

quota_limit

Integer

Maximum resource quota

used

Integer

Used resource quota

unit

String

Quota measurement unit. The value is fixed at count.

Example Requests

None

Example Responses

Status code: 200

Response to the request for querying tenant quotas

{
  "quotas" : [ {
    "quota_key" : "zone",
    "quota_limit" : 50,
    "used" : 30,
    "unit" : "count"
  }, {
    "quota_key" : "record_set",
    "quota_limit" : 500,
    "used" : 300,
    "unit" : "count"
  } ]
}

Status Codes

Status Code

Description

200

Response to the request for querying tenant quotas

Error Codes

See Error Codes.