younifyd
Menu

Get index templates (GET /_index_template/{name})

Get index templates

GET/_index_template/{name}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get index templates (GET /_index_template/{name}) action (under indices).
  3. Fill in the fields below, then reference the result from later steps as {{getIndexTemplatesGetIndexTemplateName.response.data}}.

Request

Path parameters

namestringrequired

Name of index template to retrieve. Wildcard (*) expressions are supported.

Query parameters

localboolean

If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.

flat_settingsboolean

If true, returns settings in flat format.

master_timeoutoneOf

Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

include_defaultsboolean

If true, returns all relevant default configurations for the index template.

Response

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

index_templatesarray<object>
nameanyrequired
index_templateanyrequired
json
{
  "index_templates": [
    {
      "name": null,
      "index_template": null
    }
  ]
}

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

Get index templates (GET /_index_template/{name}) — Elasticsearch — Documentation