Invokes the CreateProxy operation to enable the data security access feature for an instance.
Operation description
The database type of the instance is MySQL or MariaDB. Supported databases include ApsaraDB RDS for MySQL, PolarDB for MySQL, PolarDB-X, AnalyticDB for MySQL, self-managed MySQL and MariaDB databases, and MySQL and MariaDB databases on third-party clouds.
The database instance is deployed in the China (Hangzhou) or China (Beijing) region.
Your user role is Administrator, DBA, or the owner of the target instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:CreateProxy |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
integer |
Yes |
The instance ID. You can call the ListInstances or GetInstance operation to obtain the value of this parameter. |
183**** |
| Username |
string |
Yes |
The database account. |
username |
| Password |
string |
Yes |
The database password. |
****** |
| Tid |
integer |
No |
The tenant ID. You can call the GetUserActiveTenant operation to obtain the value of this parameter. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
4FFD154E-F57F-5374-B568-D6276F15**** |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| ErrorMessage |
string |
The error message. |
Instance proxy already exists. |
| ErrorCode |
string |
The error code. |
InvalidParameterValid |
| ProxyId |
integer |
The ID of the secure access proxy. |
4** |
Examples
Success response
JSON format
{
"RequestId": "4FFD154E-F57F-5374-B568-D6276F15****",
"Success": true,
"ErrorMessage": "Instance proxy already exists.",
"ErrorCode": "InvalidParameterValid",
"ProxyId": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.