Queries the settings of the dedicated proxy for an instance.
Operation Description
Before you call the ModifyDBProxyEndpoint operation, make sure that the ModifyDBProxy operation is called to enable the database proxy feature for the instance.
- The dedicated proxy feature of ApsaraDB RDS for MySQL provides capabilities such as read/write splitting and short-lived connection optimization. For more information, see What are database proxies?
- The database proxy feature of ApsaraDB RDS for PostgreSQL supports read/write splitting. For more information, see What are database proxies?
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
rds:DescribeDBProxy | READ |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBInstanceId | string | Yes | The ID of the instance. You can call the DescribeDBInstances operation to query the ID of the instance. | rm-bp1ja4f56s7us**** |
RegionId | string | No | The region ID of the instance. You can call the DescribeRegions operation to query most recent region list. | cn-hangzhou |
DBProxyEngineType | string | No | An internal parameter. You do not need to specify this parameter. | normal |
ResourceGroupId | string | No | The ID of the resource group. | rg-acfmy***** |
Response parameters
Examples
Sample success responses
JSON
format
{
"DBProxyInstanceLatestMinorVersion": "1.13.12",
"RequestId": "909A69EE-71C8-4417-A0B9-FF085407E1E3",
"DBProxyInstanceCurrentMinorVersion": "1.13.11",
"DBProxyInstanceNum": 1,
"DBProxyInstanceType": "2",
"DBProxyInstanceStatus": "Running",
"DBProxyServiceStatus": "Startup",
"DBProxyInstanceName": "gos787jog2wk0ye1****",
"DBProxyInstanceSize": "4/8",
"DBProxyEngineType": "normal",
"DBProxyConnectStringItems": {
"DBProxyConnectStringItems": [
{
"DBProxyConnectStringNetWorkType": "2",
"DBProxyConnectStringNetType": "InnerString",
"DBProxyVpcInstanceId": "rm-bp145737x5****131161274792****",
"DBProxyEndpointName": "gos787jog2wk0ye1****",
"DBProxyEndpointId": "20****",
"DBProxyConnectStringPort": "3306",
"DBProxyConnectString": "gos787jog2wk0ye1****-rw4rm.rwlb.rds.aliyuncs.com",
"DBProxyVpcId": "vpc-uf6oobt****",
"DBProxyVswitchId": "vsw-uf6l0pic17****"
}
]
},
"DbProxyEndpointItems": {
"DbProxyEndpointItems": [
{
"DbProxyEndpointAliases": "proxy-test",
"DbProxyEndpointName": "gos787jog2wk0ye1****",
"DbProxyEndpointType": "RWSplit",
"DbProxyReadWriteMode": "ReadWrite"
}
]
},
"ResourceGroupId": "rg-acfmy*****",
"DBProxyAVZones": {
"DBProxyAVZones": [
"cn-shanghai-e"
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | RWSplitNetTypeNotExists | Specified rw split net type is not eixsts. | - |
400 | InvalidDBInstanceName | Specified parameter DBInstanceName is not valid. | The value of the DBInstanceName parameter is invalid. Check that the value of this parameter is not null or an empty string. |
403 | IncorrectKindCode | Current custins kindCode does not support this operation. | The operation failed. The operation is not supported for the database engine that is run on the RDS instance. |
403 | IncorrectDBInstanceType | The database instance type does not support the operation. | The operation failed. The operation is not supported for the database engine of the RDS instance. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-03-14 | The error codes of the API operation change.,The response structure of the API operation changes. | |||||||||||||
| ||||||||||||||
2022-06-08 | The error codes of the API operation change.,The input parameters of the API operation change.,The response structure of the API operation changes. | |||||||||||||
|