Querying the Resource Instance List

Function

This API is used to query resource instances based on tags.

Calling Method

For details, see Calling APIs.

URI

POST /v5/{project_id}/{resource_type}/resource-instances/filter

Table 1 Parameter description

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.

resource_type

String

Yes

  • Specifies the resource type.
  • The value can be vpn-gateway, customer-gateway, or vpn-connection.
Table 2 Parameter in a query request

Parameter

Type

Mandatory

Description

limit

Integer

No

  • Specifies the number of records to be queried.
  • The value ranges from 1 to 1000.
  • The default value is 1000.

offset

Integer

No

  • Specifies the index position. The query starts from the (offset value + 1)th data record.
  • The minimum value is 0.
  • The default value is 0.

Request

Response

Status Codes

For details, see Status Codes.