﻿---
title: stack kb security-exceptions-api find-exception-lists cli command
description: Get exception lists 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-exceptions-api/find-exception-lists
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

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

```bash
elastic stack kb security-exceptions-api find-exception-lists [options]
```

Get exception lists
**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. Uses the `so type.field name:field` value syntax, where `so type` can be: - `exception-list`: Specify a space-aware exception list.
    - `exception-list-agnostic`: Specify an exception list that is shared across spaces.
  </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="--page number">
    The page number to return
  </definition>
  <definition term="--per-page number">
    The number of exception lists 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>