Available in VPC
Edit the DB user's information registered in a Cloud DB for MongoDB instance.
Syntax
The changeCloudMongoDbUserList syntax is as follows:
./ncloud vmongodb changeCloudMongoDbUserList \
--cloudMongoDbInstanceNo <instance-no> \
--cloudMongoDbUserList <user-config> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running changeCloudMongoDbUserList.
Required options
The following options are required for changeCloudMongoDbUserList.
| Options | Type | Required | Description |
|---|---|---|---|
--cloudMongoDbInstanceNo |
String | Required | Instance number of Cloud DB for MongoDB |
--cloudMongoDbUserList |
List | Required | List of DB users to be edited
|
Common options
For information about the options common to all vmongodb subcommands, see Cloud DB for MongoDB (VPC) options.
Examples
If the request to edit the DB user is successful, the information for the specified user will be updated.
Command
The command example is as follows:
./ncloud vmongodb changeCloudMongoDbUserList \
--cloudMongoDbInstanceNo 34567890 \
--cloudMongoDbUserList "userName='testuser1', databaseName='testdb1', authority='READ_WRITE'" \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"changeCloudMongoDbUserListResponse": {
"requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"returnCode": "0",
"returnMessage": "success"
}
}