Changes the password of a specified account for an ApsaraDB for Redis instance.


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 ModifyAccountPassword

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

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance.

AccountName String Yes testaccount

The account for which you want to change the password.

OldAccountPassword String Yes oldPassWd999****

The current password of the account.

Note If you forget your password, you can call the ResetAccountPassword operation to reset your password.
NewAccountPassword String Yes newPassWd888****

Set a new password for the account. The password must be 8 to 32 characters in length. It can contain at least three of the following characters, including uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ % ^ & * ( ) _ + - =.

RegionId String No cn-hangzhou

The ID of the region where the instance is deployed.

Response parameters

Parameter Type Example Description
RequestId String 5D622714-AEDD-4609-9167-F5DDD3D1****

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

	"RequestId": "5D622714-AEDD-4609-9167-F5DDD3D1****"

Error codes

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