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
Querying a list of Cloud DB for MongoDB DB 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 |
|
| output | No | String | - Format type of the response result Options : xml | json Default : json |
Responses
Response data type
- CloudMongoDbUserList type
| CloudMongoDbUserList extends CommonResponse |
|---|
| private Integer totalRows; |
| private List<CloudMongoDbUser> cloudMongoDbUserList = new ArrayList<>(); |
| CloudMongoDbUser |
|---|
| private String userName; |
| private String databaseName; |
| private String authority; |
Examples
Request examples
ncloud vmongodb getCloudMongoDbUserList --regionCode KR --cloudMongoDbInstanceNo ****890
Response examples
{
"getCloudMongoDbUserListResponse": {
"requestId": "d733e677-ad69-4cbe-8351-711d0e0124bc",
"returnCode": 0,
"returnMessage": "success",
"totalRows": 1,
"cloudMongoDbUserList": [
{
"userName": "testuser",
"databaseName": "testdatabase",
"authority": "READ"
}
]
}
}