stack kb discover-sessions upsert-discover-session cli command
Auth required
Idempotent
Scope: global
elastic stack kb discover-sessions upsert-discover-session \
--id <id> \
--tabs <tabs> \
--title <title> \
[options]
Upsert a Discover session
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--idstringrequired- The unique ID of the Discover session to create or replace.
--tabsstring[]required-
Ordered list of tabs in the Discover session. Each tab requires a stable, unique ID, which other saved objects and links can reference.
Repeatable: pass
--tabsmultiple times to supply more than one value --titlestringrequired- The title of the Discover session.
--descriptionstring- A short description of the Discover session.
-
Tag IDs to associate with this Discover session.
Repeatable: pass
--tagsmultiple times to supply more than one value --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