stack kb security-timeline-api get-notes cli command
elastic stack kb security-timeline-api get-notes [options]
Get notes
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--document-idsstring-
Event document
_idvalues to match against each note'seventId. When this parameter is present, the response is all matching notes (up to the server's hard limit), not a paged list usingpage/perPage.Repeatable: pass
--document-idsmultiple times to supply more than one value --saved-object-idsstring-
Timeline
savedObjectIdvalue(s). Returns notes that reference those timelines. When present, list-mode pagination parameters are not used; up to the server's hard limit of notes may be returned.Repeatable: pass
--saved-object-idsmultiple times to supply more than one value --pagestring- Page number for list mode (when
documentIdsandsavedObjectIdsare omitted). Passed as a string; default 1. --per-pagestring- Page size for list mode (when
documentIdsandsavedObjectIdsare omitted). Passed as a string; default 10. --searchstring- Search string for saved-objects find (list mode only).
--sort-fieldstring- Field to sort by for saved-objects find (list mode only).
--sort-orderstring- Sort order (
ascordesc) for saved-objects find (list mode only). --filterstring- Kuery filter string combined with other list-mode filters (for example
createdByFilterorassociatedFilter). Typed as a string for API compatibility; interpreted by the saved-objects layer (list mode only). --created-by-filterstring- Kibana user profile UID (UUID). The server resolves the user's display identifiers and returns notes whose
createdBymatches any of them (list mode only). --associated-filterenum-
Restricts notes by how they relate to a Timeline and/or an event document (list mode only). Some values apply extra filtering after the query. Ignored when
documentIdsorsavedObjectIdsis used.Values: all, document_only, saved_object_only, document_and_saved_object, orphan
--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