@elastic/list-nodes
List all nodes in the Elasticsearch cluster
RUN SKILL list_nodes()With parameters:
RUN SKILL list_nodes WITH role = 'value'| Name | Type | Default | Description |
|---|---|---|---|
| role | STRING | — | Filter by role: master, data, ingest |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL list_nodes()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}