Browse Source

[ILM] fix ilm.remove_policy rest-spec (#36165)

The rest interface for remove-policy-from-index API does not support
`_ilm/remove`, it requires that an `{index}` pattern be defined in
the URL path. This fixes the rest-api-spec to reflect the implementation
Tal Levy 6 years ago
parent
commit
fdec331b13

+ 1 - 1
x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.remove_policy.json

@@ -4,7 +4,7 @@
     "methods": [ "POST" ],
     "url": {
       "path": "/{index}/_ilm/remove",
-      "paths": ["/{index}/_ilm/remove", "/_ilm/remove"],
+      "paths": ["/{index}/_ilm/remove"],
       "parts": {
         "index": {
           "type" : "string",