Get a compact list of snapshots

Auth

Get information about the snapshots stored in one or more repositories. A snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.

Required authorization

Cluster privileges monitor_snapshot

Path parameters

repository union string | string[] optional

A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions. _all returns all repositories. If any repository fails during the request, Elasticsearch returns an error.

Leave it out to use /_cat/snapshots.

Query parameters

ignore_unavailable boolean · default: false

If true, the response does not include information from unavailable snapshots.

h union oneOf · default: id,repository,status,start_epoch,start_time,end_epoch,end_time,duration,indices,successful_shards,failed_shards,total_shards

A comma-separated list of columns names to display. It supports simple wildcards.

Supported values include:

  • id (or snapshot): The ID of the snapshot, such as 'snap1'.
  • repository (or re, repo): The name of the repository, such as 'repo1'.
  • status (or s): State of the snapshot process. Returned values are: 'FAILED': The snapshot process failed. 'INCOMPATIBLE': The snapshot process is incompatible with the current cluster version. 'IN_PROGRESS': The snapshot process started but has not completed. 'PARTIAL': The snapshot process completed with a partial success. 'SUCCESS': The snapshot process completed with a full success.
  • start_epoch (or ste, startEpoch): The unix epoch time at which the snapshot process started.
  • start_time (or sti, startTime): 'HH:MM:SS' time at which the snapshot process started.
  • end_epoch (or ete, endEpoch): The unix epoch time at which the snapshot process ended.
  • end_time (or eti, endTime): 'HH:MM:SS' time at which the snapshot process ended.
  • duration (or dur): The time it took the snapshot process to complete in time units.
  • indices (or i): The number of indices in the snapshot.
  • successful_shards (or ss): The number of successful shards in the snapshot.
  • failed_shards (or fs): The number of failed shards in the snapshot.
  • total_shards (or ts): The total number of shards in the snapshot.
  • reason (or r): The reason for any snapshot failures.
Values: id snapshot repository re repo status s start_epoch ste startEpoch start_time sti
s union string | string[]

List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting :asc or :desc as a suffix to the column name.

master_timeout string · default: 30s

Period to wait for a connection to the master node.

format string · default: text

Specifies the format to return the columnar data in, can be set to text, json, cbor, yaml, or smile.

help boolean · default: false

When set to true will output available columns. This option can't be combined with any other query string option.

v boolean · default: false

When set to true will enable verbose output.

bytes enum

Sets the units for columns that contain a byte-size value. Note that byte-size value units work in terms of powers of 1024. For instance 1kb means 1024 bytes, not 1000 bytes. If omitted, byte-size values are rendered with a suffix such as kb, mb, or gb, chosen such that the numeric value of the column is as small as possible whilst still being at least 1.0. If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit. Values that are not an exact multiple of the chosen unit are rounded down.

Values: b kb mb gb tb pb
time enum

Sets the units for columns that contain a time duration. If omitted, time duration values are rendered with a suffix such as ms, s, m or h, chosen such that the numeric value of the column is as small as possible whilst still being at least 1.0. If given, time duration values are rendered as an integer with no suffix. Values that are not an exact multiple of the chosen unit are rounded down.

Values: nanos micros ms s m h d

Response

application/json
<array> object[]
id string

The unique identifier for the snapshot.

repository string

The repository name.

status string

The state of the snapshot process. Returned values include: FAILED: The snapshot process failed. INCOMPATIBLE: The snapshot process is incompatible with the current cluster version. IN_PROGRESS: The snapshot process started but has not completed. PARTIAL: The snapshot process completed with a partial success. SUCCESS: The snapshot process completed with a full success.

start_epoch union oneOf

The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process started.

One of: number or string
start_time union oneOf

The time (HH:MM:SS) at which the snapshot process started.

One of:
end_epoch union oneOf

The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process ended.

One of: number or string
end_time string

The time (HH:MM:SS) at which the snapshot process ended.

duration string

The time it took the snapshot process to complete, in time units.

indices string

The number of indices in the snapshot.

successful_shards string

The number of successful shards in the snapshot.

failed_shards string

The number of failed shards in the snapshot.

total_shards string

The total number of shards in the snapshot.

reason string

The reason for any snapshot failures.