younifyd
Menu

Get the async SQL search status

Get the async SQL search status

GET/_sql/async/status/{id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get the async SQL search status action (under sql).
  3. Fill in the fields below, then reference the result from later steps as {{getTheAsyncSqlSearchStatus.response.data}}.

Request

Path parameters

idstringrequired

The identifier for the search.

Response

Returns 200 with an object. Read it in later steps with {{getTheAsyncSqlSearchStatus.response.data.<field>}}.

expiration_time_in_millisany

The timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete the search and its results, even if the search is still running.

idstring

The identifier for the search.

is_runningboolean

If `true`, the search is still running. If `false`, the search has finished.

is_partialboolean

If `true`, the response does not contain complete search results. If `is_partial` is `true` and `is_running` is `true`, the search is still running. If `is_partial` is `true` but `is_running` is `false`, the results are partial due to a failure or timeout.

start_time_in_millisany

The timestamp, in milliseconds since the Unix epoch, when the search started. The API returns this property only for running searches.

completion_statusany

The HTTP status code for the search. The API returns this property only for completed searches.

json
{
  "expiration_time_in_millis": null,
  "id": "string",
  "is_running": false,
  "is_partial": false,
  "start_time_in_millis": null,
  "completion_status": null
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Get the async SQL search status — Elasticsearch — Documentation