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.
- Cluster privileges:
monitor_snapshot
Path Parameters
-
repositoryName | Nameoptional -
A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions.
_allreturns all repositories. If any repository fails during the request, Elasticsearch returns an error.Leave it out to use
/_cat/snapshots.
Query Parameters
If
true, the response does not include information from unavailable snapshots.-
hCatSnapshotsColumns · 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 -
sNames 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.-
master_timeoutstring Duration · default: 30s Period to wait for a connection to the master node.
Response
Response Type: SnapshotsRecord
-
idstring -
The unique identifier for the snapshot.
-
repositorystring -
The repository name.
-
statusstring -
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_epochStringifiedEpochTimeUnitSeconds -
The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process started.
-
start_timeScheduleTimeOfDay -
The time (HH:MM:SS) at which the snapshot process started.
-
end_epochStringifiedEpochTimeUnitSeconds -
The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process ended.
-
end_timestring TimeOfDay -
The time (HH:MM:SS) at which the snapshot process ended.
-
durationstring Duration -
The time it took the snapshot process to complete, in time units.
-
indicesstring -
The number of indices in the snapshot.
-
successful_shardsstring -
The number of successful shards in the snapshot.
-
failed_shardsstring -
The number of failed shards in the snapshot.
-
total_shardsstring -
The total number of shards in the snapshot.
-
reasonstring -
The reason for any snapshot failures.