From 71d6bc3694c34a6c8606226b6fafd63e1924e420 Mon Sep 17 00:00:00 2001 From: Marin Bek Date: Fri, 9 Sep 2016 13:22:47 +0200 Subject: [PATCH] get aliases --- goes.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/goes.go b/goes.go index 5f5399e..684c024 100644 --- a/goes.go +++ b/goes.go @@ -629,3 +629,15 @@ func (c *Connection) OpenIndex(name string) (*Response, error) { return r.Run() } + +func (c *Connection) GetAliases(indexes []string) (*Response, error) { + + r := Request{ + Conn: c, + IndexList: indexes, + method: "GET", + api: "_alias/", + } + + return r.Run() +}