Querying Details of a VPC Endpoint Service
Function
This API is used to query details of a VPC endpoint service.
URI
GET /v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}
| Parameter | Mandatory | Description |
|---|---|---|
| project_id | Yes | Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
| vpc_endpoint_service_id | Yes | Specifies the ID of the VPC endpoint service. |
Request
Response
- Parameter description
Table 2 Response parameters 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 the form of the UUID. The value is as follows:
- If the backend service is an enhanced load balancer, the value is the ID of the port bound to the private IP address of the load balancer.
- If the backend resource is an ECS, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
- If the backend resource is a virtual IP address, the value is the NIC ID of the physical server where virtual resources are created.
vip_port_id
String
Specifies the ID of the virtual NIC to which the virtual IP address is bound.
This parameter is returned only when port_id is set to VIP.
service_name
String
Specifies the name of the VPC endpoint service.
server_type
String
Specifies the resource type.
- VM: indicates the ECS.
- VIP: indicates the virtual IP address.
- LB: indicates the enhanced load balancer.
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.
- false: indicates that connection approval is not required. The created VPC endpoint is in the Accepted state.
- true: indicates that connection approval is required. The created VPC endpoint is in the Pending acceptance state until the owner of the associated VPC endpoint service approves the connection.
status
String
Specifies the status of the VPC endpoint service.
- creating: indicates the VPC endpoint service is being created.
- available: indicates the VPC endpoint service is connectable.
- failed: indicates the creation of the VPC endpoint service failed.
- deleting: indicates the VPC endpoint service is being deleted.
service_type
String
Specifies the type of the VPC endpoint service.
There are two types of VPC endpoint services: interface and gateway.- Gateway: VPC endpoint services of this type are configured by operations people. You can use them directly without the need to create one by yourselves.
- Interface: VPC endpoint services of this type include cloud services configured by operations people and private services created by yourselves. You cannot configure these cloud services, but can use them.
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.
cidr_type
String
Specifies the network segment type. The value can be public or internal.
- public: indicates the public subnet CIDR block.
- internal: indicates the private subnet CIDR block.
The default value is internal.
ports
Array of objects
Lists the port mappings opened to the VPC endpoint service. For details, see Table 3.
Duplicate port mappings are not allowed in the same VPC endpoint service. If multiple VPC endpoint services share the same port_id value, service ports and terminal ports of all these endpoint services cannot be duplicated when the protocol is the same.
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:
- TCP TOA: The client information is inserted into field tcp option and transmitted to the server.
- Proxy Protocol: The client information is inserted into field tcp payload and transmitted to the server.
This parameter is available only when the server can parse fields tcp option and tcp payload.
The values are as follows:
- close: indicates that the TOA and Proxy Protocol methods are neither used.
- toa_open: indicates that the TOA method is used.
- proxy_open: indicates that the Proxy Protocol method is used.
- open: indicates that the TOA and Proxy Protocol methods are both used.
The default value is close.
tags
Array of objects
Lists the resource tags. For details, see Table 4.
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 5.
Table 3 Port mapping parameters 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. The value ranges from 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. The value ranges from 1 to 65535.
protocol
String
Specifies the protocol used in port mappings. The value can be TCP or UDP. The default value is TCP.
Table 4 ResourceTags parameters Parameter
Type
Description
key
String
Specifies the tag key. A tag key contains a maximum of 36 Unicode characters. This parameter cannot be left empty. It cannot contain the following characters: =*<>\,|/ nor start or end with a space.
value
String
Specifies the tag value. A tag value contains a maximum of 43 Unicode characters and can be left blank. It cannot contain the following characters: =*<>\,|/ nor start or end with a space.
- Example response
{ "id":"4189d3c2-8882-4871-a3c2-d380272eed83", "port_id":"4189d3c2-8882-4871-a3c2-d380272eed88", "vpc_id":"4189d3c2-8882-4871-a3c2-d380272eed80", "pool_id":"5289d3c2-8882-4871-a3c2-d380272eed80", "status":"available", "approval_enabled":false, "service_name":"test123", "service_type":"interface", "server_type":"VM", "project_id":"6e9dfd51d1124e8d8498dce894923a0d", "created_at":"2018-01-30T07:42:01.174", "ports": [ { "client_port":8080, "server_port":90, "protocol":"TCP" }, { "client_port":8081, "server_port":80, "protocol":"TCP" } ] }
Status Code
For details about status codes, see Status Code.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.