Get cluster-wide settings
- GET /_cluster/settings
By default, it returns only settings that have been explicitly defined.
- Cluster privileges:
monitor
Query Parameters
-
flat_settingsboolean · default: false If
true, returns settings in flat format.-
include_defaultsboolean · default: false If
true, also returns the values of all other cluster settings set in theelasticsearch.ymlfile on one of the nodes in your cluster, together with the default values of all other cluster settings on that node. The default value of each setting may depend on the values of other settings on that node. If the nodes in your cluster do not all have the same configuration then the values returned by this API may vary from invocation to invocation and may not reflect the values that Elasticsearch uses in all situations. Use theGET _nodes/settingsAPI to fetch the settings for each individual node in your cluster.-
master_timeoutstring Duration · default: 30s 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.
-
timeoutstring Duration · default: 30s Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Response
-
persistentmap string to objectrequired -
The settings that persist after the cluster restarts.
-
transientmap string to objectrequired -
The settings that do not persist after the cluster restarts.
-
defaultsmap string to object -
The default setting values.