# Query to get storage tier and policy state name

**URL:** <https://forum.opensearch.org/t/query-to-get-storage-tier-and-policy-state-name/16470>\
**Category:** OpenSearch\
**Created:** [October 27, 2023, 11:21am UTC](https://forum.opensearch.org/t/query-to-get-storage-tier-and-policy-state-name/16470 "2023-10-27T11:21:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliverb](https://avatars.discourse-cdn.com/v4/letter/o/bb73d2/32.png) [@oliverb](https://forum.opensearch.org/u/oliverb)\
**Post date:** [October 27, 2023, 11:21am UTC](https://forum.opensearch.org/t/query-to-get-storage-tier-and-policy-state-name/16470/1 "2023-10-27T11:21:39Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser): 1.1

**Describe the issue** :

We have recently started using ISM to transition our indices to warm and cold storage.

I am trying to set up a query to show which storage tier and policy state are applied to indices. I cannot seem to find any documentation on how this can be achieved. Has anyone had any success with this before?

---

<div class="post-metadata">

**Author:** ![gaobinlong](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gaobinlong/32/5242_2.png) [@gaobinlong](https://forum.opensearch.org/u/gaobinlong)\
**Post date:** [October 30, 2023, 3:07am UTC](https://forum.opensearch.org/t/query-to-get-storage-tier-and-policy-state-name/16470/2 "2023-10-30T03:07:53Z")

</div>

You can use [explain index api](https://opensearch.org/docs/latest/im-plugin/ism/api/#explain-index) to get the current state of index.
