To ensure data security, you can release public endpoints that are no longer needed
in the console.
Precautions
- After a public endpoint is released for an instance or a node, you cannot connect
to the instance or node by using that endpoint.
- After a public endpoint is released, we recommend that you delete the corresponding
public IP addresses from the whitelist to ensure data security. For more information,
see Configure a whitelist.
Procedure
- Log on to the ApsaraDB for MongoDB console.
- In the upper-left corner of the page, select the resource group and the region of
the target instance.
- In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances.
- Find the target instance and click its ID.
- In the left-side navigation pane, click Database Connections.
- Perform the corresponding operations based on the instance category.
- Standalone or replica set instances
Note After the public endpoint of a replica set instance is released, the public endpoints
of the primary and secondary nodes are released.
- In the Public Connections section, click Release Public Connection String.

- In the Release Public Connection String message, click OK.
- Sharded cluster instances
Note
- You can release one or more public endpoints of the mongos, shard, and Configserver
nodes for a sharded cluster instance. The nodes whose endpoints are not released can
still be connected. For more information about the node types of sharded cluster instances,
see Architecture of sharded cluster instances.
- After the public endpoint of a shard or Configserver node is released, the public
endpoints of the primary and secondary nodes are released.
- In the Public Connections section, click Release in the Actions column corresponding to the node whose endpoint you want to release.

Node type |
Description |
mongos |
The mongos node. |
db |
The shard node. |
cs |
The Configserver node. |
- In the Release Public Connection String message, click OK.
- Optional:If you want to release the public endpoints of multiple nodes in a sharded cluster
instance, repeat the preceding steps.
Note To release the public endpoint of another node in the instance, you must wait until
the state of the instance becomes Running.
- Optional:After the public endpoint of an instance or a node is released, remove the corresponding
public IP addresses from the whitelist to ensure data security. For more information,
see Configure a whitelist or an ECS security group for an ApsaraDB for MongoDB instance.