stack kb security-attack-discovery-api get-attack-discovery-generations cli command
Auth required
Idempotent
Scope: global
elastic stack kb security-attack-discovery-api get-attack-discovery-generations \
[options]
Get the latest Attack Discovery generations metadata for the current user
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--endstring- End of the time range for filtering generations. Accepts absolute timestamps (ISO 8601) or relative date math (e.g. "now", "now-24h").
--sizenumber- The maximum number of generations to retrieve
--scheduled- Whether to filter by scheduled or ad-hoc attack discovery generations. If omitted, both types are returned. Use
trueto return only scheduled generations orfalseto return only ad-hoc (interactive or action-triggered) generations. --startstring- Start of the time range for filtering generations. Accepts absolute timestamps (ISO 8601) or relative date math (e.g. "now-7d").
--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