younifyd
Menu

Get async ES|QL query results

Get async ES|QL query results

GET/_query/async/{id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get async ES|QL query results action (under esql).
  3. Fill in the fields below, then reference the result from later steps as {{getAsyncEsQlQueryResults.response.data}}.

Request

Path parameters

idstringrequired

The unique identifier of the query. A query ID is provided in the ES|QL async query API response for a query that does not complete in the designated time. A query ID is also provided when the request was submitted with the `keep_on_completion` parameter set to `true`.

Query parameters

drop_null_columnsboolean

Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns.

formatstring

A short version of the Accept header, for example `json` or `yaml`.

One ofcsvjsontsvtxtyamlcborsmilearrow

keep_aliveoneOf

The period for which the query and its results are stored in the cluster. When this period expires, the query and its results are deleted, even if the query is still ongoing.

wait_for_completion_timeoutoneOf

The period to wait for the request to finish. By default, the request waits for complete query results. If the request completes during the period specified in this parameter, complete query results are returned. Otherwise, the response returns an `is_running` value of `true` and no results.

Response

Returns 200 with a any. Read it in later steps with {{getAsyncEsQlQueryResults.response.data.<field>}}.

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

Get async ES|QL query results — Elasticsearch — Documentation