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

mongocli cloud-manager backup config list

On this page

  • Syntax
  • Options
  • Output
  • Example

The backup config list command lists all the backup configurations for a project. You can also retrieve the backup configurations for a project using the API.

mongocli cloud-manager|cm backup config list|ls
[ --limit <items-per-page>]
[ --output|-o <output-format> ]
[ --page <page-num> ]
[ --profile|-P <profile-name> ]
[ --projectId <project-ID> ]
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
--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 project ID and the Programmatic API 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
--projectId
string

Unique identifier of the project. If omitted, uses the project ID in the profile or environment variable.

no
--page
integer
Page number (1-based). Defaults to 1 if not specified.
no

If the command succeeds, it returns the following output in the default format. If the command returns errors, see Troubleshooting for recommended solutions.

PROJECT ID CLUSTER ID STATUS STORAGE ENGINE
<project-ID> <cluster-ID> <status> <storage-engine>

The default output contains a subset of the fields returned by this command. For the complete list of JSON fields returned by the command, see the API reference.

The following example uses the mongocli cloud-manager backups config list command to retrieve the backup configurations for the project specified through the default profile.

mongocli cloud-manager backup config list

The previous command returns the following:

PROJECT ID CLUSTER ID STATUS STORAGE ENGINE
5e84b94c003f2d6370004f4e 5faadea78f65437924572d63 STARTED WIRED_TIGER
mongocli cloud-manager backup config list --output json

The previous command returns the following:

{
"links": [
{
"rel": "self",
"href": "https://cloud.mongodb.com/api/public/v1.0/groups/5e84b94c003f2d6370004f4e/backupConfigs?pageNum=1\u0026itemsPerPage=100"
}
],
"results": [
{
"groupId": "5e84b94c003f2d6370004f4e",
"clusterId": "5faadea78f65437924572d63",
"statusName": "STARTED",
"storageEngineName": "WIRED_TIGER",
"authMechanismName": "NONE",
"encryptionEnabled": false,
"sslEnabled": false
}
],
"totalCount": 1
}

Back

List Backup Restore Jobs