stack kb security-osquery-api osquery-update-packs cli command
Auth required
Idempotent
Scope: global
elastic stack kb security-osquery-api osquery-update-packs --id <id> [options]
Update a pack
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--idstringrequired- The id parameter
--descriptionstring- The pack description.
--[no-]enabled- Enables the pack.
--namestring- The pack name.
--policy-idsstring[]- A list of agents policy IDs.
--queriesstring- An object of queries.
- An object with shard configuration for policies included in the pack. For each policy, set the shard configuration to a percentage (1–100) of target hosts.
--input-filestring- path to a JSON file to use as command input
--[no-]dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--[no-]json-
output as JSON