younifyd
Menu

Get

Get

GET/_snapshot/{repository}/{snapshot}

Use it in a workflow

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

Request

Path parameters

repositorystringrequired

A comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported.

snapshotoneOfrequired

A comma-separated list of snapshot names to retrieve. Also accepts wildcard expressions. (`*`). - To get information about all snapshots in a registered repository, use a wildcard (`*`) or `_all`. - To get information about any snapshots that are currently running, use `_current`.

Query parameters

cluster_manager_timeoutstring

The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).

ignore_unavailableboolean

When `false`, the request returns an error for any snapshots that are unavailable.

Default false

master_timeoutstring

Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.

verboseboolean

When `true`, returns additional information about each snapshot, such as the version of OpenSearch which took the snapshot, the start and end times of the snapshot, and the number of shards contained in the snapshot. When `false`, returns only snapshot names and contained indexes. This is useful when the snapshots belong to a cloud-based repository, where each blob read is a cost or performance concern.

prettyboolean

Whether to pretty-format the returned JSON response.

Default false

humanboolean

Whether to return human-readable values for statistics.

Default false

error_traceboolean

Whether to include the stack trace of returned errors.

Default false

sourcestring

The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.

filter_pathoneOf

A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`.

Response

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

snapshotsarray<object>
data_streamsarray<string>

The list of data streams included in the snapshot.

durationstring

A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.

duration_in_millisinteger (int64)

The time unit for milliseconds.

end_timeoneOf

A date and time, either as a string whose format depends on the context (defaulting to ISO_8601) or the number of milliseconds since the epoch. OpenSearch accepts both as an input but will generally output a string. representation.

end_time_in_millisinteger (int64)

The time unit for milliseconds.

failuresarray<object>5 fields

The list of shard failures that occurred during the snapshot.

include_global_stateboolean

Whether the snapshot includes the cluster state.

indicesarray<string>

The list of indexes included in the snapshot.

metadataobject

The custom metadata attached to a resource.

pinned_timestampinteger (int64)

The time unit for milliseconds.

reasonstring

The reason for the snapshot creation.

remote_store_index_shallow_copyboolean

Whether the snapshot uses remote store index shallow copy.

snapshotstring

The name of a resource or configuration element.

shardsobject5 fields
start_timeoneOf

A date and time, either as a string whose format depends on the context (defaulting to ISO_8601) or the number of milliseconds since the epoch. OpenSearch accepts both as an input but will generally output a string. representation.

start_time_in_millisinteger (int64)

The time unit for milliseconds.

statestring

The current state of the snapshot.

uuidstring

The universally unique identifier.

versionstring
version_idinteger (int64)
json
{
  "snapshots": [
    {
      "data_streams": [
        "string"
      ],
      "duration": "string",
      "duration_in_millis": 0,
      "end_time": null,
      "end_time_in_millis": 0,
      "failures": [
        {
          "index": "string",
          "node_id": "string",
          "reason": "string",
          "shard_id": "string",
          "status": "string"
        }
      ],
      "include_global_state": false,
      "indices": [
        "string"
      ],
      "metadata": {},
      "pinned_timestamp": 0,
      "reason": "string",
      "remote_store_index_shallow_copy": false
    }
  ]
}

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