You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _im-plugin/ism/api.md
+186Lines changed: 186 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -653,6 +653,192 @@ GET _plugins/_ism/explain/index_1?show_policy=true
653
653
654
654
The `plugins.index_state_management.policy_id` setting is deprecated starting from ODFE version 1.13.0. We retain this field in the response API for consistency.
655
655
656
+
## Explain index with filtering
657
+
**Introduced 2.12**
658
+
{: .label .label-purple }
659
+
660
+
You can use the `POST` method with the Explain API to filter the results based on specific criteria. This allows you to query indexes based on their policy ID, current state, or action type.
661
+
662
+
#### Endpoints
663
+
664
+
```
665
+
POST _plugins/_ism/explain/<index>
666
+
```
667
+
668
+
#### Request body
669
+
670
+
The request body supports the following optional filters.
671
+
672
+
| Parameter | Type | Description |
673
+
|:----------|:-----|:------------|
674
+
|`policy_id`| String | Filter results to show only indexes managed by the specified policy ID. |
675
+
|`state`| String | Filter results to show only indexes currently in the specified state. |
676
+
|`action_type`| String | Filter results to show only indexes currently executing the specified action type. |
677
+
|`failed`| Boolean | Filter results to show only failed managed indexes. |
678
+
All filters are optional. If a filter is not specified, indexes with any value for that parameter will be included in the results. The API returns only indexes that match all specified filters.
679
+
680
+
#### Example request: Filter by policy ID
681
+
682
+
```json
683
+
POST _plugins/_ism/explain/log-*
684
+
{
685
+
"filter": {
686
+
"policy_id": "hot-warm-delete-policy"
687
+
}
688
+
}
689
+
```
690
+
{% include copy-curl.html %}
691
+
692
+
#### Example request: Filter by state and action type
0 commit comments