younifyd
Menu

Get data stream (GET /_data_stream/{name})

Get data stream

GET/_data_stream/{name}

Use it in a workflow

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

Request

Path parameters

nameoneOfrequired

A comma-separated list of data stream names used to limit the request. Wildcard (`*`) expressions are supported. If omitted, all data streams are returned.

Query parameters

prettyboolean

Whether to pretty-format the returned JSON response.

Default false

humanboolean

Whether to return human-readable values for statistics.

Default false

error_traceboolean

Whether to include the stack trace of returned errors.

Default false

sourcestring

The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.

filter_pathoneOf

A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`.

Response

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

data_streamsarray<object>
_metaobject

The custom metadata attached to a resource.

allow_custom_routingboolean

When `true`, the data stream allows custom routing on write request.

generationinteger (int64)required

The current generation number for the data stream. This number acts as a cumulative count of the stream's rollovers, starting at 1.

hiddenboolean

When `true`, the data stream is hidden.

ilm_policystring

The name of a resource or configuration element.

next_generation_managed_bystring

The component managing the data stream or index.

One ofData stream lifecycleIndex Lifecycle ManagementUnmanaged

prefer_ilmboolean

Indicates if ILM should take precedence over DSL in case both are configured to managed this data stream.

indicesarray<object>required5 fields

An array of objects containing information about the data stream's backing indexes. The last item in this array contains information about the stream's current write index.

namestringrequired
replicatedboolean

When `true`, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings.

statusoneOfrequired
systemboolean

When `true`, the data stream is created and managed by an OpenSearch stack component and cannot be modified through normal user interaction.

templatestringrequired

The name of a resource or configuration element.

timestamp_fieldobjectrequired1 fields

The timestamp field configuration for a data stream.

json
{
  "data_streams": [
    {
      "generation": 0,
      "indices": [
        {
          "index_name": "string",
          "index_uuid": "string",
          "ilm_policy": "string",
          "managed_by": "Data stream lifecycle",
          "prefer_ilm": false
        }
      ],
      "name": "string",
      "status": null,
      "template": "string",
      "timestamp_field": {
        "name": "string"
      },
      "_meta": {},
      "allow_custom_routing": false,
      "hidden": false,
      "ilm_policy": "string",
      "next_generation_managed_by": "Data stream lifecycle",
      "prefer_ilm": false
    }
  ]
}

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