Download an agent policy
- Base URL
-
https://{kibana_url}
- GET /api/fleet/agent_policies/{agentPolicyId}/download
- GET /s/{space_id}/api/fleet/agent_policies/{agentPolicyId}/download
https://{kibana_url}
Download an agent policy by ID.
[Required authorization] Route required privileges: (fleet-agent-policies-read AND integrations-read) OR fleet-setup.
space_id
string
optional
An identifier for the space. If space_id is not provided in the URL, the default space is used. Refer to Spaces for more information.
Successful response — returns the agent policy as a YAML file download
Response Type: string
Bad Request
https://{kibana_url}