stack kb fleet-package-policies get-fleet-package-policies cli command
Auth required
Idempotent
Scope: global
elastic stack kb fleet-package-policies get-fleet-package-policies [options]
Get package policies
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--pagenumber- Page number
--per-pagenumber- Number of results per page
--sort-fieldstring- Field to sort results by
--sort-orderenum-
Sort order, ascending or descending
Values: desc, asc
--show-upgradeable- When true, only show policies with available upgrades
--kuerystring- A KQL query string to filter results
--formatenum-
Format for the response: simplified or legacy
Values: simplified, legacy
--with-agent-count- When true, include the agent count per package policy
--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