younifyd
Menu

Get data stream mappings

Get data stream mappings

GET/_data_stream/{name}/_mappings

Use it in a workflow

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

Request

Path parameters

nameoneOfrequired

A comma-separated list of data streams or data stream patterns. Supports wildcards (`*`).

Query parameters

master_timeoutoneOf

The 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.

Response

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

data_streamsarray<object>
namestringrequired

The name of the data stream.

mappingsanyrequired

The settings specific to this data stream

effective_mappingsanyrequired

The settings specific to this data stream merged with the settings from its template. These `effective_settings` are the settings that will be used when a new index is created for this data stream.

json
{
  "data_streams": [
    {
      "name": "string",
      "mappings": null,
      "effective_mappings": null
    }
  ]
}

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

Get data stream mappings — Elasticsearch — Documentation