Delete IP address whitelists from an ApsaraDB for MongoDB instance to revoke access for external devices that no longer need to connect.
Prerequisites
Before you begin, ensure that you have:
An ApsaraDB for MongoDB instance (replica set or sharded cluster)
Access to the Replica Set Instances or Sharded Cluster Instances page
Usage notes
Review IP address whitelists regularly and remove entries for devices that no longer need access.
Delete an IP address from a whitelist
Use this procedure to remove a specific IP address from an existing whitelist while keeping the whitelist itself.
Go to the Replica Set Instances or Sharded Cluster Instances page. In the top navigation bar, select the region where the instance resides. Find the instance and click its ID.
In the left-side navigation pane, choose Data Security > Whitelist Settings.
Find the whitelist that contains the IP address, then use one of the following methods in the Actions column:
Manually modify
Click Manually Modify.
In the Manually Modify panel, click the IPv4 or IPv6 tab.
Note: IPv6 is supported only by instances that run MongoDB 4.2.
In the IP Whitelist field, delete the IP address.
Click OK.
Remove via ECS instance list
Click Import ECS Internal IP.
In the Import ECS Internal IP panel, select the IP address in the right-side list of the IP Whitelist field.
Click the
icon to move the address to the left-side list.Click OK.
Delete an entire whitelist
Use this procedure to remove an entire IP address whitelist and all the IP addresses it contains.
Go to the Replica Set Instances or Sharded Cluster Instances page. In the top navigation bar, select the region where the instance resides. Find the instance and click its ID.
In the left-side navigation pane, choose Data Security > Whitelist Settings.
Find the whitelist you want to delete and click Delete Whitelist in the Actions column.
In the Delete Whitelist message, click OK.