From 44cd2f444c04dd575e0c3a05b1082c5c231ab29f Mon Sep 17 00:00:00 2001 From: Stuart Cam Date: Wed, 11 Dec 2019 13:23:00 +1100 Subject: [PATCH] Add the REST API specifications for SLM Status / Start / Stop endpoints. (#49759) Was originally missed in PR #47710 (cherry picked from commit 133b34c8355639ae0f699a86ffd9f37d19f73bca) --- .../rest-api-spec/api/slm.get_status.json | 19 +++++++++++++++++++ .../rest-api-spec/api/slm.start.json | 19 +++++++++++++++++++ .../resources/rest-api-spec/api/slm.stop.json | 19 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_status.json create mode 100644 x-pack/plugin/src/test/resources/rest-api-spec/api/slm.start.json create mode 100644 x-pack/plugin/src/test/resources/rest-api-spec/api/slm.stop.json diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_status.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_status.json new file mode 100644 index 00000000000..163ad5558c3 --- /dev/null +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_status.json @@ -0,0 +1,19 @@ +{ + "slm.get_status":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html" + }, + "stability":"stable", + "url":{ + "paths":[ + { + "path":"/_slm/status", + "methods":[ + "GET" + ] + } + ] + }, + "params":{} + } +} diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.start.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.start.json new file mode 100644 index 00000000000..21ae3d50978 --- /dev/null +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.start.json @@ -0,0 +1,19 @@ +{ + "slm.start":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html" + }, + "stability":"stable", + "url":{ + "paths":[ + { + "path":"/_slm/start", + "methods":[ + "POST" + ] + } + ] + }, + "params":{} + } +} diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.stop.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.stop.json new file mode 100644 index 00000000000..63b74ab9c2f --- /dev/null +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.stop.json @@ -0,0 +1,19 @@ +{ + "slm.stop":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html" + }, + "stability":"stable", + "url":{ + "paths":[ + { + "path":"/_slm/stop", + "methods":[ + "POST" + ] + } + ] + }, + "params":{} + } +}