ApsaraDB for Redis allows you to modify internal and public endpoints for instances. When changing the ApsaraDB for Redis instance, you can change the endpoint of the new instance to the endpoint of the original instance without the need to modify the application.

Prerequisites

The instance is running properly.

Procedure

  1. Log on to the ApsaraDB for Redis console.
  2. In the upper-left corner of the homepage, select the region where the instance is located.
  3. On the Instance Information page, click the instance ID, or click Manage in the Actions column corresponding to the instance.
  4. On the Instance Information page, find the Connection Information section and click Modify Public Endpoint.
  5. In the Modify Public Endpoint dialog box that appears, set Connection Type and Endpoint. Click OK.Modify the endpoint of an ApsaraDB for Redis instance

    The format of the endpoint is <Prefix>.redis.rds.aliyuncs.com. The default prefix of the internal endpoint is the instance ID. The custom prefix must be 8 to 64 characters in length and can contain lowercase letters and digits. It must start with a lowercase letter.

Related operations

Operation Description
ModifyDBInstanceConnectionString Call this API to modify the endpoints of an ApsaraDB for Redis instance.