getCloudMysqlUserList
    • PDF

    getCloudMysqlUserList

    • PDF

    Article Summary

    VPC環境で利用できます。

    概要

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

    リクエスト

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    regionCodeNoString- リージョンコード
    regionCodeは、getRegionListアクションを通じて取得可能
    Default: getRegionList照会結果の最初のリージョンを選択
    cloudMysqlInstanceNoYesString- Cloud DB for MySQLのインスタンス番号
    cloudMysqlInstanceNoは、getCloudMysqlInstanceListアクションを通じて取得可能
    pageNoYesIntegerMin: 0- ページング結果のページ番号
    結果値を pageNo、pageSizeを利用してページング処理可能
    pageSizeYesIntegerMin: 1- ページング時に表示する各ページのサイズ
    結果値を pageNo、pageSizeを利用してページング処理可能
    outputNoString- レスポンス結果のフォーマットタイプ
    Options : xml | json
    Default : json

    レスポンス

    レスポンスデータのタイプ

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

    リクエスト例

    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>
            </cloudMysqlUser>
            <cloudMysqlUser>
                <userName>test_ddl</userName>
                <hostIp>%</hostIp>
                <authority>DDL</authority>
            </cloudMysqlUser>
        </cloudMysqlUserList>
    </getCloudMysqlUserListResponse>
    

    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.