Mount a snapshot

Auth

Mount a snapshot as a searchable snapshot index. Do not use this API for snapshots managed by index lifecycle management (ILM). Manually mounting ILM-managed snapshots can interfere with ILM processes.

Required authorization

Index privileges manage
Cluster privileges manage

Path parameters

repository string required

The name of the repository containing the snapshot of the index to mount.

snapshot string required

The name of the snapshot of the index to mount.

Query parameters

master_timeout string · default: 30s

The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to -1.

wait_for_completion boolean · default: false

If true, the request blocks until the operation is complete.

storage string · default: full_copy

The mount option for the searchable snapshot index.

Request body

index string required

The name of the index contained in the snapshot whose data is to be mounted. If no renamed_index is specified, this name will also be used to create the new index.

renamed_index string

The name of the index that will be created.

index_settings map string to object

The settings that should be added to the index when it is mounted.

ignore_index_settings string[]

The names of settings that should be removed from the index when it is mounted.

Response

application/json
snapshot object required
snapshot string required
indices union oneOf required
One of: string[] or string
shards object required
failed number required

The number of shards the operation or search attempted to run on but failed.

successful number required

The number of shards the operation or search succeeded on.

total number required

The number of shards the operation or search will run on overall.

failures object[]
index string
node string
reason object required
type string required

The type of error

reason union string nullable

A human-readable explanation of the error, in English.

One of: string
stack_trace string

The server stack trace. Present only if the error_trace=true parameter was sent with the request.

caused_by object
Same fields as reason in failures
root_cause object[]
Same fields as reason in failures
suppressed object[]
Same fields as reason in failures
shard number
status string
primary boolean
skipped number