stack kb elastic-agent-policies get-fleet-agent-policies-agentpolicyid-full cli command
Auth required
Idempotent
Scope: global
elastic stack kb elastic-agent-policies get-fleet-agent-policies-agentpolicyid-full \
--agent-policy-id <agent-policy-id> \
[options]
Get a full agent policy
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--agent-policy-idstringrequired- The agentPolicyId parameter
--[no-]download- If true, returns the policy as a downloadable file
--[no-]standalone- If true, returns the policy formatted for standalone agents
--[no-]kubernetes- If true, returns the policy formatted for Kubernetes deployment
--revisionnumber- If provided, returns the policy at the specified revision. Cannot be used with standalone or kubernetes flags.
--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