Type to search.

Download an agent policy

Base URL
https://{kibana_url}
Auth

Download an agent policy by ID.

Required privileges

Privileges fleet-agent-policies-read or fleet-setup

Path parameters

agentPolicyId string required

The ID of the agent policy

Query parameters

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.

Responses

Successful response — returns the agent policy as a YAML file download

application/json

Response Type: string