Create agent policy
Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agent_policies
Refer to Spaces for more information.
POST
/api/fleet/agent_policies
curl \
--request POST 'https://localhost:5601/api/fleet/agent_policies' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: string" \
--data '{"agent_features":[{"enabled":true,"name":"string"}],"data_output_id":"string","description":"string","download_source_id":"string","fleet_server_host_id":"string","force":true,"global_data_tags":[{}],"id":"string","inactivity_timeout":42,"is_protected":true,"monitoring_enabled":["metrics"],"monitoring_output_id":"string","name":"string","namespace":"string","unenroll_timeout":42}'