Skip to content

Commit 1276411

Browse files
committed
Added index_templates parameter to cluster.state
1 parent 0abdded commit 1276411

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

elasticsearch/client/cluster.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def pending_tasks(self, params=None):
3838
params=params)
3939
return data
4040

41-
@query_params('local', 'master_timeout', 'flat_settings')
41+
@query_params('index_templates', 'local', 'master_timeout', 'flat_settings')
4242
def state(self, metric=None, index=None, params=None):
4343
"""
4444
Get a comprehensive state information of the whole cluster.
@@ -49,6 +49,8 @@ def state(self, metric=None, index=None, params=None):
4949
"nodes", "routing_table"
5050
:arg index: A comma-separated list of index names; use `_all` or empty
5151
string to perform the operation on all indices
52+
:arg index_templates: A comma separated list to return specific index
53+
templates when returning metadata.
5254
:arg local: Return local information, do not retrieve the state from master node (default: false)
5355
:arg master_timeout: Specify timeout for connection to master
5456
:arg flat_settings: Return settings in flat format (default: false)

0 commit comments

Comments
 (0)