Elastic Agent policies
Create an agent policy
Spaces method and path for this operation:
<div><span class="operation-verb post">post</span> <span class="operation-path">/s/{space_id}/api/fleet/agent_policies</span></div>Refer to Spaces for more information.
Create a new agent policy.<br/><br/>[Required authorization] Route required privileges: fleet-agent-policies-all.
post/api/fleet/agent_policies
Query parameters
sys_monitoringboolean
Whether to add the system integration to the new agent policy
Headers
kbn-xsrfstring required
Example:true
A required header to protect against CSRF attacks
Request body
Response
Successful response