younifyd
Menu

Get the snapshot status (GET /_snapshot/{repository}/_status)

Get the snapshot status

GET/_snapshot/{repository}/_status

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get the snapshot status (GET /_snapshot/{repository}/_status) action (under snapshot).
  3. Fill in the fields below, then reference the result from later steps as {{getTheSnapshotStatusGetSnapshotRepositoryStatus.response.data}}.

Request

Path parameters

repositorystringrequired

The snapshot repository name used to limit the request. It supports wildcards (`*`) if `<snapshot>` isn't specified.

Query parameters

ignore_unavailableboolean

If `false`, the request returns an error for any snapshots that are unavailable. If `true`, the request ignores snapshots that are unavailable, such as those that are corrupted or temporarily cannot be returned.

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`.

Response

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

snapshotsarray<object>
include_global_statebooleanrequired

Indicates whether the current cluster state is included in the snapshot.

indicesobjectrequired
repositorystringrequired

The name of the repository that includes the snapshot.

shards_statsanyrequired

Statistics for the shards in the snapshot.

snapshotstringrequired

The name of the snapshot.

statestringrequired

The current snapshot state: * `FAILED`: The snapshot finished with an error and failed to store any data. * `STARTED`: The snapshot is currently running. * `SUCCESS`: The snapshot completed.

statsanyrequired

Details about the number (`file_count`) and size (`size_in_bytes`) of files included in the snapshot.

uuidanyrequired

The universally unique identifier (UUID) for the snapshot.

json
{
  "snapshots": [
    {
      "include_global_state": false,
      "indices": {},
      "repository": "string",
      "shards_stats": null,
      "snapshot": "string",
      "state": "string",
      "stats": null,
      "uuid": null
    }
  ]
}

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