# Retrieve stored index-patterns

**URL:** <https://discuss.elastic.co/t/retrieve-stored-index-patterns/107390>\
**Category:** Kibana\
**Created:** [November 13, 2017, 12:54pm UTC](https://discuss.elastic.co/t/retrieve-stored-index-patterns/107390 "2017-11-13T12:54:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![havidarou](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@havidarou](https://discuss.elastic.co/u/havidarou)\
**Post date:** [November 13, 2017, 12:54pm UTC](https://discuss.elastic.co/t/retrieve-stored-index-patterns/107390/1 "2017-11-13T12:54:54Z")

</div>

Hi,

I'm developing an app plugin and I need to retrieve the stored index-patterns, the same way that a visualization object stores them.

How do I go about this?

Regards.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [November 13, 2017, 3:51pm UTC](https://discuss.elastic.co/t/retrieve-stored-index-patterns/107390/2 "2017-11-13T15:51:54Z")

</div>

Hey @havidarou, the Index Patterns themselves are serialized into a document and stored in the `.kibana` index. Kibana has it's own internal clients for interacting with saved objects; however, they've been changing a lot recently and aren't a documented/supported API and they might/will change in the future. However, they're becoming more stable and I'd recommend starting to look through the code [here](https://github.com/elastic/kibana/blob/master/src/core_plugins/kibana/public/management/sections/indices/index.js#L14) to see how we're retrieving all the index patterns.

---

<div class="post-metadata">

**Author:** ![havidarou](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@havidarou](https://discuss.elastic.co/u/havidarou)\
**Post date:** [November 13, 2017, 4:10pm UTC](https://discuss.elastic.co/t/retrieve-stored-index-patterns/107390/3 "2017-11-13T16:10:40Z")

</div>

Hi @Brandon_Kobel

thanks for your reply 😃 .

I know, about the .kibana, saved objects and the code changing a lot, thanks for pointing me in some direction!

Would be nice to have a more stable API in the future.

Regards.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [November 13, 2017, 4:13pm UTC](https://discuss.elastic.co/t/retrieve-stored-index-patterns/107390/4 "2017-11-13T16:13:56Z")

</div>

@havidarou agreed, and it's something that we're working on internally. We try to note breaking changes for api users in our release notes, but the time being it's safest to test your plugin against the new versions to ensure everything works correctly.

---

<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:** [December 11, 2017, 4:14pm UTC](https://discuss.elastic.co/t/retrieve-stored-index-patterns/107390/5 "2017-12-11T16:14:04Z")

</div>

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