Get async SQL search results Added in 7.15.0
Get the current status and available results for an async SQL search or stored synchronous SQL search.
If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API.
Path parameters
-
The identifier for the search.
Query parameters
-
delimiter string
The separator for CSV results. The API supports this parameter only for CSV responses.
-
format string
The format for the response. You must specify a format using this parameter or the
Accept
HTTP header. If you specify both, the API uses this parameter. -
keep_alive string
The retention period for the search and its results. It defaults to the
keep_alive
period for the original SQL search. -
wait_for_completion_timeout string
The period to wait for complete results. It defaults to no timeout, meaning the request waits for complete search results.
curl \
--request GET http://api.example.com/_sql/async/{id}
{
"id": "string",
"is_running": true,
"is_partial": true,
"columns": [
{
"name": "string",
"type": "string"
}
],
"cursor": "string",
"rows": [
[
{}
]
]
}