get_aliases

This commit is contained in:
Honza Král
2014-01-17 22:40:18 +01:00
parent 93446cc6c7
commit d8db6b52e7
+2 -1
View File
@@ -327,12 +327,13 @@ class IndicesClient(NamespacedClient):
return data
@query_params('timeout')
def get_aliases(self, index=None, params=None):
def get_aliases(self, index=None, name=None, params=None):
"""
Retrieve specified aliases
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
:arg index: A comma-separated list of index names to filter aliases
:arg name: A comma-separated list of alias names to filter
:arg timeout: Explicit operation timeout
"""
_, data = self.transport.perform_request('GET', _make_path(index, '_aliases'),