You can call this API to reset the password of an account of an ApsaraDB for Redis instance.

The engine version of the ApsaraDB for Redis instance must be Redis 4.0 or above.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes ResetAccountPassword

The operation that you want to perform. Set this parameter to ResetAccountPassword.

AccountName String Yes demoaccount

The name of the account. The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_). The name can be 1 to 16 characters in length.

AccountPassword String Yes uWonno_233

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

InstanceId String Yes r-bp1xxxxxxxxxxxxx

The ID of the instance to which the account belongs.

AccessKeyId String No Lxxxxxxxxxxxxxxw

The AccessKey ID that Alibaba Cloud provides for you to access services.

Response parameters

Parameter Type Example Description
RequestId String 8BE02313-5395-4EBE-BAE7-E90A053F1E07

The ID of the request.

Examples

Sample request


https://r-kvstore.aliyuncs.com/
? Action=ResetAccountPassword
&AccountName=demoaccount
&AccountPassword=uWonno_233
&InstanceId=r-bp1xxxxxxxxxxxxx
&<Common request parameters>

Sample success response

XML format

<ResetAccountResponse>
  <RequestId>8D0C0AFC-E9CD-47A4-8395-5C31BF9B3E76</RequestId>
</ResetAccountResponse>

JSON format

{
	"RequestId":"8BE02313-5395-4EBE-BAE7-E90A053F1E07"
}

Error codes

View error codes.