Get cluster-wide settings
By default, it returns only settings that have been explicitly defined.
Query parameters
-
flat_settings boolean
If
true
, returns settings in flat format. -
include_defaults boolean
If
true
, returns default cluster settings from the local node. -
master_timeout string
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.
-
timeout string
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
GET
/_cluster/settings
curl \
-X GET http://api.example.com/_cluster/settings
Response examples (200)
{
"persistent": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"transient": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"defaults": {
"additionalProperty1": {},
"additionalProperty2": {}
}
}