Querying VPC Endpoint Services

Function

This API is used to query VPC endpoint services.

URI

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

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.

id

No

String

Specifies the unique ID of the VPC endpoint service.

status

No

String

Specifies the status of the VPC endpoint service.

  • creating: The VPC endpoint service is being created.
  • available: The VPC endpoint service is connectable.
  • failed: The VPC endpoint service failed to be created.
  • deleting: The VPC endpoint service is being deleted.

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.

limit

No

Integer

Specifies the maximum number of 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.

Request

Response