stack kb elastic-agent-policies get-fleet-agent-policies-agentpolicyid cli command
Auth required
Idempotent
Scope: global
elastic stack kb elastic-agent-policies get-fleet-agent-policies-agentpolicyid \
--agent-policy-id <agent-policy-id> \
[options]
Get an agent policy
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--agent-policy-idstringrequired- The ID of the agent policy
--formatenum-
Format for the response: simplified or legacy
Values: simplified, legacy
--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