@elastic/get-shard-allocation
Get shard allocation across nodes
RUN SKILL get_shard_allocation()With parameters:
RUN SKILL get_shard_allocation WITH index = 'value'| Name | Type | Default | Description |
|---|---|---|---|
| index | STRING | — | Index to check allocation for |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL get_shard_allocation()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}