Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

changeCloudMysqlUserList

Prev Next

VPC環境で利用できます。

概要

Cloud DB for MySQLインスタンスの DB Userを変更します。

リクエスト

リクエストパラメータ

パラメータ名 必須の有無 タイプ 制限事項 説明
regionCode No String - リージョンコード
regionCodeはgetRegionListアクションを通じて取得可能
デフォルト: getRegionList照会結果の最初のリージョンを選択
cloudMysqlInstanceNo Yes String - Cloud DB for MySQLのインスタンス番号
cloudMysqlInstanceNoはgetCloudMysqlInstanceListアクションを通じて取得可能
cloudMysqlUserList.N.name Yes List<String> 英数字、アンダースコア「_」、ハイフン「-」のみ使用可能で、先頭文字は必ず英字にする
最小: 3
最大: 16
- MySQLユーザー ID
変更不可
cloudMysqlUserList.N.hostIp Yes List<String> - MySQLユーザー host
変更不可
例)
すべてのアクセスを許可: %
特定の IPアドレスからのアクセスを許可: 1.1.1.1
IPアドレス帯域からのアクセスを許可: 1.1.1.%
cloudMysqlUserList.N.password No List<String> 英字、数字、記号の3つの項目をそれぞれ1文字以上必ず含める
特定の記号「` & + " ' / スペース」は使用不可
Password Pluginが有効になっている状態では、プラグインで設定したポリシーも満たす必要がある
最小: 8
最大: 20
- MySQLユーザーパスワード
パスワードを変更する場合にのみ入力
cloudMysqlUserList.N.authority Yes List<String> - MySQLユーザー権限
オプション: READ | CRUD | DDL
cloudMysqlUserList.N.isSystemTableAccess No List<Boolean> - システムテーブルにアクセス可能かどうか
オプション: true | false
デフォルト: true
output No String - レスポンス結果の形式タイプ
オプション: xml | json
デフォルト: json

リクエスト例

ncloud vmysql changeCloudMysqlUserList --regionCode KR --cloudMysqlInstanceNo ****890 --cloudMysqlUserList "name='testuser', hostIp='%', password='********', authority='CRUD', isSystemTableAccess=true"

レスポンス例

<changeCloudMysqlUserListResponse>
    <requestId>08bc2188-6a20-4129-9176-f85be77073dc</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
</changeCloudMysqlUserListResponse>