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