younifyd
Menu

Get an ES|QL view (GET /_query/view/{name})

Get an ES|QL view

GET/_query/view/{name}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get an ES|QL view (GET /_query/view/{name}) action (under esql).
  3. Fill in the fields below, then reference the result from later steps as {{getAnEsQlViewGetQueryViewName.response.data}}.

Request

Path parameters

namestringrequired

The comma-separated view names to retrieve.

Response

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

viewsarray<object>
namestringrequired

The name of the ES|QL view

querystringrequired

The ES|QL query

json
{
  "views": [
    {
      "name": "string",
      "query": "string"
    }
  ]
}

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