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.

deleteCloudMongoDbUserList

Prev Next

Available in VPC

Delete a DB user to be added to a Cloud DB for MongoDB instance.

Syntax

The deleteCloudMongoDbUserList syntax is as follows:

./ncloud vmongodb deleteCloudMongoDbUserList \
    --cloudMongoDbInstanceNo <instance-no> \
    --cloudMongoDbUserList <user-config> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running deleteCloudMongoDbUserList.

Required options

The following options are required for deleteCloudMongoDbUserList.

Options Type Required Description
--cloudMongoDbInstanceNo String Required Instance number of Cloud DB for MongoDB
--cloudMongoDbUserList List Required List of DB users to be deleted
  • For each user, enter {field=‘value’} pairs within quotation marks, separated by commas.
  • Up to 10 can be entered.

Common options

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

Examples

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

Command

The command example is as follows:

./ncloud vmongodb deleteCloudMongoDbUserList \
    --cloudMongoDbInstanceNo 34567890 \
    --cloudMongoDbUserList "userName='testuser2', databaseName='testdb2'" \
    --regionCode KR \
    --output json

Output

The output example is as follows:

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