# How to create index-pattern for a specific tenant in Elasticsearch Kibana using API?

**URL:** <https://discuss.elastic.co/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/290087>\
**Category:** Kibana\
**Created:** [November 24, 2021, 2:54pm UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/290087 "2021-11-24T14:54:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![triptesh1212](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/triptesh1212/32/97534_2.png) [@triptesh1212](https://discuss.elastic.co/u/triptesh1212)\
**Post date:** [November 24, 2021, 2:54pm UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/290087/1 "2021-11-24T14:54:37Z")

</div>

Hi I am following this [API - Open Distro for Elasticsearch Documentation](https://opendistro.github.io/for-elasticsearch-docs/docs/security/access-control/api/#create-tenant) documentation to create tenant at Elasticsearch.

We can also create an index using index API [Create index API | Elasticsearch Guide [7.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html)

Is there any way to crate index-pattern with an index for a specific tenant using any API? (We can do the same manually from Elasticsearch Kibana UI)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 24, 2021, 8:55pm UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/290087/2 "2021-11-24T20:55:15Z")

</div>

Welcome to our community! 😃

opendistro is not Elasticsearch, so please clarify which you are using 🙂

---

<div class="post-metadata">

**Author:** ![triptesh1212](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/triptesh1212/32/97534_2.png) [@triptesh1212](https://discuss.elastic.co/u/triptesh1212)\
**Post date:** [November 25, 2021, 3:38am UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/290087/3 "2021-11-25T03:38:23Z")

</div>

Hi, We are using opendistro.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 25, 2021, 4:27am UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/290087/4 "2021-11-25T04:27:16Z")

</div>

You will need to ask aws then sorry, as they don't have Spaces in Kibana.

---

<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 23, 2021, 4:28am UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/290087/5 "2021-12-23T04:28:05Z")

</div>

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