Clone a snapshot Added in 7.10.0
Clone part of all of a snapshot into another snapshot in the same repository.
Path parameters
-
A repository name
-
The name of the snapshot to clone from
-
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.
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"}'
{
"indices": "string"
}
{
"acknowledged": true
}