Spaces method and path for this operation:
Refer to Spaces for more information.
Returns Security Timeline notes as saved objects.
Query modes (mutually exclusive branches on the server):
documentIdsis set — Returns notes whoseeventIdmatches the given Elasticsearch document_id(single string or array). Pagination query parameters (page,perPage, etc.) are not applied; the server uses a fixed page size (up to 10000 notes).savedObjectIdsis set — Returns notes linked to the given Timeline saved object id(s). Same fixed cap as above; list-mode query parameters are not applied.Neither
documentIdsnorsavedObjectIds— Lists notes using saved-objects find semantics:page(default 1),perPage(default 10), optionalsearch,sortField,sortOrder,filter,createdByFilter, andassociatedFilter.
Requires the Timeline and Notes read privilege (notes_read).
Query parameters
-
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. -
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. -
Page number for list mode (when
documentIdsandsavedObjectIdsare omitted). Passed as a string; default 1. -
Page size for list mode (when
documentIdsandsavedObjectIdsare omitted). Passed as a string; default 10. -
Search string for saved-objects find (list mode only).
-
Field to sort by for saved-objects find (list mode only).
-
Sort order (
ascordesc) for saved-objects find (list mode only). -
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). -
Kibana user profile UID (UUID). The server resolves the user's display identifiers and returns notes whose
createdBymatches any of them (list mode only). -
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 are
all,document_only,saved_object_only,document_and_saved_object, ororphan.
curl \
--request GET 'https://localhost:5601/api/note' \
--header "Authorization: $API_KEY"
{
"notes": [
{
"eventId": "d3a1d35a3e84a81b2f8f3859e064c224cdee1b4bc",
"note": "Escalated to tier-2 analyst",
"noteId": "709f99c6-89b6-4953-9160-35945c8e174e",
"timelineId": "15c1929b-0af7-42bd-85a8-56e234cc7c4e",
"version": "WzQ2LDFd"
}
],
"totalCount": 1
}