You can call this operation to change the password of a database account for a specified ApsaraDB for PolarDB 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
AccountName String Yes testacc

The name of the account.

DBClusterId String Yes pc-xxxxxxxxxxxxxxxx

The ID of the cluster.

NewAccountPassword String Yes Pw123456

The new password of the account.

AccessKeyId String No key-test

The AccessKey ID provided to you by Alibaba Cloud.

Action String No ModifyAccountPassword

The operation that you want to perform. Set the value to ModifyAccountPassword.

Response parameters

Parameter Type Example Description
RequestId String 2FED790E-FB61-4721-8C1C-07C627FA5A19

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ModifyAccountPassword
&AccountName=testacc
&DBClusterId=pc-xxxxxxxxxxxxxxxx
&NewAccountPassword=Pw123456
&<Common request parameters>

Sample success responses

XML format

<ResetAccountPasswordResponse>  
       <RequestId>2FED790E-FB61-4721-8C1C-07C627FA5A19</RequestId>
</ResetAccountPasswordResponse>

JSON format

{
	"RequestId":"2FED790E-FB61-4721-8C1C-07C627FA5A19"
}

Error codes

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