All Products
Document Center


Last Updated: Mar 01, 2019


You can call this operation to add a database account based on input parameters.

Request parameters

Name Type Required Description
Action String Yes The operation that you want to perform. Set the value to AddAccount.
RegionID String Yes The ID of the region where you make the request.
AccountName String Yes The name of the database account that you want to create.
Password String Yes The initial password.

The password consists of letters, digits, and special characters, such as acute accents (`), tildes (~), exclamation marks (!), at signs (@), number signs (#), dollar signs ($), percent signs (%), carets (^), ampersand signs (&), asterisks (*), parentheses (()), underscores (_), plus signs (+), en dashes (-), equal signs (=), brackets ([]), backslashes (), vertical bars (|), semicolons (;), single quotation marks (‘), colons (:), commas (,), periods (.), forward slashes (/), angle brackets (<>), and question marks (?) .

EnableKMS Boolean No Indicates whether KMS is enabled for user password management.
Role String Yes Fixed value: user.

Response parameters

Name Type Description
Common response parameters - For more information, see Common parameters.
RequestId String The GUID generated by Alibaba Cloud for the request.
RegionId String The ID of the region where you make the request.

Sample requests

  2. &RegionID=<RegionID>, for example, cn-hangzhou
  3. &AccountName=admin
  4. &Password=xxxx
  5. &Role=user
  6. &<Common request parameters>

Sample responses

XML format

  1. <AddAccountResponse>
  2. <RequestId>3D19F17E-59A2-49B6-A9D8-907E8901F1EC</RequestId>
  3. <RegionId>cn-hangzhou</RegionId>
  4. </AddAccountResponse>

JSON format

  1. {
  2. "RequestId": "3D19F17E-59A2-49B6-A9D8-907E8901F1EC",
  3. "RegionId": "cn-hangzhou"
  4. }