Call the DescribeDBProxyConfig API to query the database proxy information of a specified MySQL instance.
Synchronous request.
Name | Type | Required | Example | Description |
|---|---|---|---|---|
InstanceId | String | Yes | mysql-46609cf2**** | Instance ID. |
Name | Type | Example | Description |
|---|---|---|---|
BinlogDump | Boolean | true | Whether binlog capability is supported. Valid values:
tip This parameter is returned only when the database proxy feature of the instance is enabled. |
CheckModifyDBProxyAllowed | Object | See the response example. | Judgment information indicating whether the tip This field is deprecated. |
Allowed | Boolean | true | Whether to allow to turn on or off the database proxy function. Value:
|
Reason | String | Other | When Allowed is false, return the classification of the reasons why the database proxy function is not allowed to be enabled or disabled. |
Message | String | The current instance status is not running and does not support switching the proxy. | When Allowed is false, return the specific reasons why it is not allowed to turn on or off the database proxy function. |
CheckModifyDBProxyAllowedV2 | Object[] | See the response example. | Check result indicating whether the ModifyDBProxyAPI can be executed. |
Allowed | Boolean | false | Whether to allow to turn on or off the database proxy function. Values:
|
CheckItem | String | InstanceConfig | Check items when enabling or disabling the database proxy function.
|
Reason | String | The current instance has enabled the transaction-level connection pool and does not support switching the proxy. | The detailed reasons why the database proxy function is not allowed to be enabled or disabled. |
ConnectionPoolType | String | Transaction | The type of the connection pool. This parameter is returned only when the database proxy is enabled. Valid values:
|
DBProxyStatus | String | Creation | The running status of the proxy instance. Values:
tip This parameter is only returned when the database proxy function of the instance is enabled. |
FeatureStates | Object[] | See the response example. | Feature status. |
FeatureName | String | ProxyBinlogDump | Function Name. |
Enable | Boolean | false | Whether to turn on. Values:
|
Support | Boolean | true | Whether the function is supported. Values:
|
GlobalReadOnly | Boolean | true | Whether global read-only is enabled.
|
InstanceId | String | mysql-46609cf2**** | Instance ID. |
ProxyResourceInfo | Object | See the response example. | Configuration information of the instance's database proxy service. |
MaxProxyCpuNum | Integer | 1024 | The maximum number of cores that the user can configure for the database proxy service. |
MinProxyCpuNum | Integer | 2 | The minimum number of cores that a user can configure for the database proxy service. |
CurrentProxyCpuNum | Integer | 2 | The number of cores of the current instance database proxy service. |
POST /?Action=DescribeDBProxyConfig&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds-mysql.cn-beijing.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, "Message": "当前实例已开启事务级连接池,不支持开关代理", "Reason": "Other" }, "CheckModifyDBProxyAllowedV2": [ { "Allowed": false, "CheckItem": "InstanceConfig", "Reason": "当前实例已开启事务级连接池,不支持开关代理" } ], "ConnectionPoolType": "Transaction", "DBProxyStatus": "Running", "FeatureStates": [ { "Enable": false, "FeatureName": "ProxyBinlogDump", "Support": true } ], "GlobalReadOnly": false, "InstanceId": "mysql-46609cf2****", "ProxyResourceInfo": { "CurrentProxyCpuNum": 6, "MaxProxyCpuNum": 1024, "MinProxyCpuNum": 2 } } }
For more details, refer to Error codes.