List shards
list_shardsList cluster shards with role, state, document count, store size, and node. Requires monitor privilege for complete data.
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 |