All Products
Search
Document Center

Virtual Private Cloud:Change the network type of an ApsaraDB RDS instance

Last Updated:Mar 14, 2024

You can use the console or call the relevant API operation to switch the network type of an ApsaraDB RDS instance from classic to Virtual Private Cloud (VPC). In addition, you can modify the expiration date of the classic network endpoint and retain the classic network endpoint.

Prerequisites

Before you change the network type, make sure that the following conditions are met:

  • The ApsaraDB RDS instance resides in the classic network.

  • Available VPCs and vSwitches exist in the zone in which the ApsaraDB RDS instance resides. For more information, see Create a VPC with an IPv4 CIDR block.

Background information

For more information about how the system seamlessly migrates an ApsaraDB RDS instance from a classic network to a VPC, see Hybrid access solution for smooth migration from classic networks to VPCs.

Note
  • 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. Before the classic network endpoint is deleted, you will receive text messages.

  • If the ApsaraDB RDS instance is a shard of a DRDS instance, PolarDB-X 1.0 (DRDS) will be disconnected from ApsaraDB RDS after the network type is changed. You must perform a manual fix.

Change the network type in the console

  1. Log on to the ApsaraDB RDS console.

  2. In the left-side navigation pane, click Instances.

  3. Select the region where the ApsaraDB RDS instance is deployed.

  4. Click the ID of the instance.

  5. In the left-side navigation pane of the page that appears, click Database Connection.

  6. On the Database Connection page, click Switch to VPC.

  7. In the Switch to VPC dialog box, select the VPC and vSwitch that you want to use.

  8. Select Reserve Original Classic Network Endpoint and set Expiration Time for the classic network endpoint.

    • Seven days before the classic network endpoint expires, the system will send a text message to the mobile number associated with your Alibaba Cloud account each day.

    • After the expiration date of the classic network endpoint is reached, the classic network endpoint is automatically deleted. Then, you can no longer access the ApsaraDB RDS instance through the classic network endpoint. To ensure that your services are not interrupted, set a proper expiration date. After you configure the hybrid access mode, you can change the expiration date.

  9. Click OK.

    The Database Connection page displays Original Classic Network Endpoint. p842.png

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.

During the validity period of the hybrid access solution, you can change the expiration date of the classic network endpoint based on your business requirements. The expiration date is immediately recalculated starting from the day when you make the change. For example, if the classic network endpoint is set to expire on August 18, 2017 and you extend the expiration date by 14 days on August 15, 2017, the endpoint will be deleted on August 29, 2017.

  1. Log on to the ApsaraDB RDS console.

  2. In the left-side navigation pane, click Instances.

  3. Select the region where the ApsaraDB RDS instance is deployed.

  4. Click the ID of the instance.

  5. In the left-side navigation pane of the page that appears, click Database Connection.

  6. On the Database Connection page, click Change Expiration Time.

  7. Set the expiration time and click OK.

Change the network type by calling the relevant API operation

For more information, see Change the network type of an ApsaraDB RDS instance.

Modify the expiration date of the classic network endpoint by calling the relevant API operation

For more information, see Change the expiration time of a classic network endpoint.