Path parameters
- index
string | array[string] Required 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_alive
string Required Extend the length of time that the point in time persists.
Values are
-1
or0
. - preference
string The node or shard the operation should be performed on. By default, it is random.
- routing
string A custom value that is used to route operations to a specific shard.
- expand_wildcards
string | array[string] 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
. Valid values are:all
,open
,closed
,hidden
,none
.Supported values include:
all
: Match any data stream or index, including hidden ones.open
: Match open, non-hidden indices. Also matches any non-hidden data stream.closed
: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.hidden
: Match hidden data streams and hidden indices. Must be combined withopen
,closed
, orboth
.none
: Wildcard expressions are not accepted.
Values are
all
,open
,closed
,hidden
, ornone
. - allow_partial_search_results
boolean 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. Iftrue
, the point in time will contain all the shards that are available at the time of the request. Maximum number of concurrent shard requests that each sub-search request executes per node.
Body
- index_filter
object An Elasticsearch Query DSL (Domain Specific Language) object that defines a query.
External documentation
curl \
--request POST 'http://api.example.com/{index}/_pit?keep_alive=-1' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"index_filter":{}}'
{
"id": "46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA=",
"_shards": {
"total": 10,
"successful": 10,
"skipped": 0,
"failed": 0
}
}