﻿---
title: stack kb security-exceptions-api find-exception-list-items cli command
description: Get exception list items Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4097/reference/elastic-cli/cli/stack/kb/security-exceptions-api/find-exception-list-items
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb security-exceptions-api find-exception-list-items cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb security-exceptions-api find-exception-list-items \
  --list-id <list-id> \
  [options]
```

Get exception list items
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--list-id string[] required">
    The `list_id`s of the items to fetch.
    **Repeatable:** pass `--list-id` multiple times to supply more than one value
  </definition>
  <definition term="--filter string[]">
    Filters the returned results according to the value of the specified field,
    using the `<field name>:<field value>` syntax.
    **Repeatable:** pass `--filter` multiple times to supply more than one value
  </definition>
  <definition term="--namespace-type string[]">
    Determines whether the returned containers are Kibana associated with a Kibana space
    or available in all spaces (`agnostic` or `single`)
    **Repeatable:** pass `--namespace-type` multiple times to supply more than one value
  </definition>
  <definition term="--search string">
    Free-text search term applied to exception list item fields (for example a hostname or file path fragment).
  </definition>
  <definition term="--page number">
    The page number to return
  </definition>
  <definition term="--per-page number">
    The number of exception list items to return per page
  </definition>
  <definition term="--sort-field string">
    Determines which field is used to sort the results.
  </definition>
  <definition term="--sort-order enum">
    Determines the sort order, which can be `desc` or `asc`.
    **Values:** desc, asc
  </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>