修改云数据库 Tair(兼容 Redis)实例的连接地址和端口。
接口说明
该 API 对应的控制台操作请参见修改连接地址。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
kvstore:ModifyDBInstanceConnectionString |
update |
*DBInstance
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DBInstanceId |
string |
是 |
实例 ID。 |
r-bp1zxszhcgatnx**** |
| NewConnectionString |
string |
否 |
新连接地址的前缀。实例的连接地址格式为: 说明
请求参数 NewConnectionString 和 Port 两者中必须传入一项。 |
standardredis123 |
| CurrentConnectionString |
string |
是 |
实例当前的连接地址。 |
r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com |
| Port |
string |
否 |
实例的服务端口号,取值范围:1~65535。 说明
请求参数 NewConnectionString 和 Port 两者中必须传入一项。 |
6379 |
| IPType |
string |
否 |
地址的网络类型,取值:
|
Public |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
1790D68A-465C-44E3-BC24-9732652961F9 |
示例
正常返回示例
JSON格式
{
"RequestId": "1790D68A-465C-44E3-BC24-9732652961F9"
}
异常返回示例
JSON格式
{
"code": "200",
"data": {
"RequestId": "A7CCD05D-74FE-44DE-A4F0-C3EE58A252BE"
},
"successResponse": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | NewConnectionStringNotSupport | Specified newConnectionString is not supported. | |
| 400 | InvalidIPType.Format | Specified parameter IPType is not supported. | |
| 400 | InvalidConnectionStringOrPort.Duplicate | Specified connection string or port want to be modified is the same with current net type. | 连接串或者端口已存在 |
| 400 | InvalidConnectionString.Format | Specified connection string is not valid. | 连接串非法,请选用新的 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。