# How do you get all aliases (and their respective indices) in ES on 2.X?

**URL:** <https://discuss.elastic.co/t/how-do-you-get-all-aliases-and-their-respective-indices-in-es-on-2-x/53824>\
**Category:** Elasticsearch\
**Created:** [June 23, 2016, 7:27pm UTC](https://discuss.elastic.co/t/how-do-you-get-all-aliases-and-their-respective-indices-in-es-on-2-x/53824 "2016-06-23T19:27:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Shadoninja](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@Shadoninja](https://discuss.elastic.co/u/Shadoninja)\
**Post date:** [June 24, 2016, 6:43pm UTC](https://discuss.elastic.co/t/how-do-you-get-all-aliases-and-their-respective-indices-in-es-on-2-x/53824/5 "2016-06-24T18:43:30Z")

</div>

> [@Josh\_J\_Luo](#):
>
> client.admin().indices().getAliases()

That method is asking me for arguments. I dug in a little and it looks like it is for finding specific aliases in the system. I need them all.

Isn't there a method that just looks at the db and says "Give me all the aliases you know about"?

```
curl 'localhost:9200/_cat/aliases?v

```

gives me everything I want, but I need the Java form of it.

---

_[View the full topic](https://discuss.elastic.co/t/how-do-you-get-all-aliases-and-their-respective-indices-in-es-on-2-x/53824)._
