Description

Reset the account password. The following conditions must be met, otherwise the operation will fail:

  • The instance status is Running.
  • The instance is not locked.

Request parameters

Name Type Required Description
Action String Yes Required parameter. Value: ResetAccountPassword.
DBInstanceId String Yes Instance ID.
AccountName String Yes Name of an account.
AccountPassword String Yes A new password. It may consist of letters, numbers, or underlines, with a length of 6 to 32 characters.

Return parameters

Name Type Description
<Public Return Parameters> For more information, see Public parameters.

Request example

https://rds.aliyuncs.com/?Action=ResetAccountPassword
&AccountName=testacc02
&AccountPassword=newpw1234
&DBInstanceId=riauvjz6zajfiq6ba1370329449201
&<Public Request Parameters>

Response example

XML format

<ResetAccountPasswordResponse>
         <RequestId>D4D4BE8A-DD46-440A-BFCD-EE31DA81C9DD</RequestId>
</ResetAccountPasswordResponse>

JSON format

{
         "RequestId":"D4D4BE8A-DD46-440A-BFCD-EE31DA81C9DD"
}