Available in VPC
Overview
Add a Cloud DB for MongoDB User.
Requests
Request parameters
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | - Region code regionCode can be obtained via the getRegionList action Default: selects the first region of the getRegionList query results |
|
cloudMongoDbInstanceNo | Yes | String | - Cloud DB for MongoDB instance number cloudMongoDbInstanceNo can be obtained via the getCloudMongoDbInstanceList action |
|
cloudMongoDbUserList.N.userName | Yes | List<String> | Only alphanumeric characters, underscores (_), and hyphens (-) are allowed, and the first character must be a letter. Min: 4, Max: 16 |
- Cloud DB for MongoDB User's name Up to 10 user IDs can be deleted at once. |
cloudMongoDbUserList.N.databaseName | Yes | List<String> | Only alphanumeric characters, underscores (_), and hyphens (-) are allowed, and the first character must be a letter. Min: 4, Max: 16 |
- Cloud DB for MongoDB Database name |
cloudMongoDbUserList.N.password | Yes | List<String> | Must contain at least one each of (alphanumeric) letter, number, and special character. Min: 8, Max: 20 |
- Cloud DB for MongoDB User password |
cloudMongoDbUserList.N.authority | Yes | List<String> | - Cloud DB for MongoDB User DB authority Options: READ | READ_WRITE |
|
output | No | String | - Format type of the response result Options : xml | json Default : json |
Examples
Request examples
ncloud vmongodb addCloudMongoDbUserList --regionCode KR --cloudMongoDbInstanceNo ****890 --cloudMongoDbUserList "userName='testuser', databaseName='testdatabase', password='********', authority='READ'"
Response examples
{
"addCloudMongoDbUserListResponse": {
"requestId": "d35c01cf-e77a-44a9-a2b9-1fd1f9572750",
"returnCode": 0,
"returnMessage": "success"
}
}