After an endpoint service is created, the Alibaba Cloud account ID of the service owner is automatically added to the whitelist of the endpoint service. The service owner can query the endpoint service and use endpoints to connect to the endpoint service. If you want to allow a virtual private cloud (VPC) that belongs to another Alibaba Cloud account to access the endpoint service, you must add the Alibaba Cloud account ID to the whitelist of the endpoint service.
Prerequisites
An endpoint service is created. For more information, see Create and manage endpoint services.
Add account IDs to the service whitelist
- 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, find the endpoint service that you want to manage and click its instance ID.
On the details page of the endpoint service, click the Service Whitelist tab and click Add to Whitelist.
In the Add to Whitelist dialog box, enter the account IDs that you want to add to the whitelist and click OK.
You can add one or more account IDs to the whitelist at a time. Separate account IDs with commas (,).
Remove account IDs from the service whitelist
You can remove account IDs from the whitelist of an endpoint service. After an account ID is removed from the whitelist of an endpoint service, the user cannot query the endpoint service or use an endpoint to connect to the endpoint service by using the account. 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, find the endpoint service that you want to manage and click the ID of the endpoint service.
On the details page of the endpoint service, click the Service Whitelist tab, find the account that you want to remove, and then click Delete in the Actions column.
In the Remove Account from Whitelist message, click OK.
References
AddUserToVpcEndpointService: adds an account ID to the whitelist of an endpoint service.
RemoveUserFromVpcEndpointService: removes an account ID from the whitelist of an endpoint service.