You can call this operation to reset the password of a database account for an AnalyticDB for MySQL cluster.

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 test_accout

The account of the database.

AccountPassword String Yes Test_accout1

The account and password of the database.

  • The password must contain uppercase letters, lowercase letters, digits, and special characters.
  • Special characters include ! @ # $ % ^ & * () _ + - and =
  • A password must be 8 to 32 characters in length.
DBClusterId String Yes rm-uf6wjk5xxxxxxxxxx

The ID of the cluster.

AccountType String No Normal

Normal: standard account

Super: privileged account

Response parameters

Parameter Type Example Description
DBClusterId String rm-uf6wjk5xxxxxxxxxx

The ID of the cluster.

RequestId String 1AD222E9-E606-4A42-BF6D-8A4442913CEF

The ID of the request.

TaskId Integer 1564657730

The ID of the task.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ResetAccountPassword
&AccountName=test_accout
&AccountPassword=Test_accout1
&DBClusterId=rm-uf6wjk5xxxxxxxxxx
&<Common request parameters>

Sample success responses

XML format

<TaskId>1564657730</TaskId>
<RequestId>1AD222E9-E606-4A42-BF6D-8A4442913CEF</RequestId>
<DBClusterId>rm-uf6wjk5xxxxxxxxxx</DBClusterId>

JSON format

{
    "TaskId": 1564657730,
    "RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
    "DBClusterId": "rm-uf6wjk5xxxxxxxxxx"
}

Error codes

HttpCode Error code Error message Description
404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records. The error message returned because the specified DBClusterId parameter does not exist. Check whether you specify the DBClusterId parameter correctly.

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