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

Available in VPC

Get the list of Cloud DB for PostgreSQL instance DB users.

Syntax

The getCloudPostgresqlUserList syntax is as follows:

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

Options

This section describes the options available when running getCloudPostgresqlUserList.

Required options

The following options are required for getCloudPostgresqlUserList.

Options Type Required Description
--cloudPostgresqlInstanceNo String Required Cloud DB for PostgreSQL instance number

Common options

For information about the options common to all vpostgresql subcommands, see Cloud DB for PostgreSQL (VPC) options.

Examples

If the request to retrieve the list of DB users is successful, each user's account information is returned.

Command

The command example is as follows:

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

Output

The output example is as follows:

{
  "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"
  }
}