# Cat APIs for Java?

**URL:** https://discuss.elastic.co/t/cat-apis-for-java/20356
**Category:** Elasticsearch
**Created:** [October 21, 2014, 6:38am UTC](https://discuss.elastic.co/t/cat-apis-for-java/20356 "2014-10-21T06:38:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![truong\_ha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/truong_ha/32/1175_2.png) [@truong\_ha](https://discuss.elastic.co/u/truong_ha)
#### Post date: [October 21, 2014, 6:38am UTC](https://discuss.elastic.co/t/cat-apis-for-java/20356/1 "2014-10-21T06:38:25Z")

</div>

Do we have cat API for Java?  
I am using ElasticSearch version 1.3.4 and figure out I can only use HTTP  
cat api.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d7e6bc32-487c-419a-9b1c-29ca30b1bd5f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d7e6bc32-487c-419a-9b1c-29ca30b1bd5f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [October 21, 2014, 7:05am UTC](https://discuss.elastic.co/t/cat-apis-for-java/20356/2 "2014-10-21T07:05:33Z")

</div>

Why not simply doing what cat does behind the scene?

For example: [https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/cat/RestHealthAction.java#L54-L61](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/cat/RestHealthAction.java#L54-L61)

Best

--  
David Pilato | Technical Advocate | [elasticsearch.com](http://elasticsearch.com)  
[david.pilato@elasticsearch.com](mailto:david.pilato@elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 21 octobre 2014 à 08:38:29, truong ha ([truonghatsts@gmail.com](mailto:truonghatsts@gmail.com)) a écrit:

## Do we have cat API for Java? I am using ElasticSearch version 1.3.4 and figure out I can only use HTTP cat api.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d7e6bc32-487c-419a-9b1c-29ca30b1bd5f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d7e6bc32-487c-419a-9b1c-29ca30b1bd5f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.544605bd.643c9869.137a%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.544605bd.643c9869.137a%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![truong\_ha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/truong_ha/32/1175_2.png) [@truong\_ha](https://discuss.elastic.co/u/truong_ha)
#### Post date: [October 21, 2014, 8:01am UTC](https://discuss.elastic.co/t/cat-apis-for-java/20356/3 "2014-10-21T08:01:03Z")

</div>

it's cool, thanks much!

On Tuesday, 21 October 2014 14:05:46 UTC+7, David Pilato wrote:

> Why not simply doing what cat does behind the scene?
> 
> For example:  
> [https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/cat/RestHealthAction.java#L54-L61](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/cat/RestHealthAction.java#L54-L61)
> 
> [https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/cat/RestHealthAction.java#L54-L61](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/cat/RestHealthAction.java#L54-L61)  
> B  
> [https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/cat/RestHealthAction.java#L54-L61](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/cat/RestHealthAction.java#L54-L61)  
> est
> 
> --  
> _David Pilato_ | Technical Advocate | _[elasticsearch.com](http://elasticsearch.com)  
> [http://elasticsearch.com](http://elasticsearch.com)_  
> [david....@elasticsearch.com](mailto:david....@elasticsearch.com) \<javascript:\>  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> [http://twitter.com/scrutmydocs](http://twitter.com/scrutmydocs)  
> [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 21 octobre 2014 à 08:38:29, truong ha ([truong...@gmail.com](mailto:truong...@gmail.com)  
> \<javascript:\>) a écrit:
> 
> ## Do we have cat API for Java? I am using Elasticsearch version 1.3.4 and figure out I can only use HTTP cat api.
> 
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/d7e6bc32-487c-419a-9b1c-29ca30b1bd5f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d7e6bc32-487c-419a-9b1c-29ca30b1bd5f%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/d7e6bc32-487c-419a-9b1c-29ca30b1bd5f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/d7e6bc32-487c-419a-9b1c-29ca30b1bd5f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0c8398e4-0cca-4efe-8719-151bd8bcc66e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0c8398e4-0cca-4efe-8719-151bd8bcc66e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:54am UTC](https://discuss.elastic.co/t/cat-apis-for-java/20356/4 "2017-07-06T00:54:48Z")

</div>


