You can call the ResetAccountPassword operation to reset the password of an account on an ApsaraDB RDS instance.

Before you call this operation, make sure that the instance must be in the Running state.

Note This operation is not supported for accounts that are created by using SQL statements. This applies to instances that run SQL Server 2017 EE and PostgreSQL.


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 ResetAccountPassword

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

AccountName String Yes test1

The name of the account.

AccountPassword String Yes Test123456

The new password of the account.

  • The password must be 8 to 32 characters in length.
  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
  • Special characters include ! @#$&%^*()_+-=
DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the instance.

Response parameters

Parameter Type Example Description
RequestId String D4D4BE8A-DD46-440A-BFCD-EE31DA81C9DD

The ID of the request.


Sample requests

http(s):// Action=ResetAccountPassword
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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