@@ -4,7 +4,7 @@ class CatClient(NamespacedClient):
4
4
@query_params ('h' , 'help' , 'local' , 'master_timeout' , 'v' )
5
5
def aliases (self , name = None , params = None ):
6
6
"""
7
-
7
+
8
8
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-alias.html>`_
9
9
10
10
:arg name: A comma-separated list of alias names to return
@@ -275,7 +275,7 @@ def fielddata(self, fields=None, params=None):
275
275
@query_params ('h' , 'help' , 'local' , 'master_timeout' , 'v' )
276
276
def plugins (self , params = None ):
277
277
"""
278
-
278
+
279
279
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-plugins.html>`_
280
280
281
281
:arg h: Comma-separated list of column names to display
@@ -307,3 +307,36 @@ def nodeattrs(self, params=None):
307
307
params = params )
308
308
return data
309
309
310
+ @query_params ('h' , 'help' , 'local' , 'master_timeout' , 'v' )
311
+ def repositories (self , params = None ):
312
+ """
313
+ `<http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-repositories.html>`_
314
+
315
+ :arg h: Comma-separated list of column names to display
316
+ :arg help: Return help information, default False
317
+ :arg local: Return local information, do not retrieve the state from
318
+ master node, default False
319
+ :arg master_timeout: Explicit operation timeout for connection to master
320
+ node
321
+ :arg v: Verbose mode. Display column headers, default False
322
+ """
323
+ _ , data = self .transport .perform_request ('GET' , '/_cat/repositories' ,
324
+ params = params )
325
+ return data
326
+
327
+ @query_params ('h' , 'help' , 'master_timeout' , 'v' )
328
+ def snapshots (self , repository = None , params = None ):
329
+ """
330
+ `<http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-snapshots.html>`_
331
+
332
+ :arg repository: Name of repository from which to fetch the snapshot
333
+ information
334
+ :arg h: Comma-separated list of column names to display
335
+ :arg help: Return help information, default False
336
+ :arg master_timeout: Explicit operation timeout for connection to master
337
+ node
338
+ :arg v: Verbose mode. Display column headers, default False
339
+ """
340
+ _ , data = self .transport .perform_request ('GET' , _make_path ('_cat' ,
341
+ 'snapshots' , repository ), params = params )
342
+ return data
0 commit comments