Clone a snapshot
Added in 7.10.0
Clone part of all of a snapshot into another snapshot in the same repository.
Path parameters
-
repository
string Required A repository name
-
snapshot
string Required The name of the snapshot to clone from
-
target_snapshot
string Required The name of the cloned snapshot to create
Query parameters
-
master_timeout
string Explicit operation timeout for connection to master node
-
timeout
string A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
PUT
/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}
curl \
--request PUT http://api.example.com/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot} \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"indices":"string"}'
Request examples
{
"indices": "string"
}
Response examples (200)
{
"acknowledged": true
}