stack kb fleet-agentless-policies post-fleet-agentless-policies cli command
Auth required
elastic stack kb fleet-agentless-policies post-fleet-agentless-policies \
--name <name> \
--package <package> \
[options]
Create an agentless policy
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--namestringrequired- Unique name for the policy.
--packagestringrequired--kb-formatstring- The format of the response package policy.
--additional-datastreams-permissionsstring[]- Additional datastream permissions, that will be added to the agent policy.
--cloud-connectorstring--descriptionstring- Policy description.
--[no-]force- Force package policy creation even if the package is not verified, or if the agent policy is managed.
--idstring- Policy unique identifier.
--inputsstring- Package policy inputs. Refer to the integration documentation to know which inputs are available.
--namespacestring- Policy namespace. When not specified, it inherits the agent policy namespace.
--policy-templatestring- The policy template to use for the agentless package policy. If not provided, the default policy template will be used.
--var-group-selectionsstring- Variable group selections. Maps var_group name to the selected option name within that group.
--varsstring- Input/stream level variable. Refer to the integration documentation for more information.
--input-filestring- 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