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-idstringrequired- The ID of the agent policy
--namestringrequired--formatenum-
Format for the response: simplified or legacy
Values: simplified, legacy
--descriptionstring--input-filestring- 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