Update upgrade API endpoints (elastic/x-pack-elasticsearch#1724)
Switch from /_xpack/_upgrade to /_xpack/migration/assistance and /_xpack/migration/upgrade Original commit: elastic/x-pack-elasticsearch@b15217135c
This commit is contained in:
parent
0de8cf47b1
commit
d2bdd99308
|
@ -34,7 +34,7 @@ public class RestIndexUpgradeAction extends BaseRestHandler {
|
||||||
|
|
||||||
public RestIndexUpgradeAction(Settings settings, RestController controller, Set<String> extraParameters) {
|
public RestIndexUpgradeAction(Settings settings, RestController controller, Set<String> extraParameters) {
|
||||||
super(settings);
|
super(settings);
|
||||||
controller.registerHandler(RestRequest.Method.POST, "{index}/_xpack/_upgrade", this);
|
controller.registerHandler(RestRequest.Method.POST, "_xpack/migration/upgrade/{index}", this);
|
||||||
this.extraParameters = extraParameters;
|
this.extraParameters = extraParameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@ public class RestIndexUpgradeInfoAction extends BaseRestHandler {
|
||||||
|
|
||||||
public RestIndexUpgradeInfoAction(Settings settings, RestController controller, Set<String> extraParameters) {
|
public RestIndexUpgradeInfoAction(Settings settings, RestController controller, Set<String> extraParameters) {
|
||||||
super(settings);
|
super(settings);
|
||||||
controller.registerHandler(RestRequest.Method.GET, "/_xpack/_upgrade", this);
|
controller.registerHandler(RestRequest.Method.GET, "/_xpack/migration/assistance", this);
|
||||||
controller.registerHandler(RestRequest.Method.GET, "{index}/_xpack/_upgrade", this);
|
controller.registerHandler(RestRequest.Method.GET, "/_xpack/migration/assistance/{index}", this);
|
||||||
this.extraParameters = extraParameters;
|
this.extraParameters = extraParameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
"xpack.upgrade.info": {
|
"xpack.upgrade.info": {
|
||||||
"methods": [ "GET" ],
|
"methods": [ "GET" ],
|
||||||
"url": {
|
"url": {
|
||||||
"path": "/_xpack/_upgrade",
|
"path": "/_xpack/migration/assistance",
|
||||||
"paths": [
|
"paths": [
|
||||||
"/_xpack/_upgrade",
|
"/_xpack/migration/assistance",
|
||||||
"/{index}/_xpack/_upgrade"
|
"/_xpack/migration/assistance/{index}"
|
||||||
],
|
],
|
||||||
"parts": {
|
"parts": {
|
||||||
"index": {
|
"index": {
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
"xpack.upgrade": {
|
"xpack.upgrade": {
|
||||||
"methods": [ "POST" ],
|
"methods": [ "POST" ],
|
||||||
"url": {
|
"url": {
|
||||||
"path": "/{index}/_xpack/_upgrade",
|
"path": "/_xpack/migration/upgrade/{index}",
|
||||||
"paths": [
|
"paths": [
|
||||||
"/{index}/_xpack/_upgrade"
|
"/_xpack/migration/upgrade/{index}"
|
||||||
],
|
],
|
||||||
"parts": {
|
"parts": {
|
||||||
"index": {
|
"index": {
|
||||||
|
|
Loading…
Reference in New Issue