调用 DescribeDBProxyConfig 接口查询指定 MySQL 实例的数据库代理信息。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | mysql-46609cf2**** | 实例 ID。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
InstanceId | String | mysql-46609cf2**** | 实例 ID。 |
ConnectionPoolType | String | Transaction | 连接池类型,当开启了数据库代理后,才会返回该参数,取值范围:
|
BinlogDump | Boolean | true | 是否支持 binlog 能力,当开启了数据库代理后,才会返回该参数,取值:
|
GlobalReadOnly | Boolean | true | 是否开启全局只读。
|
DBProxyStatus | String | Creating | 代理实例的运行状态,当开启了数据库代理后,才返回该参数,取值:
|
CheckModifyDBProxyAllowed | Object | {
"Allowed": false,
"Reason": "Other"
} | 是否允许执行 ModifyDBProxy 接口:
|
FeatureStates | Object[] | [
{
"Enable": true,
"FeatureName": "ProxyBinlogDump",
"Support": true
}
] | 功能状态。 |
POST /?Action=DescribeDBProxyConfig&Version=2022-01-01 HTTP/1.1 Accept: application/json Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20211202T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId": "mysql-46609cf2****" }
{ "ResponseMetadata": { "RequestId": "20230809195305F4B9418A25C0D091AECF", "Action": "DescribeDBProxyConfig", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-beijing" }, "Result": { "BinlogDump": false, "CheckModifyDBProxyAllowed": { "Allowed": false, "Reason": "Other" }, "ConnectionPoolType": "Transaction", "DBProxyStatus": "Running", "FeatureStates": [ { "Enable": false, "FeatureName": "ProxyBinlogDump", "Support": true } ], "GlobalReadOnly": false, "InstanceId": "mysql-46609cf2****" } }
更多详情,请参见错误码。