You can call this operation to reset the privileges of a privileged account for a specified Apsara PolarDB cluster.

Note Only PolarDB for MySQL databases support this operation.


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

Name Type Required Example Description
Action String No ResetAccount

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

AccountName String Yes testacc

The name of the account that you want to manage.

Note You can reset only the privileges of a privileged account.
AccountPassword String Yes Pw123456

The password of the database account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
  • The value must be 8 to 32 characters in length.
  • Special characters include exclamation points (!), at signs (@), number signs (#), dollar signs ($), percent signs (%), carets (^), ampersands (&), asterisks (*), parentheses (()), underscores (_), plus signs (+), hyphens (-), and equal signs (=)..
DBClusterId String Yes pc-xxxxxxxxxxxxxxxx

The ID of the Apsara PolarDB cluster that you want to manage.

Response parameters

Name Type Example Description
RequestId String 2FED790E-FB61-4721-8C1C-07C627FA5A19

The ID of the request.


Sample requests

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

Sample success responses

XML format


JSON format

   "RequestId": "2FED790E-FB61-4721-8C1C-07C627FA5A19"

Error codes

For a list of error codes, visit the API Error Center.