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

VPC環境で利用できます。

Cloud DB for PostgreSQLインスタンスの DB Userを削除します。

構文

deleteCloudPostgresqlUserList構文は次の通りです。

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

オプション

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

必須オプション

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

オプション タイプ 必須の有無 説明
--cloudPostgresqlInstanceNo String Required Cloud DB for PostgreSQLインスタンス番号
--cloudPostgresqlUserList List Required 削除対象の DB Userリスト
  • 各ユーザーは、二重引用符の中に{フィールド=‘値’}のペアで入力
  • DB Userは一度に最大10個まで削除可能

共通オプション

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

DB Userの削除リクエストが成功すると、入力したユーザーが Cloud DB for PostgreSQLインスタンスから削除されます。

コマンド

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

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

出力

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

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