# Retrieve mapping of an index using pyes library

**URL:** <https://discuss.elastic.co/t/retrieve-mapping-of-an-index-using-pyes-library/17455>\
**Category:** Elasticsearch\
**Created:** [May 12, 2014, 9:34am UTC](https://discuss.elastic.co/t/retrieve-mapping-of-an-index-using-pyes-library/17455 "2014-05-12T09:34:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nishidha\_randad](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nishidha\_randad](https://discuss.elastic.co/u/nishidha_randad)\
**Post date:** [May 12, 2014, 9:34am UTC](https://discuss.elastic.co/t/retrieve-mapping-of-an-index-using-pyes-library/17455/1 "2014-05-12T09:34:23Z")

</div>

Hello,

I need a quick help. I need to know how to get mapping of an index using  
pyes library. I know a CURL command to achieve the same but I need an API.  
Alternatively, if I can get some API to get index name for a given alias,  
that would also do. I found get\_alias(alias) but it is a deprecated in pyes  
0.19 version. Please help me.

Thanks,  
Nishidha

--  
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/1bcc324a-968d-4623-b2c3-46fe1bc5274b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1bcc324a-968d-4623-b2c3-46fe1bc5274b%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, 1:30am UTC](https://discuss.elastic.co/t/retrieve-mapping-of-an-index-using-pyes-library/17455/2 "2017-07-06T01:30:13Z")

</div>


