Modifies the permissions of an account.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
DBClusterId | string | Yes | The cluster ID. | cc-bp108z124a8o7**** |
AccountName | string | Yes | The name of the database account. | test |
DmlAuthority | string | Yes | Specifies whether to grant DML permissions to the database account. Valid values:
| all |
DdlAuthority | boolean | Yes | Specifies whether to grant DDL permissions to the database account. Valid values:
| true |
AllowDatabases | string | Yes | The databases to which you want to grant permissions. Separate databases with commas (,). | db1 |
TotalDatabases | string | No | All databases. Separate databases with commas (,). | db1,db2 |
AllowDictionaries | string | Yes | The dictionaries to which you want to grant permissions. Separate dictionaries with commas (,). | dt1 |
TotalDictionaries | string | No | All dictionaries. Separate dictionaries with commas (,). | dt1,dt2 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "05321590-BB65-4720-8CB6-8218E041CDD0"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The DBClusterId provided does not exist in our records. |
500 | InternalError | An error occurred while processing your request. | An error occurred while processing your request. |
503 | ServiceUnavailable | An error occurred while processing your request. | An error occurred while processing your request. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history