Sha256: 1447d46d6fc4a849fb102a29489f078d0862e5585619d160d656c79d5ca6926f

Contents?: true

Size: 933 Bytes

Versions: 11

Compression:

Stored size: 933 Bytes

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={})
          valid_params = [ :timeout ]

          method = 'GET'
          path   = Utils.__pathify Utils.__listify(arguments[:index]), '_aliases'

          params = Utils.__validate_and_extract_params arguments, valid_params
          body   = nil

          perform_request(method, path, params, body).body
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
elasticsearch-api-0.4.11 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-0.4.10 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-0.4.9 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-0.4.8 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-0.4.7 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-0.4.6 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-0.4.5 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-0.4.4 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-0.4.3 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-0.4.2 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-0.4.1 lib/elasticsearch/api/actions/indices/get_aliases.rb