Loading

stack kb elastic-agent-policies put-fleet-agent-policies-agentpolicyid cli command

Auth required Idempotent Scope: global
elastic stack kb elastic-agent-policies put-fleet-agent-policies-agentpolicyid \
  --agent-policy-id <agent-policy-id> \
  --name <name> \
  --namespace <namespace> \
  [options]
		

Update an agent policy

Behaviour flags:

--dry-run — validate all inputs and exit without performing any action

--agent-policy-id string required
The agentPolicyId parameter
--name string required
--namespace string required
--kb-format string
--advanced-settings string
--agent-features string[]
--agentless string
--[no-]bump-revision
--data-output-id string
--description string
--download-source-id string
--fleet-server-host-id string
--[no-]force
--global-data-tags string[]
User defined data tags that are added to all of the inputs. The values can be strings or numbers.
--[no-]has-agent-version-conditions
--[no-]has-fleet-server
--id string
--inactivity-timeout number
--[no-]is-default
--[no-]is-default-fleet-server
--[no-]is-managed
--[no-]is-protected
--[no-]is-verifier
Indicates this is a short-lived verifier policy used for OTel permission verification.
--[no-]keep-monitoring-alive
When set to true, monitoring will be enabled but logs/metrics collection will be disabled
--monitoring-diagnostics string
--monitoring-enabled string[]
--monitoring-http string
--monitoring-output-id string
--[no-]monitoring-pprof-enabled
--overrides string
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.
--required-versions string[]
--space-ids string[]
--[no-]supports-agentless
Indicates whether the agent policy supports agentless integrations. Deprecated in favor of the Fleet agentless policies API.
--unenroll-timeout number
--input-file string
path to a JSON file to use as command input
--[no-]dry-run
validate all inputs and exit without performing any action (preview changes without applying them)
--[no-]json

output as JSON