Changes the password of a database account for a specified PolarDB cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | ModifyAccountPassword |
The operation that you want to perform. Set the value to ModifyAccountPassword. |
AccountName | String | Yes | testacc |
The name of the account. |
DBClusterId | String | Yes | pc-************ |
The ID of the PolarDB cluster. |
NewAccountPassword | String | Yes | Pw123456 |
The new password of the account. The new password must meet the following requirements:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 2FED790E-FB61-4721-8C1C-07C627****** |
The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/? Action=ModifyAccountPassword
&AccountName=testacc
&DBClusterId=pc-************
&NewAccountPassword=Pw123456
&<Common request parameters>
Sample success responses
XML
format
<ModifyAccountPasswordResponse>
<RequestId>2FED790E-FB61-4721-8C1C-07C627******</RequestId>
</ModifyAccountPasswordResponse>
JSON
format
{
"RequestId": "2FED790E-FB61-4721-8C1C-07C627******"
}
Error codes
For a list of error codes, visit the API Error Center.