stack kb elastic-agent-policies get-fleet-agent-policies cli command

Auth required Idempotent Scope: global
elastic stack kb elastic-agent-policies get-fleet-agent-policies [options]
		

Get agent policies

Behaviour flags:

--dry-run — validate all inputs and exit without performing any action

--page number
Page number
--per-page number
Number of results per page
--sort-field string
Field to sort results by
--sort-order enum

Sort order, ascending or descending

Values: desc, asc

--show-upgradeable
When true, only show policies with upgradeable agents
--kuery string
A KQL query string to filter results
--no-agent-count
use withAgentCount instead
--with-agent-count
get policies with agent count
--full
get full policies with package policies populated
--format enum

Format for the response: simplified or legacy

Values: simplified, legacy

--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