stack kb security-endpoint-management-api endpoint-file-download cli command
Auth required
Idempotent
Scope: global
elastic stack kb security-endpoint-management-api endpoint-file-download \
--action-id <action-id> \
--file-id <file-id> \
[options]
Download a file
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--action-idstringrequired- The ID of the response action that generated the file.
--file-idstringrequired-
The file identifier is constructed in one of two ways:
- For Elastic Defend agents (
agentTypeofendpoint): combine theaction_idandagent_idvalues using a dot (.) separator:{file_id}={action_id}.{agent_id} - For all other agent types: the
file_idis theagent_idfor which the response action was sent to.
- For Elastic Defend agents (
--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