younifyd
Menu

Get a script or search template

Get a script or search template

GET/_scripts/{id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get a script or search template action (under script).
  3. Fill in the fields below, then reference the result from later steps as {{getAScriptOrSearchTemplate.response.data}}.

Request

Path parameters

idstringrequired

The identifier for the stored script or search template.

Query parameters

master_timeoutoneOf

The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. It can also be set to `-1` to indicate that the request should never timeout.

Response

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

_idany
foundboolean
scriptany
json
{
  "_id": null,
  "found": false,
  "script": null
}

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

Get a script or search template — Elasticsearch — Documentation