Docs Menu
Docs Home
/ /
MongoDB Command Line Interface
/ / / /

mongocli ops-manager admin backup blockstore list

On this page

  • Syntax
  • Options
  • Output
  • Examples

Note

The admin backup blockstore list command retrieves the list of backup blockstore configurations for your Ops Manager deployment.

mongocli ops-manager|om admin backup blockstore list|ls
[ --limit <items-per-page> ]
[ --page <page-number> ]
[ --output|-o <output-format> ]
[ --profile|-P <profile-name> ]

Note

Use -h or --help to view the command-line help for this command.

Option
Type
Description
Required?
--limit
integer
Number of items to return per page, up to a maximum of 500. Defaults to 100 if not specified.
no
--page
integer
Page number (1-based). Defaults to 1 if not specified.
no
--output, -o
string

Command output format. Valid values are:

  • json for output in JSON format

  • go-template for custom output using the Go template

  • go-template-file for custom output specified using Go template file

If omitted, the command returns output in the default format.

no
--profile, -P
string
Name of the profile where the public and private keys for the project are saved. If omitted, uses the default profile. To learn more about creating a profile, see Configure the MongoDB CLI.
no

The command prints the following fields in the specified format to the terminal if the command succeeds. If the command prints an error, see Troubleshooting for recommended solutions.

ID URI SSL LOAD FACTOR
<id> <hostname>:<port> <boolean> <integer>

The default output is a subset of the fields returned by this command. For the complete list of JSON fields returned by the command, see the Public API reference for your MongoDB service:

The following command retrieves the list of backup blockstore configurations using the default profile, which contains Ops Manager credentials. The output is returned in the default format.

mongocli ops-manager admin backup blockstore list

The previous command prints the following to the terminal.

ID URI SSL LOAD FACTOR
blockstore mongodb://cluster-example.mongodb.net:27017 false 1

The following command retrieves the list of backup blockstore configurations using the default profile, which contains Ops Manager credentials. The output is returned in JSON format.

mongocli ops-manager admin backup blockstore list -o json

The previous command prints the following to the terminal in JSON format.

{
"links": [
{
"rel": "self",
"href": "http://example:8080/api/public/v1.0/admin/backup/snapshot/mongoConfigs?pageNum=1&itemsPerPage=100"
}
],
"results": [
{
"id": "blockstore",
"uri": "mongodb://cluster-example.mongodb.net:27017",
"ssl": false,
"assignmentEnabled": true,
"encryptedCredentials": false,
"loadFactor": 1
}
],
"totalCount": 1
}

Back

Blockstore Configurations