You can call this opeation to create a privileged account for an AnalyticDB for MySQL cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateAccount |
The operation that you want to perform. Set the value to CreateAccount. |
AccountName | String | Yes | test_accout |
The account of the database. |
AccountPassword | String | Yes | Test_accout1 |
The password of the database.
|
DBClusterId | String | Yes | rm-uf6wjk5xxxxxxxxxx |
The ID of the cluster. |
AccountDescription | String | No | Test account of the database |
The description of the account.
|
AccountType | String | No | Nomal |
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DBClusterId | String | am-bp1xxxxxxxx47 |
The ID of the cluster. |
RequestId | String | 2FED790E-FB61-4721-8C1C-07C627FA5A19 |
The ID of the request. |
TaskId | Integer | 1564657730 |
The ID of the task. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=CreateAccount
&AccountName=test_accout
&AccountPassword=Test_accout1
&DBClusterId=rm-uf6wjk5xxxxxxxxxx
&<Common request parameters>
Sample success responses
XML
format
<TaskId>1564657730</TaskId>
<RequestId>2FED790E-FB61-4721-8C1C-07C627FA5A19</RequestId>
<DBClusterId>am-bp1xxxxxxxx47</DBClusterId>
JSON
format
{
"TaskId": 1564657730,
"RequestId": "2FED790E-FB61-4721-8C1C-07C627FA5A19",
"DBClusterId": "am-bp1xxxxxxxx47"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The error message returned because the specified cluster ID does not exist. Check whether you specify the cluster ID value correctly. |
For a list of error codes, visit the API Error Center.