mount_snapshot.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --
  2. :api: searchable-snapshots-mount-snapshot
  3. :request: MountSnapshotRequest
  4. :response: MountSnapshotResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Mount Snapshot API
  9. [id="{upid}-{api}-request"]
  10. ==== Request
  11. The Mount Snapshot API mounts a snapshot as a searchable snapshot.
  12. ["source","java",subs="attributes,callouts,macros"]
  13. --------------------------------------------------
  14. include-tagged::{doc-tests-file}[{api}-request]
  15. --------------------------------------------------
  16. <1> The name of the repository.
  17. <2> The name of the snapshot.
  18. <3> The name of the index in the snapshot to mount.
  19. <4> (optional) The period to wait for a connection to the master node.
  20. <5> (optional) If true, the request blocks until the operation is complete.
  21. <6> (optional) The type of local storage to use for the mounted snapshot.
  22. <7> (optional) The name of the index that will be created.
  23. <8> (optional) Settings that should be added to the mounted index.
  24. <9> (optional) Names of settings that should be unset when the index is mounted.
  25. [id="{upid}-{api}-response"]
  26. ==== Response
  27. The returned +{response}+ indicates if the mounted snapshot was restored.
  28. ["source","java",subs="attributes,callouts,macros"]
  29. --------------------------------------------------
  30. include-tagged::{doc-tests-file}[{api}-response]
  31. --------------------------------------------------
  32. <1> The restore info of the mounted snapshot.
  33. include::../execution.asciidoc[]