stack kb alerting-v2 get-alerting-v2-rules cli command

Auth required Idempotent Scope: global
elastic stack kb alerting-v2 get-alerting-v2-rules [options]
		

List rules

Behaviour flags:

--dry-run — validate all inputs and exit without performing any action

--page number
The page number to return. Defaults to 1.
--per-page number
The number of rules to return per page. Defaults to 20.
--filter string
The filter to apply to the rules.
--sort-field enum

The field to sort rules by.

Values: kind, enabled, name

--sort-order enum

The direction to sort rules.

Values: asc, desc

A text string to search across rule fields.
--input-file string
path to a JSON file to use as command input
--dry-run
validate all inputs and exit without performing any action (preview changes without applying them)
--json

output as JSON