From 1276411cfdd8d9d21f26e83a9ddeeaf74d62995f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Mon, 27 Jan 2014 16:48:36 +0100 Subject: [PATCH] Added index_templates parameter to cluster.state --- elasticsearch/client/cluster.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elasticsearch/client/cluster.py b/elasticsearch/client/cluster.py index 4f87b952..8f98d371 100644 --- a/elasticsearch/client/cluster.py +++ b/elasticsearch/client/cluster.py @@ -38,7 +38,7 @@ class ClusterClient(NamespacedClient): params=params) return data - @query_params('local', 'master_timeout', 'flat_settings') + @query_params('index_templates', 'local', 'master_timeout', 'flat_settings') def state(self, metric=None, index=None, params=None): """ Get a comprehensive state information of the whole cluster. @@ -49,6 +49,8 @@ class ClusterClient(NamespacedClient): "nodes", "routing_table" :arg index: A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + :arg index_templates: A comma separated list to return specific index + templates when returning metadata. :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Specify timeout for connection to master :arg flat_settings: Return settings in flat format (default: false)