stack kb alerting-v2 get-alerting-v2-action-policies cli command
Auth required
Idempotent
Scope: global
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
--pagenumber- The page number to return. Defaults to 1.
--per-pagenumber- The number of action policies to return per page. Defaults to 20.
--searchstring- A text string to search across action policy fields.
-
Filter by tags. Accepts a single string or an array.
Repeatable: pass
--tagsmultiple times to supply more than one value --enabledenum-
Filter by enabled status. Accepts the strings true or false.
Values: true, false
--sort-fieldenum-
The field to sort action policies by.
Values: name, created_at, updated_at
--sort-orderenum-
The sort direction.
Values: asc, desc
--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