Mount a snapshot as a searchable index Added in 7.10.0
Path parameters
-
The name of the repository containing the snapshot of the index to mount
-
The name of the snapshot of the index to mount
Query parameters
-
master_timeout string
Explicit operation timeout for connection to master node
-
wait_for_completion boolean
Should this request wait until the operation has completed before returning
-
storage string
Selects the kind of local storage used to accelerate searches. Experimental, and defaults to
full_copy
Body Required
-
renamed_index string
-
index_settings object
-
ignore_index_settings array[string]
POST /_snapshot/{repository}/{snapshot}/_mount
curl \
-X POST http://api.example.com/_snapshot/{repository}/{snapshot}/_mount \
-H "Content-Type: application/json" \
-d '{"index":"string","renamed_index":"string","index_settings":{"additionalProperty1":{},"additionalProperty2":{}},"ignore_index_settings":["string"]}'
Request examples
{
"index": "string",
"renamed_index": "string",
"index_settings": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"ignore_index_settings": [
"string"
]
}
Response examples (200)
{
"snapshot": {
"snapshot": "string",
"indices": "string",
"shards": {
"failed": 42.0,
"successful": 42.0,
"total": 42.0,
"failures": [
{
"index": "string",
"node": "string",
"reason": {
"type": "string",
"reason": "string",
"stack_trace": "string",
"caused_by": {},
"root_cause": [
{}
],
"suppressed": [
{}
]
},
"shard": 42.0,
"status": "string"
}
],
"skipped": 42.0
}
}
}