Navigation

mongocli cloud-manager maintenanceWindow list

The maintenanceWindow list command retrieves the configuration of all Cloud Manager maintenance windows for the specified project. You can also retrieve the configuration of all maintenance windows through the API.

mongocli cloud-manager|cm maintenanceWindow list|ls
[ --output|-o <output-format> ]
[ --profile|-P <profile-name> ]
[ --projectId <project-ID> ]
Option
Type
Description
Required?
--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 the 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
--projectId
string

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

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 PROJECT ID START DATE END DATE
<window-id> <project-id> <start-date> <end-date>

The following example uses the mongocli cm maintenanceWindow list command to retrieve the configurations of all the maintenance windows for the project specified in the profile called myCm.

mongocli cm maintenanceWindow list -P myCm

The above command produces the following output. For more information about these fields, see Output.

ID PROJECT ID START DATE END DATE
5f7cb0eec902201990cb1506 5f1f39ffc902201990f53873 2020-10-23T22:00:00Z 2020-10-24T22:00:00Z
5f7cc9efc902201990cb4c24 5f1f39ffc902201990f53873 2020-11-23T22:00:00Z 2020-11-24T22:00:00Z
Give Feedback