All Products
Search
Document Center

Tair (Redis® OSS-Compatible):ModifyAccountPassword

更新時間:Oct 30, 2024

Changes the password of a specific account for an ApsaraDB for Redis instance.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

r-bp1zxszhcgatnx****
AccountNamestringYes

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
OldAccountPasswordstringYes

The current password of the account.

Note If you forget your password, you can call the ResetAccountPassword operation to reset your password.
oldPassWd999****
NewAccountPasswordstringYes

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

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

5D622714-AEDD-4609-9167-F5DDD3D1****

Examples

Sample success responses

JSONformat

{
  "RequestId": "5D622714-AEDD-4609-9167-F5DDD3D1****"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-11The request parameters of the API has changedView Change Details