You can call this operation to modify an endpoint of an ApsaraDB for Redis instance.

For more information about how to perform the corresponding operation in the console, see Modify connection addresses.


Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
DBInstanceId String Yes r-bp1xxxxxxxxxxxxx

The ID of the instance for which you want to modify an endpoint.

CurrentConnectionString String Yes

The current endpoint of the ApsaraDB for Redis instance.

NewConnectionString String Yes standardredis

The prefix of the new endpoint.

The new endpoint of the ApsaraDB for Redis instance is in the <Prefix> format. The prefix of the endpoint must start with a lowercase letter and can contain lowercase letters and digits. The prefix can be 8 to 64 characters in length.

Action String No ModifyDBInstanceConnectionString

The operation that you want to perform. Set this parameter to ModifyDBInstanceConnectionString.

IPType String No Public

The network type of the new endpoint. Value values:

  • Private: internal network.
  • Public: public network.
Port String No 6379

The service port of the instance. If the IPType parameter is set to Public, you can specify a custom port by using this parameter. Valid values: 1024 to 65535.

AccessKeyId String No Lxxxxxxxxxxxxxxw

The AccessKey ID that Alibaba Cloud provides for you to access services.

Response parameters

Parameter Type Example Description
RequestId String 1790D68A-465C-44E3-BC24-9732652961F9

The ID of the request.


Sample request
? Action=ModifyDBInstanceConnectionString
&<Common request parameters>

Sample success response

XML format


JSON format


Error codes

For more information, see Error codes.