List shards
list_shardsRetrieve a detailed list of cluster shards including primary/replica role, state, document count, store size, and hosting node. Optionally filter by index name or pattern.
Instructions
List the cluster's shards with their primary/replica role, state, document count, store size, and hosting node (equivalent to _cat/shards). The docs and store columns come back null without the cluster "monitor" privilege; there is no lower-privilege source for per-shard rows, so a missing privilege surfaces as an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Optional index name or pattern to filter the shards |