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-id string required
The saved object reference to change.
--to-id string required
New saved object reference value to replace the old value.
--delete
Deletes referenced saved object if all references are removed.
--for-id string

Limit the affected saved objects to one or more by identifier.

Repeatable: pass --for-id multiple times to supply more than one value

--for-type string
Limit the affected saved objects by type.
--from-type string
Specify the type of the saved object reference to alter. The default value is index-pattern for data views.
--input-file string
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