Provides store information for shard copies of indices. Store information reports on which nodes shard copies exist, the shard copy version, indicating how recent they are, and any exceptions encountered while opening the shard index or from earlier engine failure.
By default, only lists store information for shards that have at least one unallocated copy. When the cluster health status is yellow, this will list store information for shards that have at least one unassigned replica. When the cluster health status is red, this will list store information for shards, which has unassigned primaries.
Endpoints include shard stores information for a specific index, several indices, or all:
curl -XGET 'http://localhost:9200/test/_shard_stores' curl -XGET 'http://localhost:9200/test1,test2/_shard_stores' curl -XGET 'http://localhost:9200/_shard_stores'
The scope of shards to list store information can be changed through
status param. Defaults to yellow and red. yellow lists store information of
shards with at least one unassigned replica and red for shards with unassigned
Use green to list store information for shards with all assigned copies.
curl -XGET 'http://localhost:9200/_shard_stores?status=green'
The shard stores information is grouped by indices and shard ids.
The key is the corresponding shard id for the store information
A list of store information for all copies of the shard
The node information that hosts a copy of the store, the key is the unique node id.
The version of the store copy
The status of the store copy, whether it is used as a primary, replica or not used at all
Any exception encountered while opening the shard index or from earlier engine failure