This API is used to query VPN resource quotas of a tenant, including VPN gateways, customer gateways, and VPN connections.
For details, see Calling APIs.
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID. |
Returned status code 200: successful query
Parameter |
Type |
Description |
---|---|---|
quotas |
Quotas object |
Specifies the quotas object. |
request_id |
String |
Specifies a request ID. |
Parameter |
Type |
Description |
---|---|---|
resources |
Array of QuotaInfo objects |
Specifies the resources object. |
Parameter |
Type |
Description |
---|---|---|
type |
String |
|
quota |
Integer |
Specifies the quota upper limit. |
used |
Integer |
Specifies the number of resources in use. |
{ "quotas": { "resources": [ { "type": "customer_gateway", "quota": 100, "used": 13 }, { "type": "vpn_connection", "quota": 5000, "used": 306 }, { "type": "vpn_gateway", "quota": 50, "used": 23 } ] }, "request_id": "9aeb7f73-e1b6-42eb-96ad-b68aef8186e3" }
For details, see Status Codes.