All Products
Search
Document Center

CreateAccount

Last Updated: May 29, 2020

Creates a privileged database account for an AnalyticDB for MySQL cluster.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateAccount The operation that you want to perform. Set the value to

CreateAccount.

DBClusterId String Yes rm-uf6wjk5xxxxxxxxxx The ID of the cluster for which you create a privileged database account.
AccountName String Yes test_accout The name of the database account.
AccountPassword String Yes Test_accout1 The password of the database account.
  • The password must contain uppercase letters, lowercase letters, digits, and special characters.
  • Special characters supported include (!), (@), (#), ($), (%), (^), (&), (*), (()), (_), (+), (-), and (=).
  • The password must be 8 to 32 characters in length.
AccountDescription String No Test account The description of the database account.
  • The description cannot start with http:// or https://.
  • The description can be up to 256 characters in length.

Response parameters

Parameter Type Description
<Common response parameters> String For more information, see Common parameters.

Examples

Sample requests

  1. http(s)://[Endpoint]/?Action=CreateAccount
  2. &AccountName=testacc
  3. &AccountPassword=Pw123456
  4. &DBClusterId=am-xxxxxxxxxxxxxxx
  5. &<Common request parameters>

XML format

  1. <CreateAccountResponse>
  2. <RequestId>2FED790E-FB61-4721-8C1C-07C627FA5A19</RequestId>
  3. </CreateAccountResponse>

JSON format

  1. {
  2. "RequestId":"2FED790E-FB61-4721-8C1C-07C627FA5A19"
  3. }