Update an agent policy
Update an agent policy by ID.
[Required authorization] Route required privileges: fleet-agent-policies-all.
Body
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Minimum value is
0
. Default value is1209600
. -
When set to true, monitoring will be enabled but logs/metrics collection will be disabled
Default value is
false
. -
Additional properties are NOT allowed.
-
Values are
logs
,metrics
, ortraces
. -
Additional properties are NOT allowed.
-
Minimum length is
1
. -
Minimum length is
1
. -
Override settings that are defined in the agent policy. Input settings cannot be overridden. The override option should be used only in unusual circumstances and not as a routine procedure.
Additional properties are allowed.
-
Indicates whether the agent policy supports agentless integrations.
Default value is
false
. -
Minimum value is
0
.
curl \
--request PUT 'https://localhost:5601/api/fleet/agent_policies/{agentPolicyId}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"advanced_settings":{},"agent_features":[{"enabled":true,"name":"string"}],"agentless":{"cloud_connectors":{"enabled":true,"target_csp":"string"},"resources":{"requests":{"cpu":"string","memory":"string"}}},"bumpRevision":true,"data_output_id":"string","description":"string","download_source_id":"string","fleet_server_host_id":"string","force":true,"global_data_tags":[{"name":"string","value":"string"}],"has_fleet_server":true,"id":"string","inactivity_timeout":1209600,"is_default":true,"is_default_fleet_server":true,"is_managed":true,"is_protected":true,"keep_monitoring_alive":false,"monitoring_diagnostics":{"limit":{"burst":42.0,"interval":"string"},"uploader":{"init_dur":"string","max_dur":"string","max_retries":42.0}},"monitoring_enabled":["logs"],"monitoring_http":{"buffer":{"enabled":false},"enabled":true,"host":"string","port":42.0},"monitoring_output_id":"string","monitoring_pprof_enabled":true,"name":"string","namespace":"string","overrides":{},"required_versions":[{"percentage":42.0,"version":"string"}],"space_ids":["string"],"supports_agentless":false,"unenroll_timeout":42.0}'