Get a full agent policy

Base URL
https://{kibana_url}
Auth

Get a full agent policy by ID.

Required authorization

Privileges fleet-agent-policies-read

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

application/json
item union anyOf required
Any of:

Bad Request

application/json
attributes object required
error string
errorType string
message string required
statusCode number
404

Not Found

application/json
Base URL
https://{kibana_url}