Enables secure access proxy for a database instance.
Operation description
-
The database instance runs the MySQL or MariaDB database engine. Supported instance types include ApsaraDB RDS for MySQL, PolarDB for MySQL, Distributed Relational Database Service (DRDS), AnalyticDB for MySQL, self-managed MySQL or MariaDB databases, and MySQL or MariaDB databases in a third-party cloud.
-
The database instance resides in the China (Hangzhou) or China (Beijing) region.
-
You are a Data Management (DMS) administrator, a database administrator (DBA), or the owner of the database 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 ID of the database instance. Call the ListInstances or GetInstance operation to query the instance ID. |
183**** |
| Username |
string |
Yes |
The username of the database account. |
username |
| Password |
string |
Yes |
The password of the database account. |
****** |
| Tid |
integer |
No |
The ID of the tenant. Call the GetUserActiveTenant operation to query the tenant ID. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
4FFD154E-F57F-5374-B568-D6276F15**** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorMessage |
string |
The error message returned. |
The instance proxy already exists. |
| ErrorCode |
string |
The error code returned. |
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": "The 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.