调用ModifyDBInstanceProxyConfiguration接口设置数据库代理,已下线。
说明 该API已下线。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | ModifyDBInstanceProxyConfiguration | 系统规定参数,取值为:ModifyDBInstanceProxyConfiguration。 |
| DBInstanceId | String | 是 | rm-uf6wjk5xxxxxxxxxx | 实例ID。 |
| ProxyConfigurationKey | String | 是 | TransparentSwitch | 数据库代理的ProxyConfigurationKey,取值:
|
| ProxyConfigurationValue | String | 是 | {"TransparentSwitch":"Enable"} | 数据库代理的功能及状态:
格式为{"功能1":"状态1","功能2":"状态2"...} |
| AccessKeyId | String | 否 | LTAIfCxxxxxxxxxx | 阿里云颁发给用户的访问服务所用的密钥ID。 |
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| RequestId | String | 9705B5D2-C5B6-4526-B779-26D755EC1B8C | 请求ID。 |
示例
请求示例
http(s)://rds.aliyuncs.com/?DBInstanceId=rm-uf6wjk5xxxxxxx
&ProxyConfigurationKey=TransparentSwitch
&ProxyConfigurationValue={"status":"Enable"}
&<公共请求参数>
正常返回示例
XML 格式
<ModifyDBInstanceProxyConfigurationResponse> <RequestId>9705B5D2-C5B6-4526-B779-26D755EC1B8C</RequestId> </ModifyDBInstanceProxyConfigurationResponse>
JSON 格式
{
"RequestId":"9705B5D2-C5B6-4526-B779-26D755EC1B8C"
}
错误码
| HttpCode | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 404 | EngineVersionNotSupported | EngineVersion specified cannot be replicate with the source DB Instance. | 当前引擎版本不支持克隆实例 |
| 404 | EngineNotSupported | Engine specified cannot be supported the operation. | 引擎不支持 |
访问错误中心查看更多错误码。