Modifies the permissions of a database account.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the cluster. | cn-hangzhou |
DBClusterId | string | Yes | The ID of the AnalyticDB for MySQL Data Lakehouse Edition (V3.0) cluster. | amv-bp1k5p066e1a**** |
AccountName | string | Yes | The name of the database account. | account1 |
AccountPrivileges | object [] | Yes | The permissions of the database account. | |
PrivilegeObject | object | No | The objects on which the permission takes effect, including databases, tables, and columns. | |
Database | string | No | The databases on which the database account has permissions. This parameter is required if the PrivilegeType parameter is set to Database, Table, or Column. | tsdb1 |
Table | string | No | The tables on which the database account has permissions. This parameter is required if the PrivilegeType parameter is set to Table or Column. | table1 |
Column | string | No | The columns on which the database account has permissions. This parameter is required if the PrivilegeType parameter is set to Column. | column1 |
Privileges | array | No | The permissions that you want to modify. You can call the | |
string | No | select | ||
PrivilegeType | string | No | The permission level of the database account. You can call the | Global |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "9DD88DE7-824F-1082-AA57-575AFC6517A8"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ACS.Privilege.ModifyFailed | Failed to modify the account privilege. Make sure that bound account have sufficient database privileges. | Failed to modify the database account permissions. Check whether the database account that is associated with the RAM user has sufficient database permissions. |
400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The DBClusterId parameter is invalid. Check the parameter. |
400 | ACS.Account.NotBindDatabaseAccount | The account has not been associated with a database account. | - |
400 | ACS.Parameter.Malformed | The following required parameters are not specified: %s | You must specify the required parameters. |
400 | ACS.InvalidParameter.%s | Parameter %s is invalid. | The specified parameter is invalid. |
400 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2024-04-09 | The Error code has changed | see changesets | ||||
| ||||||
2023-04-20 | The Error code has changed | see changesets | ||||
| ||||||
2023-03-24 | The internal configuration of the API is changed, but the call is not affected | see changesets | ||||
|