The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Available in VPC
Overview
Edit Cloud DB for MongoDB user information
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 | No | 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 | No | 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 changeCloudMongoDbUserList --regionCode KR --cloudMongoDbInstanceNo ****890 --cloudMongoDbUserList "userName='testuser', databaseName='testdatabase', password='********', authority='READ'"
Response examples
{
"changeCloudMongoDbUserListResponse": {
"requestId": "08bc2188-6a20-4129-9176-f85be77073dc",
"returnCode": 0,
"returnMessage": "success"
}
}