Retrieve results of an executed XQL query API.
Note: This endpoint only works on XQL queries initiated by /public_api/v1/xql/start_xql_query/
.
Maximum result set size is 1000. The API does not support pagination, therefore, you can set values to determine the result size limitation and how to wait for the results. To view response with greater than 1000 results you must call Get XQL Query Results Stream.
For more information on how to run XQL queries, see Running XQL Query APIs.
Required license: Cortex XDR Pro per Endpoint or Cortex XDR Pro per GB
request_dataObjectrequired
query_idString
String representing the unique execution ID generated by the response to Start an XQL Query API. You can also enter the execution ID of a query generated in Cortex XDR and listed in the Query Center table.
pending_flagBoolean
Boolean flag indicating whether the API call should operate in synchronous/blocking mode, or in asynchronous/non-blocking mode. Valid Values: - True (default): The call returns immediately with one of the following options: 1) PENDING status indicating query hasn't yet completed or results are not yet ready to be returned. Need to execute the API call again. 2) SUCCESS/FAIL status - False: The API will block until query completes and results are ready to be returned.
limitInteger
Integer representing the maximum number of results to return.
If the 'limit' is not specified or if 'limit' is greater than 1000 and the query yields more than 1000 valid results, a stream id
will be generated for use in the Get XQL Query Results Stream API.
In the context of multi-tenant investigations, when you specify the parameter value (x),
it will return x results across all tenants combined, rather than x results for each individual tenant.
For example, if there are y tenants participating in the investigation, the maximum number of results returned can be xy (up to the limit of 1,000,000).
formatObject (Enum)
The type of response output.
{
"request_data": {
"query_id": "061880b4867446_4356_inv",
"pending_flag": true,
"limit": 100,
"format": "json"
}
}
curl -X 'POST'
-H
'Accept: application/json'
-H
'Content-Type: application/json'
'https://api-yourfqdn/public_api/v1/xql/get_query_results'
-d
''