All Products
Search
Document Center

ApsaraDB for ClickHouse:ModifyAccountAuthority

Last Updated:Mar 01, 2024

Modifies the permissions of an account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
DBClusterIdstringYes

The cluster ID.

cc-bp108z124a8o7****
AccountNamestringYes

The name of the database account.

test
DmlAuthoritystringYes

Specifies whether to grant DML permissions to the database account. Valid values:

  • all
  • readonly,modify
all
DdlAuthoritybooleanYes

Specifies whether to grant DDL permissions to the database account. Valid values:

  • true: grants DDL permissions to the database account.
  • false: does not grant DDL permissions to the database account.
true
AllowDatabasesstringYes

The databases to which you want to grant permissions. Separate databases with commas (,).

db1
TotalDatabasesstringNo

All databases. Separate databases with commas (,).

db1,db2
AllowDictionariesstringYes

The dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

dt1
TotalDictionariesstringNo

All dictionaries. Separate dictionaries with commas (,).

dt1,dt2

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

05321590-BB65-4720-8CB6-8218E041CDD0

Examples

Sample success responses

JSONformat

{
  "RequestId": "05321590-BB65-4720-8CB6-8218E041CDD0"
}

Error codes

HTTP status codeError codeError messageDescription
404InvalidDBCluster.NotFoundThe DBClusterId provided does not exist in our records.The DBClusterId provided does not exist in our records.
500InternalErrorAn error occurred while processing your request.An error occurred while processing your request.
503ServiceUnavailableAn 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 timeSummary of changesOperation
No change history