# Retrieving aliases on an index with no aliases

**URL:** https://discuss.elastic.co/t/retrieving-aliases-on-an-index-with-no-aliases/12350
**Category:** Elasticsearch
**Created:** [June 10, 2013, 10:43pm UTC](https://discuss.elastic.co/t/retrieving-aliases-on-an-index-with-no-aliases/12350 "2013-06-10T22:43:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![andreasch](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@andreasch](https://discuss.elastic.co/u/andreasch)
#### Post date: [June 10, 2013, 10:43pm UTC](https://discuss.elastic.co/t/retrieving-aliases-on-an-index-with-no-aliases/12350/1 "2013-06-10T22:43:22Z")

</div>

I am using version 0.90.1 and I am trying to retrieve all aliases of an  
existing index that has no aliases:

curl -XHEAD '[http://localhost:9200/test/\_alias/\*](http://localhost:9200/test/_alias/*)'

which results in the following error:

{"error":"AliasMissingException[alias [\*] missing]","status":404}

Is this the correct behavior? I would expect an empty result set. What is  
the best way to determine the aliases of an index when there is a chance  
that the index may not have any?

Thanks,  
Andreas

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:31am UTC](https://discuss.elastic.co/t/retrieving-aliases-on-an-index-with-no-aliases/12350/2 "2017-07-06T02:31:55Z")

</div>


