@@ -90,7 +90,8 @@ def help(self, params=None):
9090 """
9191 return self .transport .perform_request ('GET' , '/_cat' , params = params )
9292
93- @query_params ('bytes' , 'h' , 'help' , 'local' , 'master_timeout' , 'pri' , 'v' )
93+ @query_params ('bytes' , 'format' , 'h' , 'health' , 'help' , 'local' ,
94+ 'master_timeout' , 'pri' , 'v' )
9495 def indices (self , index = None , params = None ):
9596 """
9697 The indices command provides a cross-section of each index.
@@ -101,6 +102,9 @@ def indices(self, index=None, params=None):
101102 :arg bytes: The unit in which to display byte values, valid choices are:
102103 'b', 'k', 'm', 'g'
103104 :arg h: Comma-separated list of column names to display
105+ :arg health: A health status ("green", "yellow", or "red" to filter only
106+ indices matching the specified health status, default None, valid
107+ choices are: 'green', 'yellow', 'red'
104108 :arg help: Return help information, default False
105109 :arg local: Return local information, do not retrieve the state from
106110 master node (default: false)
@@ -312,7 +316,7 @@ def repositories(self, params=None):
312316 params = params )
313317
314318 @query_params ('h' , 'help' , 'ignore_unavailable' , 'master_timeout' , 'v' )
315- def snapshots (self , repository , params = None ):
319+ def snapshots (self , repository = None , params = None ):
316320 """
317321 `<http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-snapshots.html>`_
318322
@@ -326,8 +330,6 @@ def snapshots(self, repository, params=None):
326330 node
327331 :arg v: Verbose mode. Display column headers, default False
328332 """
329- if repository in SKIP_IN_PATH :
330- raise ValueError ("Empty value passed for a required argument 'repository'." )
331333 return self .transport .perform_request ('GET' , _make_path ('_cat' ,
332334 'snapshots' , repository ), params = params )
333335
0 commit comments