mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
d4fcf23057
The possibility of filtering for index templates in the cluster state API had been introduced before there was a dedicated index templates API. This commit removes this support from the cluster state API, as it was not really clean, requiring you to specify the metadata and the index templates. Closes #4954
41 lines
1.3 KiB
JSON
41 lines
1.3 KiB
JSON
{
|
|
"cluster.state": {
|
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cluster-state.html",
|
|
"methods": ["GET"],
|
|
"url": {
|
|
"path": "/_cluster/state",
|
|
"paths": [
|
|
"/_cluster/state",
|
|
"/_cluster/state/{metric}",
|
|
"/_cluster/state/{metric}/{index}"
|
|
],
|
|
"parts": {
|
|
"index": {
|
|
"type" : "list",
|
|
"description" : "A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices"
|
|
},
|
|
"metric" : {
|
|
"type" : "list",
|
|
"options" : ["_all", "blocks", "metadata", "nodes", "routing_table", "master_node", "version"],
|
|
"description" : "Limit the information returned to the specified metrics"
|
|
}
|
|
},
|
|
"params": {
|
|
"local": {
|
|
"type": "boolean",
|
|
"description": "Return local information, do not retrieve the state from master node (default: false)"
|
|
},
|
|
"master_timeout": {
|
|
"type": "time",
|
|
"description": "Specify timeout for connection to master"
|
|
},
|
|
"flat_settings": {
|
|
"type": "boolean",
|
|
"description": "Return settings in flat format (default: false)"
|
|
}
|
|
}
|
|
},
|
|
"body": null
|
|
}
|
|
}
|