Changes the password of a specific account for an ApsaraDB for Redis instance.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the instance. | r-bp1zxszhcgatnx**** |
AccountName | string | Yes | The username of the account for which you want to change the password. You can call the DescribeAccounts operation to query the username of the account. | testaccount |
OldAccountPassword | string | Yes | The current password of the account. Note
If you forget your password, you can call the ResetAccountPassword operation to reset your password.
| oldPassWd999**** |
NewAccountPassword | string | Yes | The new password to be set for 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 specific special characters. These special characters include | newPassWd888**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "5D622714-AEDD-4609-9167-F5DDD3D1****"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-11 | The request parameters of the API has changed | View Change Details |