ApsaraDB for MongoDB automatically releases the internal endpoints on the classic network of an instance after the endpoints expire. You can change the retention period of the endpoints for the instance before they expire.
Prerequisites
The instance is in hybrid network access mode. For more information, see Configure a hybrid access solution to switch the network type of an instance from classic network to VPC.
Procedure
Go to the Replica Set Instances or Sharded Cluster Instances page. In the top navigation bar, select the region in which the instance resides and the resource group to which the instance belongs. Then, find the instance and click the ID of the instance.
In the left-side navigation pane of the instance details page, click Database Connections.
In the Retained Classic Network Endpoint section, click Modify Expiration Time.
In the Modify Expiration Time panel, specify the retention period of internal endpoints on the classic network of the instance.
NoteYou can set the retention period to 14, 30, 60, or 120 days.
You can also click Release to release the classic network.
Click OK.