From a8b24debb840d2574748d84ac7cc25aa6572603b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 28 Mar 2014 17:42:42 +0100 Subject: [PATCH] Added indices.recovery api --- elasticsearch/client/indices.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index 66558d15..7f9c179d 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -766,3 +766,24 @@ class IndicesClient(NamespacedClient): params=params) return data + @query_params('active_only', 'detailed', 'human') + def recovery(self, index=None, params=None): + """ + The indices recovery API provides insight into on-going shard + recoveries. Recovery status may be reported for specific indices, or + cluster-wide. + ``_ + + :arg index: A comma-separated list of index names; use `_all` or empty + string to perform the operation on all indices + :arg active_only: Display only those recoveries that are currently on- + going (default: 'false') + :arg detailed: Whether to display detailed information about shard + recovery (default: 'false') + :arg human: Whether to return time and byte values in human-readable + format. (default: 'false') + + """ + _, data = self.transport.perform_request('GET', _make_path(index, + '_recovery'), params=params) + return data