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

Auth required
elastic stack kb elastic-agent-policies post-fleet-agent-policies-agentpolicyid-copy \
  --agent-policy-id <agent-policy-id> \
  --name <name> \
  [options]
		

Copy an agent policy

Behaviour flags:

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

--agent-policy-id string required
The ID of the agent policy
--name string required
--format enum

Format for the response: simplified or legacy

Values: simplified, legacy

--description string
--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