データベースアカウントを作成し、権限を付与します。
操作説明
この API は、クラスターバージョン 21.8 以前でのみ利用可能です。新しいバージョンでは、高権限アカウントと SQL ステートメントを使用してユーザー権限を変更してください。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
clickhouse:CreateAccountAndAuthority |
create |
*DBCluster
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
リージョン ID。DescribeRegions 操作を呼び出して、最新のリージョンリストを照会できます。 |
cn-hangzhou |
| DBClusterId |
string |
必須 |
クラスター ID。 |
cc-bp1p816075e21**** |
| AccountName |
string |
必須 |
データベースアカウント名。
|
test |
| AccountPassword |
string |
必須 |
データベースアカウントのパスワード。 説明
|
123456Aa |
| AccountDescription |
string |
任意 |
データベースアカウントの説明。
|
ceshi |
| DmlAuthority |
string |
必須 |
データベースアカウントの DML 権限を指定します。有効な値:
|
all |
| DdlAuthority |
boolean |
必須 |
データベースアカウントに DDL 権限を付与するかどうかを指定します。有効な値:
|
true |
| AllowDatabases |
string |
必須 |
アカウントが権限を持つデータベース。複数のデータベース名はコンマ (,) で区切ります。 |
db1 |
| TotalDatabases |
string |
任意 |
クラスター内のすべてのデータベース。複数のデータベース名はコンマ (,) で区切ります。 |
db1,db2 |
| AllowDictionaries |
string |
必須 |
アカウントが権限を持つ辞書。複数の辞書名はコンマ (,) で区切ります。 |
dt1 |
| TotalDictionaries |
string |
任意 |
クラスター内のすべての辞書。複数の辞書名はコンマ (,) で区切ります。 |
dt1,dt2 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
返されるデータ。 |
||
| RequestId |
string |
リクエスト ID。 |
F5178C10-1407-4987-9133-DE4DC9119F75 |
例
成功レスポンス
JSONJSON
{
"RequestId": "F5178C10-1407-4987-9133-DE4DC9119F75"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。