This topic describes how to change the network type of an ApsaraDB for Redis instance from classic network to Virtual Private Cloud (VPC) in the console or by calling the relevant API operation. When you change the network type, you can choose to retain the classic network endpoint and specify an expiration date. After the expiration date is reached, the classic network endpoint is automatically deleted.
Prerequisites
Before you change the network type, make sure that the following requirements are met:- The ApsaraDB for Redis instance is deployed in a classic network.
- VPCs and vSwitches are available in the zone where the ApsaraDB for Redis instance is deployed. For more information, see Create a VPC with an IPv4 CIDR block.
Change the network type in the console
- Log on to the ApsaraDB for Redis console.
- Select the region where the ApsaraDB for Redis instance is deployed.
- Click the ID of the ApsaraDB for Redis instance.
- On the Instance Information page, click Switch to VPC.
- In the Switch to VPC panel, perform the following operations:
- You can click Refresh on the Instance Information page to view the classic network and VPC endpoints.
Modify the expiration date of the classic network endpoint in the console
After you retain the classic network endpoint, you can extend the retention period of the classic network endpoint by changing its expiration date in the console.
You can adjust the expiration date before the classic network endpoint expires. The new expiration date takes effect immediately. For example, if the classic network endpoint is about to expire on August 18, 2017 and you extend the expiration date by 14 days on August 15, 2017, the classic network endpoint is released on August 29, 2017.
- Log on to the ApsaraDB for Redis console.
- Select the region where the ApsaraDB for Redis instance is deployed.
- Click the ID of the ApsaraDB for Redis instance.
- In the Connection Information section, find Retained Connection Address of the Classic Network (Host) in the Connection Type column, and then click Change Expiration Date in the Actions column.
- In the Change Expiration Date panel, select a new date and click OK.