stack kb data-views preview-swap-data-views-default cli command
Auth required
elastic stack kb data-views preview-swap-data-views-default \
--from-id <from-id> \
--to-id <to-id> \
[options]
Preview swap references
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--from-idstringrequired- The saved object reference to change.
--to-idstringrequired- New saved object reference value to replace the old value.
--delete- Deletes referenced saved object if all references are removed.
--for-idstring-
Limit the affected saved objects to one or more by identifier.
Repeatable: pass
--for-idmultiple times to supply more than one value --for-typestring- Limit the affected saved objects by type.
--from-typestring- Specify the type of the saved object reference to alter. The default value is
index-patternfor data views. --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)
--json-
output as JSON