If an external device no longer needs to access your ApsaraDB for MongoDB instance, promptly remove its IP address from the whitelist to enhance instance security. This topic describes how to remove IP addresses from a whitelist or delete an entire whitelist group.
Background
Properly maintaining your whitelists provides a high level of security for your ApsaraDB for MongoDB instance.
Procedure
Go to the Replica Set Instances or Sharded Cluster Instances page. At the top of the page, select a resource group and region, then click the ID of the target instance.
In the left-side navigation pane of the instance page, click .
Choose one of the following methods based on your requirements.
Remove a specific IP address from a whitelist group
Remove an IP address by using Modify
In the row of the target whitelist group, click Modify in the Actions column.
Click the IPv4 or IPv6 tab based on the IP address format.
NoteIPv6 is available only for MongoDB 4.2 instances.
In the IP Whitelist text box, delete the target IP address.
Click OK.
Remove an IP address by using Add Internal IP Addresses of ECS Instances
In the row of the target whitelist group, click Add Internal IP Addresses of ECS Instances in the Actions column.
In the list box on the right of IP Whitelist, select the IP address to remove.
Click the
arrow to move the IP address to the list box on the left of IP Whitelist.Click OK.
Delete a whitelist group (when all IP addresses in the group are no longer in use)
In the row of the target whitelist group, click Delete Whitelist in the Actions column.
In the Delete Whitelist dialog, click Confirm.