Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getCloudMongoDbBucketList

Prev Next

Available in VPC

Get the list of Object Storage buckets available to use in Cloud DB for MongoDB.

Syntax

The getCloudMongoDbBucketList syntax is as follows:

./ncloud vmongodb getCloudMongoDbBucketList \
    --cloudMongoDbInstanceNo <instance-no> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running getCloudMongoDbBucketList.

Required options

The following options are required for getCloudMongoDbBucketList.

Options Type Required Description
--cloudMongoDbInstanceNo String Required Instance number of Cloud DB for MongoDB

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 Object Storage buckets is successful, the names of the available buckets are returned.

Command

The command example is as follows:

./ncloud vmongodb getCloudMongoDbBucketList \
    --cloudMongoDbInstanceNo 34567890 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "getCloudMongoDbBucketListResponse": {
    "totalRows": 1,
    "cloudMongoDbBucketList": [
      {
        "bucketName": "my-test-bucket"
      }
    ],
    "requestId": "e5f6a7b8-c9d0-1234-efab-567890123456",
    "returnCode": "0",
    "returnMessage": "success"
  }
}