Resets the password of an account for an ApsaraDB for Redis instance.

Note Only ApsaraDB for Redis instances of Redis 4.0 or later are supported.

Debugging

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 demoaccount

The name of the account. You can call the DescribeAccounts operation to obtain the name of the account.

AccountPassword String Yes uWonno_221****

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

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance to which the account belongs.

RegionId String No cn-hangzhou

The region ID of the instance.

Response parameters

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

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<ResetAccountResponse>
      <RequestId>8BE02313-5395-4EBE-BAE7-E90A053F****</RequestId>
</ResetAccountResponse>

JSON format

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

Error codes

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