Returns the current status and available results for an async SQL search or stored synchronous SQL search Added in 7.15.0
Path parameters
-
Identifier for the search.
Query parameters
-
delimiter string
Separator for CSV results. The API only supports this parameter for CSV responses.
-
format string
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
Retention period for the search and its results. Defaults to the
keep_alive
period for the original SQL search. -
wait_for_completion_timeout string
Period to wait for complete results. Defaults to no timeout, meaning the request waits for complete search results.
GET /_sql/async/{id}
curl \
-X GET http://api.example.com/_sql/async/{id}
Response examples (200)
{
"id": "string",
"is_running": true,
"is_partial": true,
"columns": [
{
"name": "string",
"type": "string"
}
],
"cursor": "string",
"rows": [
[
{}
]
]
}