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.

deleteCloudPostgresqlUserList

Prev Next

Available in VPC

Delete a DB user of a Cloud DB for PostgreSQL instance.

Syntax

The deleteCloudPostgresqlUserList syntax is as follows:

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

Options

This section describes the options available when running deleteCloudPostgresqlUserList.

Required options

The following options are required for deleteCloudPostgresqlUserList.

Options Type Required Description
--cloudPostgresqlInstanceNo String Required Cloud DB for PostgreSQL instance number
--cloudPostgresqlUserList List Required List of DB users to delete
  • For each user, enter {field=‘value’} pairs within quotation marks.
  • Up to 10 DB users can be deleted at once.

Common options

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

Examples

If the request to delete a DB user is successful, the specified user will be deleted from the Cloud DB for PostgreSQL instance.

Command

The command example is as follows:

./ncloud vpostgresql deleteCloudPostgresqlUserList \
    --cloudPostgresqlInstanceNo 34567890 \
    --cloudPostgresqlUserList "name='testreader'" \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "deleteCloudPostgresqlUserListResponse": {
    "requestId": "d4e5f6a7-b8c9-0123-defa-456789012345",
    "returnCode": "0",
    "returnMessage": "success"
  }
}