Resetting the instance password

Last Updated: May 27, 2016

Description

Resets the account passwordThe following conditions must be met, or 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 details, refer to the Appendix

Example

  • Request example
  1. https://rds.aliyuncs.com/?Action=ResetAccountPassword
  2. &AccountName=testacc02
  3. &AccountPassword=newpw1234
  4. &DBInstanceId=riauvjz6zajfiq6ba1370329449201
  5. &<Public Request Parameters>
  • Return example

XML format:

  1. <ResetAccountPasswordResponse>
  2. <RequestId>D4D4BE8A-DD46-440A-BFCD-EE31DA81C9DD</RequestId>
  3. </ResetAccountPasswordResponse>

JSON format:

  1. {
  2. "RequestId":"D4D4BE8A-DD46-440A-BFCD-EE31DA81C9DD"
  3. }
Thank you! We've received your feedback.