Copy agent policy by ID
- Base URL
-
https://{kibana_url}
- POST /api/fleet/agent_policies/{agentPolicyId}/copy
- POST /s/{space_id}/api/fleet/agent_policies/{agentPolicyId}/copy
Path parameters
-
space_idstringoptional -
An identifier for the space. If
space_idis not provided in the URL, the default space is used. Refer to Spaces for more information.
Responses
OK
-
itemobjectrequired -
advanced_settingsobjectnullable -
Advanced settings stored in the agent policy, e.g. agent_limits_go_max_procs
-
is_protectedboolean -
Indicates whether the agent policy has tamper protection enabled. Default false.
-
keep_monitoring_alivebooleannullable -
When set to true, monitoring will be enabled but logs/metrics collection will be disabled
-
overridesobjectnullable -
Override settings that are defined in the agent policy. Input, output permissions and OpenTelemetry collector settings (receivers, exporters, processors, connectors, extensions, service) cannot be overridden. The override option should be used only in unusual circumstances and not as a routine procedure.
-
package_policiesobject[] -
This field is present only when retrieving a single agent policy, or when retrieving a list of agent policies with the ?full=true parameter