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

Note Only Redis 4.0 and later of ApsaraDB for Redis instances 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. 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_221****

The new password of the account. The password must be 8 to 32 characters in length and 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 that belongs to the account.

RegionId String No cn-hangzhou

The ID of the region where the instance is deployed.

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.