stack kb maintenance-window post-maintenance-window cli command
Auth required
elastic stack kb maintenance-window post-maintenance-window \
--schedule <schedule> \
--title <title> \
[options]
Create a maintenance window.
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--schedulestringrequired--titlestringrequired- The name of the maintenance window. While this name does not have to be unique, a distinctive name can help you identify a specific maintenance window.
--enabled- Whether the current maintenance window is enabled. Disabled maintenance windows do not suppress notifications.
--scopestring--input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--no-validate- skip input validation and send the request as-is
--output-fieldsstring- comma-separated list of fields to include in output (dot-notation supported)
--output-templatestring- Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json-
output as JSON