younifyd
Menu

Stop async ES|QL query

Stop async ES|QL query

POST/_query/async/{id}/stop

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Stop async ES|QL query action (under esql).
  3. Fill in the fields below, then reference the result from later steps as {{stopAsyncEsQlQuery.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.

Response

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

tookany
is_partialboolean
all_columnsarray<object>
namestringrequired
typestringrequired
columnsarray<object>
namestringrequired
typestringrequired
valuesarray<array<oneOf>>
_clustersany

Cross-cluster search information. Present if `include_ccs_metadata` was `true` in the request and a cross-cluster search was performed.

profileobject

Profiling information. Present if `profile` was `true` in the request. The contents of this field are currently unstable.

json
{
  "columns": [
    {
      "name": "string",
      "type": "string"
    }
  ],
  "values": [
    [
      null
    ]
  ],
  "took": null,
  "is_partial": false,
  "all_columns": [
    {
      "name": "string",
      "type": "string"
    }
  ],
  "_clusters": null,
  "profile": {}
}

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

Stop async ES|QL query — Elasticsearch — Documentation