Resets the permissions of a privileged account for a specified PolarDB cluster.
Note
- Only PolarDB for MySQL clusters support this operation.
- If an issue occurs on the privileged account, for example, permissions are unexpectedly revoked, you can reset permissions.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | ResetAccount | The operation that you want to perform. Set the value to ResetAccount. |
AccountName | String | Yes | testacc | The name of the account. Note You can reset only the permissions of a privileged account. |
AccountPassword | String | Yes | Pw123456 | The password of the account. The password must meet the following requirements:
|
DBClusterId | String | Yes | pc-************** | The ID of the cluster. |
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=ResetAccount
&AccountName=testacc
&AccountPassword=Pw123456
&DBClusterId=pc-**************
&<Common request parameters>
Sample success responses
XML
format
<ResetAccountResponse>
<RequestId>2FED790E-FB61-4721-8C1C-07C627******</RequestId>
</ResetAccountResponse>
JSON
format
{
"RequestId": "2FED790E-FB61-4721-8C1C-07C627******"
}
Error codes
For a list of error codes, visit the API Error Center.