# ClusterHealthRequest Clarification

**URL:** <https://discuss.elastic.co/t/clusterhealthrequest-clarification/71048>\
**Category:** Elasticsearch\
**Created:** [January 10, 2017, 9:54am UTC](https://discuss.elastic.co/t/clusterhealthrequest-clarification/71048 "2017-01-10T09:54:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TTNarendran](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@TTNarendran](https://discuss.elastic.co/u/TTNarendran)\
**Post date:** [January 10, 2017, 9:54am UTC](https://discuss.elastic.co/t/clusterhealthrequest-clarification/71048/1 "2017-01-10T09:54:27Z")

</div>

Hi Team,

new ClusterHealthRequest(indexName).waitForYellowStatus(); whether this method will check for the particularindex health or it will check healthrequest of entire cluster.

---

<div class="post-metadata">

**Author:** ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)\
**Post date:** [January 10, 2017, 10:04am UTC](https://discuss.elastic.co/t/clusterhealthrequest-clarification/71048/2 "2017-01-10T10:04:30Z")

</div>

Its depend on your API

[https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html)

```
GET /_cluster/health/<index>?wait_for_status=yellow&timeout=50s

```

Its gives the index status in your cluster. If you don't mention the index like

```
GET /_cluster/health?wait_for_status=yellow&timeout=50s

```

Its gives the entire cluster status (all indexes will be considered)

---

<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 7, 2017, 10:04am UTC](https://discuss.elastic.co/t/clusterhealthrequest-clarification/71048/3 "2017-02-07T10:04:32Z")

</div>

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