Mount a snapshot
- POST /_snapshot/{repository}/{snapshot}/_mount
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.
- Index privileges:
manage - Cluster privileges:
manage
Path Parameters
-
repositorystring Namerequired -
The name of the repository containing the snapshot of the index to mount.
-
snapshotstring Namerequired -
The name of the snapshot of the index to mount.
Query Parameters
-
master_timeoutstring Duration · 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_completionboolean · default: false If true, the request blocks until the operation is complete.
-
storageStorageOption · default: full_copy The mount option for the searchable snapshot index. For further information on mount options, refer to: Mount options
Supported values include:
full_copy: Fully caches the snapshotted index’s shards in the Elasticsearch cluster.shared_cache: Uses a local cache containing only recently searched parts of the snapshotted index’s data.
-
Values:
full_copyshared_cache
Request
-
indexstring IndexNamerequired -
The name of the index contained in the snapshot whose data is to be mounted. If no
renamed_indexis specified, this name will also be used to create the new index. -
renamed_indexstring IndexName -
The name of the index that will be created.
-
index_settingsmap string to object -
The settings that should be added to the index when it is mounted.
-
ignore_index_settingsstring -
The names of settings that should be removed from the index when it is mounted.
Response
-
snapshotMountedSnapshotrequired -
snapshotstring Namerequired -
indicesstring Indicesrequired -
shardsShardStatisticsrequired -
failednumber uintrequired -
The number of shards the operation or search attempted to run on but failed.
-
successfulnumber uintrequired -
The number of shards the operation or search succeeded on.
-
totalnumber uintrequired -
The number of shards the operation or search will run on overall.
-
failuresShardFailure -
indexstring IndexName -
nodestring -
reasonErrorCauserequired -
typestringrequired -
The type of error
-
reasonstringnullable -
A human-readable explanation of the error, in English.
-
stack_tracestring -
The server stack trace. Present only if the
error_trace=trueparameter was sent with the request. -
caused_byErrorCause -
root_causeErrorCause -
suppressedErrorCause -
shardnumber -
statusstring -
primaryboolean -
skippednumber uint