Sha256: a301c31330766f1f046842d3511a6720abdc75568f5a8c7c2ce5e00229577f5b

Contents?: true

Size: 1.23 KB

Versions: 69

Compression:

Stored size: 1.23 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 [List] :name A comma-separated list of alias names to filter
        # @option arguments [Time] :timeout Explicit timestamp for the document
        # @option arguments [Boolean] :local Return local information,
        #                                    do not retrieve the state from master node (default: false)
        #
        # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html
        #
        def get_aliases(arguments={})
          valid_params = [ :timeout, :local ]

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

          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

69 entries across 69 versions & 6 rubygems

Version Path
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/elasticsearch-api-5.0.4/lib/elasticsearch/api/actions/indices/get_aliases.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/elasticsearch-api-5.0.4/lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-5.0.4 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-2.0.2 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-5.0.3 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-5.0.2 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-5.0.1 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-2.0.1 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-1.1.2 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-1.1.1 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-5.0.0 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-5.0.0.pre lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-2.0.0 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-1.1.0 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-2.0.0.pre lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-1.1.pre lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-1.0.18 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-1.0.17 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-1.0.16 lib/elasticsearch/api/actions/indices/get_aliases.rb
elasticsearch-api-1.0.16.pre2 lib/elasticsearch/api/actions/indices/get_aliases.rb