AuthThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityGenerally available since 2.1This functionality is generally available and ready for production usage.Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
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.
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.
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.
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_timeoutstring · default: 30s
Period to wait for a connection to the master node.
formatstring · default: text
Specifies the format to return the columnar data in, can be set to
text, json, cbor, yaml, or smile.
helpboolean · default: false
When set to true will output available columns. This option
can't be combined with any other query string option.
vboolean · default: false
When set to true will enable verbose output.
bytesenum
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:bkbmbgbtbpb
timeenum
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.
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_epochuniononeOf
The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process started.
One of:numberorstring
start_timeuniononeOf
The time (HH:MM:SS) at which the snapshot process started.
One of:
hournumber[]required
minutenumber[]required
end_epochuniononeOf
The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process ended.
One of:numberorstring
end_timestring
The time (HH:MM:SS) at which the snapshot process ended.
durationstring
The time it took the snapshot process to complete, in time units.