调用ModifyDBProxyEndpointAddress接口修改RDS实例独享代理的连接地址。
独享代理提供读写分离、连接池、事务拆分等高级功能,详情请参见独享代理。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyDBProxyEndpointAddress |
系统规定参数,取值:ModifyDBProxyEndpointAddress。 |
DBInstanceId | String | 是 | rm-t4n3axxxxx |
实例ID。 |
DBProxyEndpointId | String | 是 | ta9um4xxxxx |
独享代理连接地址ID。 |
DBProxyConnectStringNetType | String | 否 | Public |
需要修改的独享代理连接地址的网络类型,取值:
默认值:Classic。 |
DBProxyNewConnectString | String | 否 | test123456 |
目标独享代理连接地址的前缀。 说明 至少传入DBProxyNewConnectString和DBProxyNewConnectStringPort其中一个参数。
|
DBProxyNewConnectStringPort | String | 否 | 3307 |
目标独享代理连接地址的端口。 说明 至少传入DBProxyNewConnectString和DBProxyNewConnectStringPort其中一个参数。
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 50F6C32B-DD73-4DA1-ADA2-0EAF2B0FCD8A |
请求ID。 |
示例
请求示例
http(s)://rds.aliyuncs.com/?Action=ModifyDBProxyEndpointAddress
&DBInstanceId=m-t4n3axxxxx
&DBProxyEndpointId=ta9um4xxxxx
&DBProxyNewConnectString=test123456
&<公共请求参数>
正常返回示例
XML
格式
<ModifyDBProxyEndpointAddressResponse>
<RequestId>50F6C32B-DD73-4DA1-ADA2-0EAF2B0FCD8A</RequestId>
</ModifyDBProxyEndpointAddressResponse>
JSON
格式
{
"RequestId": "50F6C32B-DD73-4DA1-ADA2-0EAF2B0FCD8A"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
403 | ParameterLeastAssociate | Must input at least one optional parameter. | 必须至少输入一个可选参数。克隆的时候,克隆时间或者备份集,必须选其一。 |
400 | InvalidConnectionString.Format | Specified connection string is not valid. | 指定的连接字符串无效。 |
400 | InvalidPort.Malformed | Specified port is not valid. | 指定端口无效。 |
400 | InvalidConnectionString.Duplicate | Specified connection string already exists in the Aliyun RDS. | 在阿里云RDS中已经存在指定的连接字符串。 |
404 | InsufficientResourceCapacity | There is insufficient capacity available for the requested instance. | 当前集群的资源不足,请您稍后再试。 |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交