Get Watcher index settings Generally available

GET /_watcher/settings

Get settings for the Watcher internal index (.watches). Only a subset of settings are shown, for example index.auto_expand_replicas and index.number_of_replicas.

Query parameters

  • The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

    Values are -1 or 0.

Responses

GET /_watcher/settings
resp = client.watcher.get_settings()
const response = await client.watcher.getSettings();
response = client.watcher.get_settings
$resp = $client->watcher()->getSettings();
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_watcher/settings"
Response examples (200)
A successful response with two index settings.
{
  "index": {
    "auto_expand_replicas": "0-4",
    "number_of_replicas": 0
  }
}