Querying VPC Endpoints

Function

This API is used to query VPC endpoints.

URI

GET /v1/{project_id}/vpc-endpoints?endpoint_service_name={endpoint_service_name}&vpc_id={vpc_id}&limit={limit}&offset={offset}&id={id}&sort_key={sort_key}&sort_dir={sort_dir}

Table 1 describes the parameter in this URI.
Table 1 URI parameter

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

Table 2 Query parameters

Parameter

Mandatory

Type

Description

endpoint_service_name

No

String

Specifies the name of the VPC endpoint service. The name is not case-sensitive and supports fuzzy match.

vpc_id

No

String

Specifies the ID of the VPC where the VPC endpoint is to be created.

id

No

String

Specifies the unique ID of the VPC endpoint.

limit

No

Integer

Specifies the maximum number of VPC endpoints displayed on each page.

The number ranges from 0 to 1000 and is generally 10, 20, or 50. The default number is 10.

offset

No

Integer

Specifies the offset.

All VPC endpoint services after this offset will be queried. The offset must be an integer greater than 0 but less than the number of VPC endpoint services.

sort_key

No

String

Specifies the sorting field of the VPC endpoint list. The field can be:

  • created_at: VPC endpoints are sorted by creation time.
  • updated_at: VPC endpoints are sorted by update time.

The default field is created_at.

sort_dir

No

String

Specifies the sorting method of the VPC endpoint list. The method can be:

  • desc: VPC endpoints are sorted in descending order.
  • asc: VPC endpoints are sorted in ascending order.

The default method is desc.

Request

Response

Status Codes

See Status Codes.