1
0

clone-snapshot-api.asciidoc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [[clone-snapshot-api]]
  2. === Clone snapshot API
  3. ++++
  4. <titleabbrev>Clone snapshot</titleabbrev>
  5. ++++
  6. Clones part or all of a snapshot into a new snapshot.
  7. [source,console]
  8. ----
  9. PUT /_snapshot/my_repository/source_snapshot/_clone/target_snapshot
  10. {
  11. "indices": "index_a,index_b"
  12. }
  13. ----
  14. // TEST[skip:TODO]
  15. [[clone-snapshot-api-request]]
  16. ==== {api-request-title}
  17. `PUT /_snapshot/<repository>/<source_snapshot>/_clone/<target_snapshot>`
  18. [[clone-snapshot-api-prereqs]]
  19. ==== {api-prereq-title}
  20. * If the {es} {security-features} are enabled, you must have the `manage`
  21. <<privileges-list-cluster,cluster privilege>> to use this API.
  22. [[clone-snapshot-api-desc]]
  23. ==== {api-description-title}
  24. The clone snapshot API allows creating a copy of all or part of an existing snapshot
  25. within the same repository.
  26. [[clone-snapshot-api-params]]
  27. ==== {api-path-parms-title}
  28. `<repository>`::
  29. (Required, string)
  30. Name of the snapshot repository that both source and target snapshot belong to.
  31. [[clone-snapshot-api-query-params]]
  32. ==== {api-query-parms-title}
  33. `master_timeout`::
  34. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  35. a connection to the master node. If no response is received before the timeout
  36. expires, the request fails and returns an error. Defaults to `30s`.
  37. `timeout`::
  38. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  39. a response. If no response is received before the timeout expires, the request
  40. fails and returns an error. Defaults to `30s`.
  41. `indices`::
  42. (Required, string)
  43. A comma-separated list of indices to include in the snapshot.
  44. <<multi-index,Multi-index syntax>> is supported.