调用ModifyDBProxyEndpointAddress接口修改RDS实例数据库代理的连接地址。
数据库代理目前提供一个默认代理地址,代理终端功能绑定该地址。您可以额外新增、修改或删除代理地址。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyDBProxyEndpointAddress |
系统规定参数。取值:ModifyDBProxyEndpointAddress。 |
DBInstanceId | String | 是 | rm-t4n3a**** |
RDS实例ID。可调用DescribeDBInstances接口查询。 |
DBProxyEndpointId | String | 是 | ta9um4**** |
独享代理连接地址ID。可以通过接口DescribeDBProxyEndpoint查询。 |
DBProxyNewConnectString | String | 否 | test123456 |
目标独享代理连接地址的前缀。自定义。 说明 至少传入DBProxyNewConnectString和DBProxyNewConnectStringPort其中一个参数。
|
DBProxyNewConnectStringPort | String | 否 | 3307 |
目标独享代理连接地址的端口。自定义。 说明 至少传入DBProxyNewConnectString和DBProxyNewConnectStringPort其中一个参数。
|
DBProxyConnectStringNetType | String | 否 | Public |
需要修改的独享代理连接地址的网络类型,取值:
MySQL默认值:Classic。 说明 RDS PostgreSQL时,该参数必选,支持Public和VPC。
|
DBProxyEngineType | String | 否 | normal |
内部参数,无需传入值。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 50F6C32B-DD73-4DA1-ADA2-0EAF2B0FCD8A |
请求ID。 |
示例
请求示例
http(s)://rds.aliyuncs.com/?Action=ModifyDBProxyEndpointAddress
&DBInstanceId=rm-t4n3a****
&DBProxyEndpointId=ta9um4****
&DBProxyNewConnectString=test123456
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyDBProxyEndpointAddressResponse>
<RequestId>50F6C32B-DD73-4DA1-ADA2-0EAF2B0FCD8A</RequestId>
</ModifyDBProxyEndpointAddressResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "50F6C32B-DD73-4DA1-ADA2-0EAF2B0FCD8A"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidConnectionString.Format | Specified connection string is not valid. | 实例连接地址的字符串格式不正确。字符串前缀长度为5~40。 |
400 | InvalidPort.Malformed | Specified port is not valid. | 指定的端口无效。 |
400 | InvalidConnectionString.Duplicate | Specified connection string already exists in the Aliyun RDS. | 链接地址名重复,请重新设置连接字符串。 |
400 | InvalidConnectionStringOrPort.Duplicate | Specified connection string or port want to be modified is the same with current net type. | 连接串或端口号重复,请修改。 |
400 | InvalidDBInstanceName | Specified parameter DBInstanceName is not valid. | 指定的实例名称(DBInstanceName)无效,请检查参数值是否为null或空字符串。 |
403 | ParameterLeastAssociate | Must input at least one optional parameter. | 还原时间或备份集不能同时为空,请设置后重试。 |
404 | InvalidConnectionString.NotFound | Specified connection string or net type is not found. | 连接串不存在。请检查连接串是否正确。 |
404 | Endpoint.NotFound | Specified endpoint is not found. | 未找到指定独享代理连接地址的端口。 |
访问错误中心查看更多错误码。