Modifies the permissions of a database account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:ModifyAccountAuthority |
update |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. You can call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
| DBClusterId |
string |
Yes |
The cluster ID. |
cc-bp108z124a8o7**** |
| AccountName |
string |
Yes |
The database account. |
test |
| DmlAuthority |
string |
Yes |
Specifies the DML permissions to grant 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 multiple databases with commas (,). |
db1 |
| TotalDatabases |
string |
No |
All databases. Separate multiple databases with commas (,). |
db1,db2 |
| AllowDictionaries |
string |
Yes |
The dictionaries to which you want to grant permissions. Separate multiple dictionaries with commas (,). |
dt1 |
| TotalDictionaries |
string |
No |
All dictionaries. Separate multiple dictionaries with commas (,). |
dt1,dt2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
05321590-BB65-4720-8CB6-8218E041CDD0 |
Examples
Success response
JSON format
{
"RequestId": "05321590-BB65-4720-8CB6-8218E041CDD0"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. | An error occurred while processing your request. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The DBClusterId provided does not exist in our records. |
| 503 | ServiceUnavailable | An error occurred while processing your request. | An error occurred while processing your request. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.