Get snapshot information
- GET /_cat/snapshots/{repository}
- GET /_cat/snapshots
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
Query parameters
-
If
true, the response does not include information from unavailable snapshots. -
hunion · default: ip,hp,rp,r,m,n,cpu,l -
A comma-separated list of columns names to display. It supports simple wildcards.
Supported values include:
id(orsnapshot): The ID of the snapshot, such as 'snap1'.repository(orre,repo): The name of the repository, such as 'repo1'.status(ors): 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(orste,startEpoch): The unix epoch time at which the snapshot process started.start_time(orsti,startTime): 'HH:MM:SS' time at which the snapshot process started.end_epoch(orete,endEpoch): The unix epoch time at which the snapshot process ended.end_time(oreti,endTime): 'HH:MM:SS' time at which the snapshot process ended.duration(ordur): The time it took the snapshot process to complete in time units.indices(ori): The number of indices in the snapshot.successful_shards(orss): The number of successful shards in the snapshot.failed_shards(orfs): The number of failed shards in the snapshot.total_shards(orts): The total number of shards in the snapshot.reason(orr): The reason for any snapshot failures.
-
Values:
idsnapshotrepositoryrerepostatussstart_epochstestartEpochstart_timestistartTimeend_epocheteendEpochend_timeetiendTimedurationdurindicesisuccessful_shardsssfailed_shardsfstotal_shardstsreasonr -
soneOf -
List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting
:ascor:descas a suffix to the column name. -
formatstring · default: text -
Specifies the format to return the columnar data in, can be set to
text,json,cbor,yaml, orsmile. -
helpboolean · default: false -
When set to
truewill output available columns. This option can't be combined with any other query string option. -
bytes -
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
1kbmeans 1024 bytes, not 1000 bytes. If omitted, byte-size values are rendered with a suffix such askb,mb, orgb, chosen such that the numeric value of the column is as small as possible whilst still being at least1.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 -
time -
Sets the units for columns that contain a time duration. If omitted, time duration values are rendered with a suffix such as
ms,s,morh, chosen such that the numeric value of the column is as small as possible whilst still being at least1.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:
nanosmicrosmssmhd