Elastic Agent policies

Get an agent policy

Changed on

Spaces method and path for this operation:

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/agent_policies/{agentPolicyId}</span></div>

Refer to Spaces for more information.

Get an agent policy by ID.<br/><br/>[Required authorization] Route required privileges: fleet-agent-policies-read OR fleet-agents-read OR fleet-setup.

get/api/fleet/agent_policies/{agentPolicyId}

Request

  • Base URL
    https://localhost:5601
  • URL
    https://localhost:5601/api/fleet/agent_policies/{agentPolicyId}
  • Auth
    • API key in header Authorization
    • or HTTP basic

Path parameters

agentPolicyIdstring required

The ID of the agent policy

Query parameters

format'simplified' | 'legacy'

Format for the response: simplified or legacy

Response

Successful response

Changes

    • info

      added the optional property / to the response with the status

    • info

      response property item/download_source_id deprecated