Modifies 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.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyDBInstanceConnectionString |
The operation that you want to perform. Set the value to ModifyDBInstanceConnectionString. |
CurrentConnectionString | String | Yes | r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com |
The current endpoint of the ApsaraDB for Redis instance. |
DBInstanceId | String | Yes | r-bp1zxszhcgatnx**** |
The ID of the instance. |
NewConnectionString | String | Yes | standardredis |
The prefix of the new endpoint. The new endpoint of the ApsaraDB for Redis instance is in the |
IPType | String | No | Public |
The network type of the endpoint. Valid values:
|
Port | String | No | 6379 |
The service port number of the instance. Valid values: 1024 to 65535. |
RegionId | String | No | cn-hangzhou |
The ID of the region where the instance is deployed. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 1790D68A-465C-44E3-BC24-9732652961F9 |
The ID of the request. |
Examples
Sample requests
https://r-kvstore.aliyuncs.com/?Action=ModifyDBInstanceConnectionString
&CurrentConnectionString=r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com
&DBInstanceId=r-bp1zxszhcgatnx****
&NewConnectionString=standardredis
&<Common request parameters>
Sample success responses
XML
format
<ModifyDBInstanceConnectionStringResponse>
<RequestId>1790D68A-465C-44E3-BC24-9732652961F9</RequestId>
</ModifyDBInstanceConnectionStringResponse>
JSON
format
{
"RequestId": "1790D68A-465C-44E3-BC24-9732652961F9"
}
Error codes
For a list of error codes, visit the API Error Center.