stack kb elastic-agent-policies post-fleet-agent-policies cli command

Auth required
elastic stack kb elastic-agent-policies post-fleet-agent-policies \
  --name <name> \
  --namespace <namespace> \
  [options]
		

Create an agent policy

Behaviour flags:

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

--name string required
--namespace string required
--sys-monitoring
Whether to add the system integration to the new agent policy
--advanced-settings string
--agent-features string[]

Repeatable: pass --agent-features multiple times to supply more than one value

--agentless string
--data-output-id string
--description string
--download-source-id string
--fleet-server-host-id string
--force
--global-data-tags string[]

User defined data tags that are added to all of the inputs. The values can be strings or numbers.

Repeatable: pass --global-data-tags multiple times to supply more than one value

--has-agent-version-conditions
--has-fleet-server
--id string
--inactivity-timeout number
--is-default
--is-default-fleet-server
--is-managed
--is-protected
--is-verifier
--keep-monitoring-alive
When set to true, monitoring will be enabled but logs/metrics collection will be disabled
--min-agent-version string
--monitoring-diagnostics string
--monitoring-enabled string[]

Repeatable: pass --monitoring-enabled multiple times to supply more than one value

--monitoring-http string
--monitoring-output-id string
--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.
--package-agent-version-conditions string[]

Repeatable: pass --package-agent-version-conditions multiple times to supply more than one value

--required-versions string[]

Repeatable: pass --required-versions multiple times to supply more than one value

--space-ids string[]

Repeatable: pass --space-ids multiple times to supply more than one value

--supports-agentless
Indicates whether the agent policy supports agentless integrations. Deprecated in favor of the Fleet managed integrations API.
--unenroll-timeout number
--input-file string
path to a JSON file to use as command input
--dry-run
validate all inputs and exit without performing any action (preview changes without applying them)
--json

output as JSON