Querying Public VPC Endpoint Services

Function

This API is used to query public VPC endpoint services. These services are created by operations people and can be visible to and assessed by all users.

URI

GET /v1/{project_id}/vpc-endpoint-services/public?limit={limit}&offset={offset}&endpoint_service_name={endpoint_service_name}&id={endpoint_service_id}&sort_key={sort_key}&sort_dir={sort_dir}

Table 1 describes parameters 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

limit

No

Integer

Specifies the maximum number of public VPC endpoint services 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.

endpoint_service_name

No

String

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

id

No

String

Specifies the unique ID of the public VPC endpoint service.

sort_key

No

String

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

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

The default field is created_at.

sort_dir

No

String

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

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

The default method is desc.

Request

Response

Status Codes

See Status Codes.