younifyd
Menu

Simulate an index template (POST /_index_template/_simulate)

Simulate an index template

POST/_index_template/_simulate

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Simulate an index template (POST /_index_template/_simulate) action (under indices).
  3. Fill in the fields below, then reference the result from later steps as {{simulateAnIndexTemplatePostIndexTemplateSimulate.response.data}}.

Request

Query parameters

createboolean

If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation.

causestring

User defined reason for dry-run creating the new template for simulation purposes

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 {{simulateAnIndexTemplatePostIndexTemplateSimulate.response.data.<field>}}.

overlappingarray<object>
nameanyrequired
index_patternsarray<string>required
templateany
json
{
  "template": null,
  "overlapping": [
    {
      "name": null,
      "index_patterns": [
        "string"
      ]
    }
  ]
}

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

Simulate an index template (POST /_index_template/_simulate) — Elasticsearch — Documentation