Skip to content

Commit

Permalink
Fix ISM error prevention setting key is not correct (opensearch-proje…
Browse files Browse the repository at this point in the history
…ct#7777)

Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: [email protected] <[email protected]>
  • Loading branch information
gaobinlong authored and leanneeliatra committed Jul 24, 2024
1 parent 8870b16 commit c7c2cc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions _im-plugin/ism/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,13 +553,13 @@ Introduced 2.4

ISM allows you to run an action automatically. However, running an action can fail for a variety of reasons. You can use error prevention validation to test an action in order to rule out failures.

To enable error prevention validation, set the `plugins.index_state_management.validation_service.enabled` setting to `true`:
To enable error prevention validation, set the `plugins.index_state_management.action_validation.enabled` setting to `true`:

```bash
PUT _cluster/settings
{
"persistent":{
"plugins.index_state_management.validation_action.enabled": true
"plugins.index_state_management.action_validation.enabled": true
}
}
```
Expand Down Expand Up @@ -692,4 +692,4 @@ GET _plugins/_ism/explain/test-000001
},
"total_managed_indices" : 1
}
```
```
4 changes: 2 additions & 2 deletions _im-plugin/ism/error-prevention/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ The ISM Error Prevention API allows you to enable Index State Management (ISM) e

## Enable error prevention validation

You can configure error prevention validation by setting the `plugins.index_state_management.validation_service.enabled` parameter.
You can configure error prevention validation by setting the `plugins.index_state_management.action_validation.enabled` parameter.

#### Example request

```bash
PUT _cluster/settings
{
"persistent":{
"plugins.index_state_management.validation_action.enabled": true
"plugins.index_state_management.action_validation.enabled": true
}
}
```
Expand Down

0 comments on commit c7c2cc7

Please sign in to comment.