younifyd
Menu

Simulate an index

Simulate an index

POST/_index_template/_simulate_index/{name}

Use it in a workflow

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

Request

Path parameters

namestringrequired

Name of the index to simulate

Query parameters

createboolean

Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one

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.

Request body

Enter the body as JSON in the step's Body field.

index_patternsanyrequired

Array of wildcard (`*`) expressions used to match the names of data streams and indices during creation.

composed_ofarray<string>required

An ordered list of component template names. Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence.

templateany

Template to be applied. It may optionally include an `aliases`, `mappings`, or `settings` configuration.

versionany

Version number used to manage index templates externally. This number is not automatically generated by Elasticsearch.

prioritynumber

Priority to determine index template precedence when a new data stream or index is created. The index template with the highest priority is chosen. If no priority is specified the template is treated as though it is of priority 0 (lowest priority). This number is not automatically generated by Elasticsearch.

_metaany

Optional user metadata about the index template. May have any contents. This map is not automatically generated by Elasticsearch.

allow_auto_createboolean
data_streamany

If this object is included, the template is used to create data streams and their backing indices. Supports an empty object. Data streams require a matching index template with a `data_stream` object.

deprecatedboolean

Marks this index template as deprecated. When creating or updating a non-deprecated index template that uses deprecated components, Elasticsearch will emit a deprecation warning.

ignore_missing_component_templatesany

A list of component template names that are allowed to be absent.

created_dateany

Date and time when the index template was created. Only returned if the `human` query parameter is `true`.

created_date_millisany

Date and time when the index template was created, in milliseconds since the epoch.

modified_dateany

Date and time when the index template was last modified. Only returned if the `human` query parameter is `true`.

modified_date_millisany

Date and time when the index template was last modified, in milliseconds since the epoch.

json
{
  "index_patterns": null,
  "composed_of": [
    "string"
  ],
  "template": null,
  "version": null,
  "priority": 0,
  "_meta": null,
  "allow_auto_create": false,
  "data_stream": null,
  "deprecated": false,
  "ignore_missing_component_templates": null,
  "created_date": null,
  "created_date_millis": null
}

Response

Returns 200 with an object. Read it in later steps with {{simulateAnIndex.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.