From 54ba2afea1fde56e3e79e6690d797363d449394b Mon Sep 17 00:00:00 2001 From: Tomas Della Vedova Date: Thu, 1 Aug 2019 17:22:59 +0200 Subject: [PATCH] Updated slm API spec parameters and URL (#44797) --- .../resources/rest-api-spec/api/slm.delete_lifecycle.json | 4 ++-- .../resources/rest-api-spec/api/slm.execute_lifecycle.json | 2 +- .../test/resources/rest-api-spec/api/slm.get_lifecycle.json | 2 +- .../test/resources/rest-api-spec/api/slm.put_lifecycle.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.delete_lifecycle.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.delete_lifecycle.json index f586351bbf59d..2c9c1edcda6ba 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.delete_lifecycle.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.delete_lifecycle.json @@ -1,13 +1,13 @@ { "slm.delete_lifecycle": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete.html", "stability": "stable", "methods": [ "DELETE" ], "url": { "path": "/_slm/policy/{policy_id}", "paths": ["/_slm/policy/{policy_id}"], "parts": { - "policy": { + "policy_id": { "type" : "string", "description" : "The id of the snapshot lifecycle policy to remove" } diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.execute_lifecycle.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.execute_lifecycle.json index 82b6d9b52d856..ecfecb7a073cf 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.execute_lifecycle.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.execute_lifecycle.json @@ -1,6 +1,6 @@ { "slm.execute_lifecycle": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute.html", "stability": "stable", "methods": [ "PUT" ], "url": { diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_lifecycle.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_lifecycle.json index 2f588aff23527..e83759b19be44 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_lifecycle.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_lifecycle.json @@ -1,6 +1,6 @@ { "slm.get_lifecycle": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get.html", "stability": "stable", "methods": [ "GET" ], "url": { diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.put_lifecycle.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.put_lifecycle.json index 3f88ae4a836b9..704b80da927b4 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.put_lifecycle.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.put_lifecycle.json @@ -1,6 +1,6 @@ { "slm.put_lifecycle": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put.html", "stability": "stable", "methods": [ "PUT" ], "url": {