Start watch service API

Start watch service API

New API reference

For the most up-to-date API details, refer to Watcher APIs.

Starts the Watcher service if it is not already running.

Request

POST _watcher/_start

Prerequisites

  • You must have manage_watcher cluster privileges to use this API. For more information, see Security privileges.

Examples

  1. resp = client.watcher.start()
  2. print(resp)
  1. response = client.watcher.start
  2. puts response
  1. const response = await client.watcher.start();
  2. console.log(response);
  1. POST _watcher/_start

Watcher returns the following response if the request is successful:

  1. {
  2. "acknowledged": true
  3. }