Get a list of alerts with multiple events. - The response is concatenated using AND condition (OR is not supported). - The maximum result set size is 100. - Offset is the zero-based number of alerts from the start of the result set.
Cortex XDR displays in the API response whether a PAN NGFW type alert contains a PCAP triggering packet. Use the Retrieve PCAP Packet API to retrieve a list of alert IDs and their associated PCAP data.
Note: You can send a request to retrieve either all or filtered results.
Required license: Cortex XSIAM Premium or Cortex XSIAM Enterprise or Cortex XSIAM Enterprise Plus
Authorization
String
required
authorization_example
x-xdr-auth-id
String
required
xXdrAuthId_example
request_dataObject
A dictionary containing the API request fields.
An empty dictionary returns all results.
filtersArray
Array of filter fields.
fieldObject (Enum)
Alert field the filter is matching. Filters are based on the following keywords:
- alert_id_list
: List of integers of the Alert ID
- alert_source
: List of strings of the Alert source
- severity
: List of strings of the Alert severity
- ceation_time
: Timestamp of the creation time
- server_creation_time
: Timestamp of when Cortex XDR created the alert
operatorObject (Enum)
Identifies the comparison operator you want to use for this filter. Possible values:
in
- permitted for alert_id
, alert_source
, and severity
- gte
/ lte
- Permitted only for `creation_time'
valueArray integer
Value that the filter must match. The contents of this field differ depending on the alert field that you specified for this filter.
{
"request_data": {
"filters": [
{
"field": "severity",
"operator": "in",
"value": [
"medium",
"high"
]
}
]
}
}
curl -X 'POST'
-H
'Accept: application/json'
-H
'Content-Type: application/json'
-H
'Authorization: authorization_example'
-H
'x-xdr-auth-id: xXdrAuthId_example'
'https://api-yourfqdn/public_api/v2/alerts/get_alerts_multi_events'
-d
''