younifyd
Menu

Clone a snapshot

Clone a snapshot

PUT/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Clone a snapshot action (under snapshot).
  3. Fill in the fields below, then reference the result from later steps as {{cloneASnapshot.response.data}}.

Request

Path parameters

repositorystringrequired

The name of the snapshot repository that both source and target snapshot belong to.

snapshotstringrequired

The source snapshot name.

target_snapshotstringrequired

The target snapshot name.

Query parameters

master_timeoutoneOf

The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to `-1`.

Request body

Enter the body as JSON in the step's Body field.

indicesstringrequired

A comma-separated list of indices to include in the snapshot. Multi-target syntax is supported.

json
{
  "indices": "string"
}

Response

Returns 200 with an object. Read it in later steps with {{cloneASnapshot.response.data.<field>}}.

acknowledgedboolean

For a successful response, this value is always true. On failure, an exception is returned instead.

json
{
  "acknowledged": false
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Clone a snapshot — Elasticsearch — Documentation