﻿---
title: stack kb alerting-v2 get-alerting-v2-action-policies cli command
description: List action policies Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4116/reference/elastic-cli/cli/stack/kb/alerting-v2/get-alerting-v2-action-policies
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb alerting-v2 get-alerting-v2-action-policies cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb alerting-v2 get-alerting-v2-action-policies [options]
```

List action policies
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--page number">
    The page number to return. Defaults to 1.
  </definition>
  <definition term="--per-page number">
    The number of action policies to return per page. Defaults to 20.
  </definition>
  <definition term="--search string">
    A text string to search across action policy fields.
  </definition>
  <definition term="--tags string[]">
    Filter by tags. Accepts a single string or an array.
    **Repeatable:** pass `--tags` multiple times to supply more than one value
  </definition>
  <definition term="--enabled enum">
    Filter by enabled status. Accepts the strings true or false.
    **Values:** true, false
  </definition>
  <definition term="--sort-field enum">
    The field to sort action policies by.
    **Values:** name, created_at, updated_at
  </definition>
  <definition term="--sort-order enum">
    The sort direction.
    **Values:** asc, desc
  </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>