﻿---
title: stack kb security-endpoint-exceptions-api find-endpoint-list-items cli command
description: Get Elastic Endpoint 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/4118/reference/elastic-cli/cli/stack/kb/security-endpoint-exceptions-api/find-endpoint-list-items
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

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

```bash
elastic stack kb security-endpoint-exceptions-api find-endpoint-list-items \
  [options]
```

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

## Options

<definitions>
  <definition term="--filter string">
    Filters the returned results according to the value of the specified field,
    using the `<field name>:<field value>` syntax.
  </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>