﻿---
title: stack kb security-endpoint-management-api endpoint-file-info cli command
description: Get file information Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4120/reference/elastic-cli/cli/stack/kb/security-endpoint-management-api/endpoint-file-info
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb security-endpoint-management-api endpoint-file-info cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb security-endpoint-management-api endpoint-file-info \
  --action-id <action-id> \
  --file-id <file-id> \
  [options]
```

Get file information
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--action-id string required">
    The ID of the response action that generated the file.
  </definition>
  <definition term="--file-id string required">
    The file identifier is constructed in one of two ways:
    - For Elastic Defend agents (`agentType` of `endpoint`): combine the `action_id` and `agent_id` values using a dot (`.`) separator:
      `{file_id}` = `{action_id}.{agent_id}`
    - For all other agent types: the `file_id` is the `agent_id` for which the response action was sent to.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>