Returns a comprehensive information about the state of the cluster Added in 1.3.0
Path parameters
-
Limit the information returned to the specified metrics
Query parameters
-
allow_no_indices boolean
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes
_all
string or when no indices have been specified) -
expand_wildcards string | array[string]
Whether to expand wildcard expression to concrete indices that are open, closed or both.
-
flat_settings boolean
Return settings in flat format (default: false)
-
local boolean
Return local information, do not retrieve the state from master node (default: false)
-
master_timeout string
Specify timeout for connection to master
-
wait_for_metadata_version number
Wait for the metadata version to be equal or greater than the specified metadata version
-
wait_for_timeout string
The maximum time to wait for wait_for_metadata_version before timing out
GET /_cluster/state/{metric}
curl \
-X GET http://api.example.com/_cluster/state/{metric}
Response examples (200)
{}