Sha256: 08d5e65db8e59bf4f1a357f95a038563a6f0d83a23f2326007f52ac17799cbec

Contents?: true

Size: 831 Bytes

Versions: 15

Compression:

Stored size: 831 Bytes

Contents

module Elasticsearch
  module API
    module Indices
      module Actions

        # Get a single index template.
        #
        # @example Get a template named _mytemplate_
        #
        #     client.indices.get_template name: 'mytemplate'
        #
        # @note Use the {Cluster::Actions#state} API to get a list of all templates.
        #
        # @option arguments [String] :name The name of the template (*Required*)
        #
        # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/
        #
        def get_template(arguments={})
          method = 'GET'
          path   = Utils.__pathify '_template', Utils.__escape(arguments[:name])
          params = {}
          body = nil

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
elasticsearch-api-1.0.1 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-1.0.0 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-0.4.11 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-0.4.10 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-0.4.9 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-1.0.0.rc2 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-1.0.0.rc1 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-0.4.8 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-0.4.7 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-0.4.6 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-0.4.5 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-0.4.4 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-0.4.3 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-0.4.2 lib/elasticsearch/api/actions/indices/get_template.rb
elasticsearch-api-0.4.1 lib/elasticsearch/api/actions/indices/get_template.rb