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.

getCloudPostgresqlUserList

Prev Next

VPC環境で利用できます。

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

構文

getCloudPostgresqlUserList構文は次の通りです。

./ncloud vpostgresql getCloudPostgresqlUserList \
    --cloudPostgresqlInstanceNo <instance-no> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

オプション

getCloudPostgresqlUserListの実行時に指定できるオプションについて説明します。

必須オプション

getCloudPostgresqlUserListの必須オプションです。

オプション タイプ 必須の有無 説明
--cloudPostgresqlInstanceNo String Required Cloud DB for PostgreSQLインスタンス番号

共通オプション

vpostgresqlコマンドで共通して使用するオプションについては、Cloud DB for PostgreSQL (VPC)のオプションを参照してください。

DB Userリストの照会リクエストが成功すると、各ユーザーのアカウント情報が返されます。

コマンド

コマンドの例は次の通りです。

./ncloud vpostgresql getCloudPostgresqlUserList \
    --cloudPostgresqlInstanceNo 34567890 \
    --regionCode KR \
    --output json

出力

出力の例は次の通りです。

{
  "getCloudPostgresqlUserListResponse": {
    "totalRows": 2,
    "cloudPostgresqlUserList": [
      {
        "userName": "testreader",
        "clientCidr": "0.0.0.0/0",
        "isReplicationRole": false
      },
      {
        "userName": "testuser",
        "clientCidr": "0.0.0.0/0",
        "isReplicationRole": false
      }
    ],
    "requestId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
    "returnCode": "0",
    "returnMessage": "success"
  }
}