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.

getCloudMysqlUserList

Prev Next

VPC環境で利用できます。

概要

Cloud DB for MySQLインスタンスの DB Userリストを照会します。

リクエスト

リクエストパラメータ

パラメータ名 必須の有無 タイプ 制限事項 説明
regionCode No String - リージョンコード
regionCodeはgetRegionListアクションを通じて取得可能
デフォルト: getRegionList照会結果の最初のリージョンを選択
cloudMysqlInstanceNo Yes String - Cloud DB for MySQLのインスタンス番号
cloudMysqlInstanceNoはgetCloudMysqlInstanceListアクションを通じて取得可能
pageNo Yes Integer 最小: 0 - ページングされた結果のページ番号
結果値を pageNo、pageSizeを利用してページング処理できる
pageSize Yes Integer 最小: 1 - ページング時に表示する各ページサイズ
結果値を pageNo、pageSizeを利用してページング処理できる
output No String - レスポンス結果の形式タイプ
オプション: xml | json
デフォルト: json

レスポンス

レスポンスデータタイプ

  • CloudMysqlUserListタイプ
CloudMysqlUserList extends CommonResponse
private Integer totalRows;
private List<CloudMysqlUser> cloudMysqlUserList = new ArrayList<>();
CloudMysqlUser
private String userName;
private String hostIp;
private String authority;
private Boolean isSystemTableAccess;

リクエスト例

ncloud vmysql getCloudMysqlUserList --regionCode KR --cloudMysqlInstanceNo ****890 --pageNo 0 --pageSize 10

レスポンス例

<getCloudMysqlUserListResponse>
    <requestId>a117cbf7-c16b-483a-92e2-69c85a7ef928</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <totalRows>2</totalRows>
    <cloudMysqlUserList>
        <cloudMysqlUser>
            <userName>test_read</userName>
            <hostIp>%</hostIp>
            <authority>READ</authority>
            <isSystemTableAccess>true</isSystemTableAccess>
        </cloudMysqlUser>
        <cloudMysqlUser>
            <userName>test_ddl</userName>
            <hostIp>%</hostIp>
            <authority>DDL</authority>
            <isSystemTableAccess>true</isSystemTableAccess>
        </cloudMysqlUser>
    </cloudMysqlUserList>
</getCloudMysqlUserListResponse>