Use the get snapshot status API to retrieve detailed information about snapshots currently running in the cluster.
If you specify both the repository name and snapshot, the request retrieves detailed status information for the given snapshot, even if not currently running.
Snapshot repository name used to limit the request. Wildcard (`*`) expressions are supported.
+
Use `_current` after the repository name to limit the request only to the currently running snapshots. This usage is preferred to return only snapshots that are currently running and not degrade response time.
`<snapshot>`::
(Required, string)
Comma-separated list of snapshot names to retrieve status for.
+
To retrieve a list of all snapshots in a specified repository, omit this parameter.
+
NOTE: Wildcard (`*`) expressions are not supported for `<snapshot>`.
Indicates whether the current cluster state is included in the snapshot.
[[get-snapshot-status-shards-stats]]
`shards_stats`::
(object)
Contains a count of shards in the snapshot.
+
.Properties of `shards_stats`
[%collapsible%open]
====
`initializing`::
(integer)
Number of shards that are still initializing.
`started`::
(integer)
Number of shards that have started but not are not finalized.
`finalizing`::
(integer)
Number of shards that are finalizing but are not done.
`done`::
(integer)
Number of shards that initialized, started, and finalized successfully.
`failed`::
(integer)
Number of shards that failed to be included in the snapshot.
`total`::
(integer)
Total number of shards included in the snapshot.
====
[[get-snapshot-status-stats]]
`stats`::
(object)
Provides details on the number (`file_count`) and size (`size_in_bytes`) of files included in the snapshot.
+
.Properties of `stats`
[%collapsible%open]
====
`incremental`::
(object)
Number and size of files that still need to be copied as part of the incremental snapshot.
+
For completed snapshots, this property indicates the number and size
of files that were not already in the repository and were copied as
part of the incremental snapshot.
`processed`::
(object)
Number and size of files that have already been uploaded to the snapshot. After a file is uploaded, the processed `file_count` and `size_in_bytes` are incremented in `stats`.
`total`::
(object)
Total number and size of files that are referenced by the snapshot.
[[get-snapshot-status-start-time]]
`start_time_in_millis`::
(long)
The time, in milliseconds, when the snapshot creation process started.
[[get-snapshot-status-total-time]]
`time_in_millis`::
(long)
The total time, in milliseconds, that it took for the snapshot process
to complete.
====
`<index>`::
(list of objects)
List of objects containing information about the
indices included in the snapshot.
+
.Properties of `<index>`
[%collapsible%open]
====
`shards_stats`::
(object)
See <<get-snapshot-status-shards-stats,`shards_stats`>>.
`stats`::
(object)
See <<get-snapshot-status-stats,`stats`>>.
`shards`::
(list of objects)
List of objects containing information about the
shards that include the snapshot.
+
.Properties of `shards`
[%collapsible%open]
=====
`stage`::
(string)
Indicates the current state of the shards that include the snapshot.
+
.Properties of `stage`
[%collapsible%open]
======
`DONE`::
Number of shards in the snapshot that were successfully stored in the repository.
`FAILURE`::
Number of shards in the snapshot that were not successfully stored in
the repository.
`FINALIZE`::
Number of shards in the snapshot that are in the finalizing stage
of being stored in the repository.
`INIT`::
Number of shards in the snapshot that are in the initializing stage
of being stored in the repository.
`STARTED`::
Number of shards in the snapshot that are in the started stage
of being stored in the repository.
======
`stats`::
(object)
See <<get-snapshot-status-stats,`stats`>>.
`total`::
(object)
Total number and size of files that are referenced by the snapshot.
`start_time_in_millis`::
(long)
See <<get-snapshot-status-start-time,`start_time_in_millis`>>.
`time_in_millis`::
(long)
See <<get-snapshot-status-total-time,`time_in_millis`>>.
=====
====
[[get-snapshot-status-api-example]]
==== {api-example-title}
The following request returns detailed status information for `snapshot_2` in the `my_repository` repository. This response includes additional information beyond the <<get-snapshot-api,Get snapshot API>>, such as shard status and file statistics.