getCloudPostgresqlUserList
    • PDF

    getCloudPostgresqlUserList

    • PDF

    Article Summary

    VPC環境で利用できます。

    Cloud DB for PostgreSQL DB Userリストを照会します。

    コマンド

    コマンド構文は、次のとおりです。

    ncloud vpostgresql getCloudPostgresqlUserList [regionCode] [cloudPostgresqlInstanceNo] [output]
    

    パラメータ

    パラメータについての説明は、次のとおりです。

    パラメータタイプ要否説明制約事項
    regionCodeStringNリージョンコード
    - regionCodeは、getRegionListアクションを通じて取得
    - default: getRegionList照会結果の最初のリージョンを選択
    -
    cloudPostgresqlInstanceNoStringYCloud DB for PostgreSQLのインスタンス番号
    - cloudPostgresqlInstanceNoは、getCloudPostgresqlInstanceListアクションを通じて取得
    -
    outputStringNレスポンス結果のフォーマットタイプ
    - options: xml | json
    - default: json
    -

    レスポンス

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

    • CloudPostgresqlUserListタイプ
    CloudPostgresqlUserList extends CommonResponse説明
    private Integer totalRows;照会されたリストの総数
    private List<CloudPostgresqlUser> cloudPostgresqlUserList = new ArrayList<>();Cloud DB for PostgreSQL DB Userリスト
    • CloudPostgresqlUserタイプ
    CloudPostgresqlUser説明
    private String userName;DB User ID
    private String clientCidr;Client CIDR
    private Boolean isReplicationRole;Replication Roleの有無

    呼び出しとレスポンス例を説明します。

    呼び出し例

    呼び出し例は、次のとおりです。

    ncloud vpostgresql getCloudPostgresqlUserList --regionCode KR --cloudPostgresqlInstanceNo ****890
    

    レスポンス例

    レスポンス例は、次のとおりです。

    レスポンス結果フォーマットタイプ(output)が jsonのとき

    {
      "getCloudPostgresqlUserListResponse": {
        "requestId": "d733e677-ad69-4cbe-8351-711d0e0124bc",
        "returnCode": 0,
        "returnMessage": "success",
        "totalRows": 1,
        "cloudPostgresqlUserList": [
          {
            "userName": "testuser",
            "clientCidr": "0.0.0.0/0",
            "isReplicationRole": false
          }
        ]
      }
    }
    

    レスポンス結果フォーマットタイプ(output)が xmlの場合

    <getCloudPostgresqlUserListResponse>
      <requestId>d733e677-ad69-4cbe-8351-711d0e0124bc</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <cloudPostgresqlUserList>
        <cloudPostgresqlUser>
          <userName>testuser</userName>
          <clientCidr>0.0.0.0/0</clientCidr>
          <isReplicationRole>false</isReplicationRole>
        </cloudPostgresqlUser>
      </cloudPostgresqlUserList>
    </getCloudPostgresqlUserListResponse>
    

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

    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.