Skip to content

Commit

Permalink
Revert "Update to plugins ISM API"
Browse files Browse the repository at this point in the history
This reverts commit 3fd61af.

Signed-off-by: Jürgen Walter <[email protected]>
  • Loading branch information
juergen-walter committed Sep 30, 2024
1 parent cc72c27 commit bebe21a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1829,7 +1829,8 @@ private JsonNode getIndexSettings(final String index) throws IOException {
}

private String getIndexPolicyId(final String index) throws IOException {
final Request request = new Request(HttpMethod.GET, "/_plugins/_ism/explain/" + index);
// TODO: replace with new _opensearch API
final Request request = new Request(HttpMethod.GET, "/_opendistro/_ism/explain/" + index);
final Response response = client.performRequest(request);
final String responseBody = EntityUtils.toString(response.getEntity());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
class IsmPolicyManagement implements IsmPolicyManagementStrategy {
private static final Logger LOG = LoggerFactory.getLogger(IsmPolicyManagement.class);

private static final String POLICY_MANAGEMENT_ENDPOINT = "/_plugins/_ism/policies/";
// TODO: replace with new _opensearch API
private static final String POLICY_MANAGEMENT_ENDPOINT = "/_opendistro/_ism/policies/";
public static final String DEFAULT_INDEX_SUFFIX = "-000001";
private static final String POLICY_FILE_ROOT_KEY = "policy";
private static final String POLICY_FILE_ISM_TEMPLATE_KEY = "ism_template";
Expand Down

0 comments on commit bebe21a

Please sign in to comment.