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.

addCloudMysqlUserList

Prev Next

VPC環境で利用できます。

概要

Cloud DB for MySQLインスタンスに DB Userを追加します。

リクエスト

リクエストパラメータ

パラメータ名 必須の有無 タイプ 制限事項 説明
regionCode No String リージョンコード
  • regionCodeはgetRegionListアクションを通じて取得可能
  • デフォルト: getRegionList照会結果の最初のリージョンを選択
cloudMysqlInstanceNo Yes String Cloud DB for MySQLインスタンス番号
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.%
    • CIDRを許可: 1.1.1.0/24
cloudMysqlUserList.N.password Yes List<String> 英字、数字、記号の3つの項目をそれぞれ1文字以上必ず含める
  • 特定の記号「` & + " ' / スペース」は使用不可
  • Password Pluginが有効になっている状態では、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 addCloudMysqlUserList --regionCode KR --cloudMysqlInstanceNo ****890 --cloudMysqlUserList "name='testuser', hostIp='%', password='********', authority='DDL'"

レスポンス例

<addCloudMysqlUserListResponse>
    <requestId>d35c01cf-e77a-44a9-a2b9-1fd1f9572750</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
</addCloudMysqlUserListResponse>