Download an agent policy
- Base URL
-
https://{kibana_url}
Auth
Download an agent policy by ID.
-
Privileges
fleet-agent-policies-read
or
fleet-setup
-
agentPolicyId
string
required
-
The ID of the agent policy
-
download
boolean
-
If true, returns the policy as a downloadable file
-
standalone
boolean
-
If true, returns the policy formatted for standalone agents
-
kubernetes
boolean
-
If true, returns the policy formatted for Kubernetes deployment
-
revision
number
-
If provided, returns the policy at the specified revision. Cannot be used with standalone or kubernetes flags.
Successful response — returns the agent policy as a YAML file download
application/json
-
attributes
object
required
-
attributes
object
required
Thank you for your feedback.