younifyd
Menu

Create a snapshot (POST)

Create a snapshot

POST/_snapshot/{repository}/{snapshot}

Use it in a workflow

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

Request

Path parameters

repositorystringrequired

The name of the repository for the snapshot.

snapshotstringrequired

The name of the snapshot. It supportes date math. It must be unique in the repository.

Query parameters

master_timeoutoneOf

The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

wait_for_completionboolean

If `true`, the request returns a response when the snapshot is complete. If `false`, the request returns a response when the snapshot initializes.

Response

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

acceptedboolean

Equals `true` if the snapshot was accepted. Present when the request had `wait_for_completion` set to `false`

snapshotany

Snapshot information. Present when the request had `wait_for_completion` set to `true`

json
{
  "accepted": false,
  "snapshot": null
}

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

Create a snapshot (POST) — Elasticsearch — Documentation