You can call this opeation to create a account for an AnalyticDB for MySQL cluster.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateAccount

The operation that you want to perform. Set the value to


AccountName String Yes test_accout

The account of the database.

AccountPassword String Yes Test_accout1

The password of the database.

  • The password must contain uppercase letters, lowercase letters, digits, and special characters.
  • Special characters include ! @ # $ % ^ & * () _ + - and =
  • The password must be 8 to 32 characters in length.
DBClusterId String Yes rm-uf6wjk5xxxxxxxxxx

The ID of the cluster.

AccountDescription String No Test account of the database

The description of the account.

  • The description cannot start with http://or https://.
  • The description can be up to 256 characters in length.
AccountType String No Nomal
  • Normal: standard account
  • Super: privileged account

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.


Sample requests

http(s)://[Endpoint]/? Action=CreateAccount
&<Common request parameters>

Sample success responses

XML format


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.