调用DescribeDBInstanceProxyConfiguration接口查看数据库代理设置。
该API查看的为原数据库代理的设置,而不是最新的数据库独享代理。查看数据库独享代理请参见DescribeDBProxy。
调用该接口时,实例必须满足以下条件,否则将操作失败:
- 实例使用的是共享代理。
- 实例已开通读写分离。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDBInstanceProxyConfiguration | 系统规定参数,取值为:DescribeDBInstanceProxyConfiguration。 |
DBInstanceId | String | 是 | rm-uf6wjk5xxxxxxxxxx | 实例ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
AttacksProtectionConfiguration | String | {\"check_interval_seconds\":\"0\",\"max_failed_login_attempts\":\"0\",\"blocking_seconds\":\"0\",\"status\":\"Disable\"} | 是否开启防暴力破解:
返回值格式为JSON字符串,如: {"status":"Disable", "check_interval_seconds": 60, "max_failed_login_attempts": 60, "blocking_seconds": 600} 参数说明及取值范围:
|
PersistentConnectionsConfiguration | String | {\"status\":\"Disable\"} | 是否开启短连接优化:
返回值格式为JSON字符串,如: {"status":"Disable"}。 |
TransparentSwitchConfiguration | String | {\"status\":\"Enable\"} | 是否开启透明切换:
返回值格式为JSON字符串,如: {"status":"Enable"}。 |
RequestId | String | E9DD55F4-1A5F-48CA-BA57-DFB3CA8C4C34 | 请求ID。 |
示例
请求示例
1 2 3 | http(s): //rds.aliyuncs.com/?DBInstanceId=rm-uf6wjk5xxxxxxxxxx &DBInstanceId=rm-uf6wjk5xxxxxxxxxx &<公共请求参数> |
正常返回示例
XML
格式
1 2 3 4 5 6 | <DescribeDBInstanceProxyConfigurationResponse> <PersistentConnectionsConfiguration>{ "status" : "Disable" }</PersistentConnectionsConfiguration> <TransparentSwitchConfiguration>{ "status" : "Enable" }</TransparentSwitchConfiguration> <AttacksProtectionConfiguration>{ "check_interval_seconds" : "0" , "max_failed_login_attempts" : "0" , "blocking_seconds" : "0" , "status" : "Disable" }</AttacksProtectionConfiguration> <RequestId>E9DD55F4-1A5F-48CA-BA57-DFB3CA8C4C34</RequestId> </DescribeDBInstanceProxyConfigurationResponse> |
JSON
格式
1 2 3 4 5 6 | { "PersistentConnectionsConfiguration" : "{\"status\":\"Disable\"}" , "TransparentSwitchConfiguration" : "{\"status\":\"Enable\"}" , "AttacksProtectionConfiguration" : "{\"check_interval_seconds\":\"0\",\"max_failed_login_attempts\":\"0\",\"blocking_seconds\":\"0\",\"status\":\"Disable\"}" , "RequestId" : "E9DD55F4-1A5F-48CA-BA57-DFB3CA8C4C34" } |
错误码
访问错误中心查看更多错误码。