younifyd
Menu

Open a point in time

Open a point in time

POST/{index}/_pit

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Open a point in time action (under search).
  3. Fill in the fields below, then reference the result from later steps as {{openAPointInTime.response.data}}.

Request

Path parameters

indexoneOfrequired

A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices

Query parameters

keep_aliveoneOfrequired

Extend the length of time that the point in time persists.

ignore_unavailableboolean

If `false`, the request returns an error if it targets a concrete (non-wildcarded) index, alias, or data stream that is missing, closed, or otherwise unavailable. If `true`, unavailable concrete targets are silently ignored.

preferencestring

The node or shard the operation should be performed on. By default, it is random.

routingoneOf

A custom value that is used to route operations to a specific shard.

expand_wildcardsoneOf

The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. It supports comma-separated values, such as `open,hidden`.

allow_partial_search_resultsboolean

Indicates whether the point in time tolerates unavailable shards or shard failures when initially creating the PIT. If `false`, creating a point in time request when a shard is missing or unavailable will throw an exception. If `true`, the point in time will contain all the shards that are available at the time of the request.

max_concurrent_shard_requestsnumber

Maximum number of concurrent shard requests that each sub-search request executes per node.

Request body

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

index_filterany

Filter indices if the provided query rewrites to `match_none` on every shard.

json
{
  "index_filter": null
}

Response

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

_shardsany

Shards used to create the PIT

idany
_clustersany

Metadata about the clusters involved in the request, returned when the request targets one or more remote clusters.

json
{
  "_shards": null,
  "id": null,
  "_clusters": null
}

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

Open a point in time — Elasticsearch — Documentation