This topic provides an overview of endpoints, and describes how to create an endpoint and use the endpoint to access an endpoint service.
Overview
You can associate an endpoint in a virtual private cloud (VPC 1) with an endpoint service in another VPC (VPC 2). This way, VPC 1 can access the Server Load Balancer (SLB) instances in VPC 2. Endpoints are created and managed by service consumers.
Procedure
The following flowchart shows how to create an endpoint and use the endpoint to access an endpoint service.
Create a vSwitch
Create a vSwitch. Make sure that the vSwitch is deployed in the zone of the SLB instance that serves as the service resource of the endpoint service to be accessed. After the vSwitch is created, the system creates an endpoint elastic network interface (ENI) in the vSwitch. The endpoint ENI serves as an ingress for the VPC in which the endpoint is deployed to access the endpoint service.
Create an endpoint
Create an endpoint and associate the endpoint with the endpoint service. This way, the VPC in which the endpoint is deployed can access the SLB instance in the VPC in which the endpoint service is deployed. For more information, see the Create an endpoint section of the Create and manage endpoints topic.
View the domain name and IP address that can be used to access the endpoint service
After the endpoint is created, you can view the domain name and IP address that can be used to access the endpoint service. For more information, see the View the domain name or IP address that can be used to access an endpoint service section of the Create and manage endpoints topic.
Access the endpoint service
Access the endpoint service by using the domain name of the endpoint, the domain name of the zone in which the endpoint is deployed, or the IP address of the zone.