Help Center/ NAT Gateway/ API Reference/ Out-of-Date APIs/ API v2.0/ Quota/ Querying the NAT Gateway Quota of a Tenant
Updated on 2025-09-12 GMT+08:00

Querying the NAT Gateway Quota of a Tenant

Function

This API is used to query the NAT gateway quota of a tenant.

URI

  • URI format
    GET /v2.0/{project_id}/nat_gateways/quotas
    Table 1 Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Specifies the project ID of the operator.

    type

    No

    String

    • The value can be nat_gateway.
    • Specifies the type used to filter quotas.

Request

None

Response

Table 2 lists response parameter.
Table 2 Response parameter

Parameter

Type

Description

quotas

Array(Object)

Specifies the quotas. For details, see Table 3.

Table 3 Description of the quotas field

Parameter

Type

Description

resources

Array(Object)

Specifies the resource object list. For details, see Table 4.

Table 4 Description of the resource field

Parameter

Type

Description

type

String

  • The value can be nat_gateway.
  • Specifies the type used to filter quotas.

used

Integer

  • The value ranges from 0 to the value of quota.
  • Specifies the number of created network resources.

quota

Integer

  • The value ranges from the default quota value to the maximum quota value.
  • Specifies the maximum quota values for the resources.
  • The default quota values can be changed. You must configure the quota values only in the underlying system in advance. The default value is 15.

min

Integer

Specifies the minimum quota value allowed.

Examples

  • Example request

    GET /v2.0/{project_id}/nat_gateways/quotas?type=nat_gateway

  • Example response

    {

    "quotas": {

    "resources": [

    {

    "type": "nat_gateway",

    "used": 4,

    "quota": 150,

    "min": 0

    }

    ]

    }

    }