# The index GET /\_stats api doesn't return if the index is green, yellow, red

**URL:** <https://discuss.elastic.co/t/the-index-get-stats-api-doesnt-return-if-the-index-is-green-yellow-red/163016>\
**Category:** Elasticsearch\
**Created:** [January 4, 2019, 10:46pm UTC](https://discuss.elastic.co/t/the-index-get-stats-api-doesnt-return-if-the-index-is-green-yellow-red/163016 "2019-01-04T22:46:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pingwangcs](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pingwangcs](https://discuss.elastic.co/u/pingwangcs)\
**Post date:** [January 4, 2019, 10:47pm UTC](https://discuss.elastic.co/t/the-index-get-stats-api-doesnt-return-if-the-index-is-green-yellow-red/163016/1 "2019-01-04T22:47:00Z")

</div>

HI There,

the index GET /\_stats api doesn't return if the index is green, yellow, red.  
Could you tell me what are the conditions to say that if an index is green, yellow, red based on the data returned by the GET /\_stats api.  
I tried to call GET /\_cat/indices/user\_common?h=index,health, but the call got throttled.

Thank you!

---

<div class="post-metadata">

**Author:** ![bloke](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@bloke](https://discuss.elastic.co/u/bloke)\
**Post date:** [January 5, 2019, 12:07am UTC](https://discuss.elastic.co/t/the-index-get-stats-api-doesnt-return-if-the-index-is-green-yellow-red/163016/2 "2019-01-05T00:07:57Z")

</div>

Your question is largely ambiguous. There are many conditions which may effect the Elasticsearch node / cluster / indexes / shards / routing etc. Further detail on the API's is here [https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)

---

<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:** [February 2, 2019, 12:07am UTC](https://discuss.elastic.co/t/the-index-get-stats-api-doesnt-return-if-the-index-is-green-yellow-red/163016/3 "2019-02-02T00:07:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
