clone-snapshot-api.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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-desc]]
  19. ==== {api-description-title}
  20. The clone snapshot API allows creating a copy of all or part of an existing snapshot
  21. within the same repository.
  22. [[clone-snapshot-api-params]]
  23. ==== {api-path-parms-title}
  24. `<repository>`::
  25. (Required, string)
  26. Name of the snapshot repository that both source and target snapshot belong to.
  27. [[clone-snapshot-api-query-params]]
  28. ==== {api-query-parms-title}
  29. `master_timeout`::
  30. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  31. a connection to the master node. If no response is received before the timeout
  32. expires, the request fails and returns an error. Defaults to `30s`.
  33. `timeout`::
  34. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  35. a response. If no response is received before the timeout expires, the request
  36. fails and returns an error. Defaults to `30s`.
  37. `indices`::
  38. (Required, string)
  39. A comma-separated list of indices to include in the snapshot.
  40. <<multi-index,Multi-index syntax>> is supported.