# \`get\_aliases()\` removed from elasticsearch-py (Python)

**URL:** <https://discuss.elastic.co/t/get-aliases-removed-from-elasticsearch-py-python/76092>\
**Category:** Elasticsearch\
**Created:** [February 22, 2017, 7:18pm UTC](https://discuss.elastic.co/t/get-aliases-removed-from-elasticsearch-py-python/76092 "2017-02-22T19:18:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaddison](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@jaddison](https://discuss.elastic.co/u/jaddison)\
**Post date:** [February 22, 2017, 7:18pm UTC](https://discuss.elastic.co/t/get-aliases-removed-from-elasticsearch-py-python/76092/1 "2017-02-22T19:18:13Z")

</div>

As near as I can tell, `get_aliases()` was removed from `elasticsearch-py` with the move from 2.x to 5.x support.

I get that I can continue to use 2.x, but I have a 3rd party lib ([https://github.com/jaddison/django-simple-elasticsearch](https://github.com/jaddison/django-simple-elasticsearch)) that I'm interested in adding support for 5.x due to 'popular' request - but just want to be clear on what's changed in the Python lib between versions before proceeding.

**Edit:** Am I supposed to use `get_alias()` in its place? If so, it seems somewhat counter-intuitive (plurality-wise)?

---

<div class="post-metadata">

**Author:** ![honzakral](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/honzakral/32/44958_2.png) [@honzakral](https://discuss.elastic.co/u/honzakral)\
**Post date:** [February 27, 2017, 10:21am UTC](https://discuss.elastic.co/t/get-aliases-removed-from-elasticsearch-py-python/76092/2 "2017-02-27T10:21:54Z")

</div>

We take the API names and definitions from elsticsearch itself so when `5.0` removed the `get_aliases` API in favor of `get_alias` we went with it in the python client as well.

---

<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:** [March 27, 2017, 10:21am UTC](https://discuss.elastic.co/t/get-aliases-removed-from-elasticsearch-py-python/76092/3 "2017-03-27T10:21:56Z")

</div>

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