Docs Menu

Docs HomeLaunch & Manage MongoDBMongoDB CLI

mongocli ops-manager maintenanceWindows update

On this page

  • Syntax
  • Arguments
  • Options
  • Inherited Options

Update a maintenance window.

Command Syntax
mongocli ops-manager maintenanceWindows update <ID> [options]
Name
Type
Required
Description
ID
string
true
Maintenance window identifier.
Name
Type
Required
Description
--alertType
strings
false
Alert types to silence during the maintenance window. Valid values include HOST, REPLICA_SET, CLUSTER, AGENT, or BACKUP. Passing this flag replaces preexisting data.
--desc
string
false
Description of the maintenance window.
--endDate
string
false
Timestamp in ISO 8601 date and time format in UTC when the maintenance window ends.
-h, --help
false
help for update
-o, --output
string
false
Output format. Valid values are json, json-path, go-template, or go-template-file. To see the full output, use the -o json option.
--projectId
string
false
Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.
--startDate
string
false
Timestamp in ISO 8601 date and time format in UTC when the maintenance window starts.
Name
Type
Required
Description
-P, --profile
string
false
Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file.
←  mongocli ops-manager maintenanceWindows listmongocli ops-manager metrics →