Changes the password of a specified account on a Tair (Redis OSS-compatible) instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:ModifyAccountPassword |
update |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
r-bp1zxszhcgatnx**** |
| AccountName |
string |
Yes |
The username of the account whose password you want to change. Call DescribeAccounts to query account usernames. |
testaccount |
| OldAccountPassword |
string |
Yes |
The current password of the account. Note
If you forget your password, call ResetAccountPassword to reset it. |
oldPassWd999**** |
| NewAccountPassword |
string |
Yes |
The new password for the account. Must be 8 to 32 characters long and contain at least three of the following: uppercase letters, lowercase letters, digits, and special characters ( |
newPassWd888**** |
| SourceBiz |
string |
No |
Internal parameter. Do not specify. |
SDK |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5D622714-AEDD-4609-9167-F5DDD3D1**** |
Examples
Success response
JSON format
{
"RequestId": "5D622714-AEDD-4609-9167-F5DDD3D1****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.