Get Watcher index settings

Get Watcher index settings

New API reference

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

This API allows a user to retrieve the user-configurable settings for the Watcher internal index (.watches). Only a subset of the index settings—those that are user-configurable—will be shown. This includes:

  • index.auto_expand_replicas
  • index.number_of_replicas

An example of retrieving the Watcher settings:

  1. resp = client.perform_request(
  2. "GET",
  3. "/_watcher/settings",
  4. )
  5. print(resp)
  1. response = client.watcher.get_settings
  2. puts response
  1. const response = await client.transport.request({
  2. method: "GET",
  3. path: "/_watcher/settings",
  4. });
  5. console.log(response);
  1. GET /_watcher/settings

The configurable settings can be modified using the Update Watcher index settings API.