This API is used to query VPC endpoint services.
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}
Parameter |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
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.
|
sort_key |
No |
String |
Specifies the sorting field of the VPC endpoint service list. The field can be:
The default field is created_at. |
sort_dir |
No |
String |
Specifies the sorting method of the VPC endpoint service list. The method can be:
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. |
Parameter |
Type |
Description |
---|---|---|
endpoint_services |
Array of objects |
Lists the VPC endpoint services. For details, see Table 4. |
total_count |
Integer |
Specifies the total number of VPC endpoint services that meet the search criteria. The number is not affected by the limit or offset. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the unique ID of the VPC endpoint service. |
port_id |
String |
Specifies the ID for identifying the backend resource of the VPC endpoint service. The ID is in UUID format. The values are as follows:
|
service_name |
String |
Specifies the name of the VPC endpoint service. |
server_type |
String |
Specifies the resource type.
|
vpc_id |
String |
Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. |
approval_enabled |
Boolean |
Specifies whether connection approval is required.
|
status |
String |
Specifies the status of the VPC endpoint service.
|
service_type |
String |
Specifies the type of the VPC endpoint service. There are two types of VPC endpoint services: interface and gateway.
You can perform the operations in Creating a VPC Endpoint to create VPC endpoints for accessing VPC endpoints of the gateway and interface types. |
created_at |
String |
Specifies the creation time of the VPC endpoint service. The UTC time format is used: YYYY-MM-DDTHH:MM:SSZ. |
updated_at |
String |
Specifies the update time of the VPC endpoint service. The UTC time format is used: YYYY-MM-DDTHH:MM:SSZ. |
project_id |
String |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
domain_id |
String |
Specifies the user's domain ID. |
ports |
Array of objects |
Lists the port mappings opened to the VPC endpoint service. For details, see Table 5. Duplicate port mappings are not allowed in the same VPC endpoint service. If multiple VPC endpoint services share the same port_id value, either server_port or protocol, or both server_port and protocol of each of these endpoint services must be unique. |
tags |
Array of objects |
Lists the resource tags. For details, see Table 6. |
connection_count |
Integer |
Specifies the number of Creating or Accepted VPC endpoints under the VPC endpoint service. |
tcp_proxy |
String |
Specifies whether the client IP address and port number or marker_id information is transmitted to the server. The following methods are supported:
This parameter is available only when the server can parse fields tcp option and tcp payload. The values are as follows:
The default value is close. |
error |
Array of objects |
Specifies the error message. This field is returned when the status of the VPC endpoint service changes to failed. For details, see Table 7. |
pool_id |
String |
Specifies the ID of the cluster the VPC endpoint belongs to. |
Parameter |
Type |
Description |
---|---|---|
client_port |
Integer |
Specifies the port for accessing the VPC endpoint. This port is provided by the VPC endpoint, allowing you to access the VPC endpoint service. Supported range: 1 to 65535 |
server_port |
Integer |
Specifies the port for accessing the VPC endpoint service. This port is provided by the backend service to provide services. Supported range: 1 to 65535 |
protocol |
String |
Specifies the port mapping protocol. TCP is supported. The default value is TCP. |
Parameter |
Type |
Description |
---|---|---|
key |
String |
Specifies the tag key. A tag key contains a maximum of 36 Unicode characters. key cannot be left blank. It can contain only digits, letters, hyphens (-), underscores (_), and at signs (@). |
value |
String |
Specifies the tag value. A tag value contains a maximum of 43 Unicode characters and can be left blank. It can contain only digits, letters, hyphens (-), underscores (_), and at signs (@). |
{ "endpoint_services":[ { "id":"4189d3c2-8882-4871-a3c2-d380272eed83", "port_id":"4189d3c2-8882-4871-a3c2-d380272eed88", "vpc_id":"4189d3c2-8882-4871-a3c2-d380272eed80", "status":"available", "approval_enabled":false, "service_name":"test123", "server_type":"VM", "service_type":"interface", "ports":[ { "client_port":8080, "server_port":90, "protocol":"TCP" }, { "client_port":8081, "server_port":80, "protocol":"TCP" } ], "project_id":"6e9dfd51d1124e8d8498dce894923a0d", "domain_id" : "5fc973eea581490997e82ea11a1df31f", "created_at":"2018-01-30T07:42:01Z", "updated_at":"2018-01-30T07:42:01Z" } ], "total_count":1 }