Sha256: cadc6f940a23f8a0835d1e6d36571e689039a9c7c344ba85379280195864eaab
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
module Elasticsearch module API module Indices module Actions # Get a list of all aliases, or aliases for a specific index. # # @example Get a list of all aliases # # client.indices.get_aliases # # @option arguments [List] :index A comma-separated list of index names to filter aliases # @option arguments [Time] :timeout Explicit timestamp for the document # # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/ # def get_aliases(arguments={}) method = 'GET' path = Utils.__pathify( Utils.__listify(arguments[:index]), '_aliases' ) params = arguments.select do |k,v| [ :timeout ].include?(k) end # Normalize Ruby 1.8 and Ruby 1.9 Hash#select behaviour params = Hash[params] unless params.is_a?(Hash) body = nil perform_request(method, path, params, body).body end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elasticsearch-api-0.4.0 | lib/elasticsearch/api/actions/indices/get_aliases.rb |
elasticsearch-api-0.0.2 | lib/elasticsearch/api/actions/indices/get_aliases.rb |