Get the snapshot status Added in 7.8.0
Get a detailed description of the current state for each shard participating in the snapshot. Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API.
WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. The API requires a read from the repository for each shard in each snapshot. For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards).
Depending on the latency of your storage, such requests can take an extremely long time to return results. These requests can also tax machine resources and, when using cloud storage, incur high processing costs.
Path parameters
-
A repository name
Query parameters
-
master_timeout string
Explicit operation timeout for connection to master node
curl \
-X GET http://api.example.com/_snapshot/{repository}/_status
{
"snapshots": [
{
"include_global_state": true,
"indices": {
"additionalProperty1": {
"shards": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"shards_stats": {
"done": 42.0,
"failed": 42.0,
"finalizing": 42.0,
"initializing": 42.0,
"started": 42.0,
"total": 42.0
},
"stats": {
"incremental": {},
"time": "string",
"total": {}
}
},
"additionalProperty2": {
"shards": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"shards_stats": {
"done": 42.0,
"failed": 42.0,
"finalizing": 42.0,
"initializing": 42.0,
"started": 42.0,
"total": 42.0
},
"stats": {
"incremental": {},
"time": "string",
"total": {}
}
}
},
"repository": "string",
"shards_stats": {
"done": 42.0,
"failed": 42.0,
"finalizing": 42.0,
"initializing": 42.0,
"started": 42.0,
"total": 42.0
},
"snapshot": "string",
"state": "string",
"stats": {
"incremental": {
"file_count": 42.0,
"size_in_bytes": 42.0
},
"": 42.0,
"time": "string",
"total": {
"file_count": 42.0,
"size_in_bytes": 42.0
}
},
"uuid": "string"
}
]
}