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
Refer to Spaces for more information.
Download an agent policy by ID.
Required authorization
- Privileges fleet-agent-policies-read or fleet-setup
Responses
Successful response — returns the agent policy as a YAML file download
Response Type: string
Bad Request