Mount a snapshot as a searchable index Added in 7.10.0

POST /_snapshot/{repository}/{snapshot}/_mount

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

  • Explicit operation timeout for connection to master node

  • 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

application/json

Body Required

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • snapshot object Required

      Additional properties are allowed.

      Hide snapshot attributes Show snapshot attributes object
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
    }
  }
}