Get index shard stores
Get store information about replica shards in one or more indices. For data streams, the API retrieves store information for the stream's backing indices.
The index shard stores API returns the following information:
- The node on which each replica shard exists.
- The allocation ID for each replica shard.
- A unique ID for each replica shard.
- Any errors encountered while opening the shard index or from an earlier failure.
By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards.
Path parameters
-
List of data streams, indices, and aliases used to limit the request.
Query parameters
-
allow_no_indices boolean
If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices.
-
expand_wildcards string | array[string]
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
-
status string | array[string]
List of shard health statuses used to limit the request.
curl \
-X GET http://api.example.com/{index}/_shard_stores
{
"indices": {
"additionalProperty1": {
"shards": {
"additionalProperty1": {
"stores": [
{}
]
},
"additionalProperty2": {
"stores": [
{}
]
}
}
},
"additionalProperty2": {
"shards": {
"additionalProperty1": {
"stores": [
{}
]
},
"additionalProperty2": {
"stores": [
{}
]
}
}
}
}
}