# API to get nodes-\>indices-\>statuses

**URL:** <https://discuss.elastic.co/t/api-to-get-nodes-indices-statuses/6934>\
**Category:** Elasticsearch\
**Created:** [March 7, 2012, 6:03pm UTC](https://discuss.elastic.co/t/api-to-get-nodes-indices-statuses/6934 "2012-03-07T18:03:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)\
**Post date:** [March 7, 2012, 6:03pm UTC](https://discuss.elastic.co/t/api-to-get-nodes-indices-statuses/6934/1 "2012-03-07T18:03:48Z")

</div>

Hello,

I can't seem to find a single ES Stats API (HTTP) that returns:

- a list of all nodes in the cluster
- for each node, a list of indices (shards|replicas)
- for each shard|replica, its state (open|closed)

And NodeStat class and NodeIndicesStats also don't seem to have everything  
from the above either (no list of index names and open|closed state)...

What's the most elegant way to get to this info?

## Thanks, Otis

Hiring ElasticSearch Engineers World-Wide --

> **[Jobs](https://sematext.com/jobs/)**
>
> We’re Hiring – Join Our Team Sematext is a global products and services company.  We offer infrastructure and application performance monitoring and log management solutions – Sematext Cloud and…

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 7, 2012, 8:48pm UTC](https://discuss.elastic.co/t/api-to-get-nodes-indices-statuses/6934/2 "2012-03-07T20:48:58Z")

</div>

cluster state.

On Wednesday, March 7, 2012 at 8:03 PM, Otis Gospodnetic wrote:

> Hello,
> 
> I can't seem to find a single ES Stats API (HTTP) that returns:
> 
> - a list of all nodes in the cluster
> - for each node, a list of indices (shards|replicas)
> - for each shard|replica, its state (open|closed)
> 
> And NodeStat class and NodeIndicesStats also don't seem to have everything from the above either (no list of index names and open|closed state)...
> 
> What's the most elegant way to get to this info?
> 
> ## Thanks, Otis
> 
> Hiring Elasticsearch Engineers World-Wide -- [Jobs - Sematext](http://sematext.com/about/jobs.html#search)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:36am UTC](https://discuss.elastic.co/t/api-to-get-nodes-indices-statuses/6934/3 "2017-07-06T03:36:47Z")

</div>


