Available in VPC
Get the list of VPCs available to use in Cloud DB for MongoDB.
Syntax
The getCloudMongoDbTargetVpcList syntax is as follows:
./ncloud vmongodb getCloudMongoDbTargetVpcList \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getCloudMongoDbTargetVpcList.
Common options
For information about the options common to all vmongodb subcommands, see Cloud DB for MongoDB (VPC) options.
Examples
If the request to retrieve the list of Cloud DB for MongoDB VPCs is successful, the number, name, and IP range information for each VPC are returned.
Command
The command example is as follows:
./ncloud vmongodb getCloudMongoDbTargetVpcList \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getCloudMongoDbTargetVpcListResponse": {
"totalRows": 1,
"targetVpcList": [
{
"vpcNo": "12345678",
"vpcName": "vpc-01",
"ipv4Cidr": "10.0.0.0/16",
"regionCode": "KR",
"createdDate": "2025-04-25T13:31:33+0900"
}
],
"requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"returnCode": "0",
"returnMessage": "success"
}
}