# Is any way to filter ISM policies by index -pattern or policy\_id

**URL:** <https://forum.opensearch.org/t/is-any-way-to-filter-ism-policies-by-index-pattern-or-policy-id/14388>\
**Category:** Index Management\
**Created:** [May 18, 2023, 4:21am UTC](https://forum.opensearch.org/t/is-any-way-to-filter-ism-policies-by-index-pattern-or-policy-id/14388 "2023-05-18T04:21:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![n.yul](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@n.yul](https://forum.opensearch.org/u/n.yul)\
**Post date:** [May 18, 2023, 4:21am UTC](https://forum.opensearch.org/t/is-any-way-to-filter-ism-policies-by-index-pattern-or-policy-id/14388/1 "2023-05-18T04:21:19Z")

</div>

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

**Describe the issue** :  
Is any way to filter ISM policies by index -pattern or policy\_id

For example, 3 policies  
test1.policy\_1  
test1.policy\_2  
test2.policy\_1

maybe smth like  
`GET /_plugins/_ism/policies?policyID=test1.*`

How can I get only policies starting with test1.\*

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![Gsmitt](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gsmitt/32/1718_2.png) [@Gsmitt](https://forum.opensearch.org/u/Gsmitt)\
**Post date:** [May 18, 2023, 4:27am UTC](https://forum.opensearch.org/t/is-any-way-to-filter-ism-policies-by-index-pattern-or-policy-id/14388/2 "2023-05-18T04:27:49Z")

</div>

Hey @n.yul

Should be a search bar on top by State management Policy  
Example:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/a/ace0369b497586a348f54139fb506526e99a87c5.png)

---

<div class="post-metadata">

**Author:** ![n.yul](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@n.yul](https://forum.opensearch.org/u/n.yul)\
**Post date:** [May 18, 2023, 5:10am UTC](https://forum.opensearch.org/t/is-any-way-to-filter-ism-policies-by-index-pattern-or-policy-id/14388/3 "2023-05-18T05:10:55Z")

</div>

Thanks for the answer, maybe there is a way to do it through the API?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [July 17, 2023, 5:11am UTC](https://forum.opensearch.org/t/is-any-way-to-filter-ism-policies-by-index-pattern-or-policy-id/14388/4 "2023-07-17T05:11:09Z")

</div>

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