After you create an endpoint service, you can add service resources to the endpoint service. After an endpoint connection is established between an endpoint of a virtual private cloud (VPC) and the endpoint service, the VPC can access the service resources of the endpoint service by using PrivateLink. You can also remove the service resources that you no longer need from the endpoint service.
Operations
Prerequisites
An endpoint service is created. For more information, see Create an endpoint service.
Add service resources
- Log on to the endpoint service console.
- In the top navigation bar, select the region in which the endpoint service is deployed.
- On the Endpoints Service page, find and click the ID of the endpoint service that you want to manage.
- On the details page of the endpoint service, click the Service Resources tab, and then click Add Service Resource.
- In the Add Service Resource dialog box, select the zone to which you want to distribute traffic, add a service resource by using one of the following methods, and then click OK.
- If a service resource is deployed in the zone, you can select the service resource from the drop-down list.
- If no service resource is deployed in the zone, you can click the drop-down list and create a service resource.
For more information about how to create a service resource, see Create an SLB instance that supports PrivateLink.
Note If you want to add service resources in different zones, you can click + Add Resource from Another Zone.
Remove a service resource
Warning After you remove a service resource from the endpoint service, other VPCs will be unable to access the service resource of the endpoint service by using PrivateLink. Exercise caution when you perform this operation.
- Log on to the endpoint service console.
- In the top navigation bar, select the region where the endpoint service is deployed.
- On the Endpoints Service page, click the ID of the endpoint service that you want to manage.
- On the endpoint service details page, click the Service Resources tab, find the service resource that you want to delete, and perform operations based on the following scenarios:
- If a service resource is not allocated to a zone of an endpoint:
- Find the service resource that you want to delete and click Delete in the Actions column.
- In the Remove Resource message, click OK.
- If a service resource is allocated to a zone of an endpoint:
- Find the service resource that you want to delete and click Replace Resource in the Actions column.
- In the Replace Service Resource dialog box, set the following parameters and click OK.
Parameter Description Migration Type Select Smooth Migration or Forcible Migration based on your business requirements. - If you select Smooth Migration, click Release Previous Endpoint Connections in the Actions after the migration is completed. After the previous connections are released, delete the service resource.
- If you select Forcible Migration, you can directly delete the service resource after the migration is completed.
Select Destination Service Resource Select the service resource that is used to replace the current service resource. Select Source Endpoint Connection Select the endpoint connection that is associated with the current service resource. - Find the service resource that you want to delete and click Delete in the Actions column.
- In the Remove Resource message, click OK.
Note If the service resource that you want to delete is allocated to a zone of an endpoint, you must turn off the Enabled switch in the Automatic Allocation column of the service resource on the Service Resources tab.
- If a service resource is not allocated to a zone of an endpoint:
References
- AttachResourceToVpcEndpointService: adds a service resource to an endpoint service.
- DetachResourceFromVpcEndpointService: removes a service resource from an endpoint service.