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
--pagenumber- The page number to return. Defaults to 1.
--per-pagenumber- The number of rules to return per page. Defaults to 20.
--filterstring- The filter to apply to the rules.
--sort-fieldenum-
The field to sort rules by.
Values: kind, enabled, name
--sort-orderenum-
The direction to sort rules.
Values: asc, desc
--searchstring- A text string to search across rule fields.
--input-filestring- 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