Sha256: 63d1aa8294eb0cbdeaa8eb572709c559f1533d36830c0970006307df5fbb6448
Contents?: true
Size: 891 Bytes
Versions: 2
Compression:
Stored size: 891 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={}) raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] method = 'GET' path = "_template/#{arguments[:name]}" params = {} 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_template.rb |
elasticsearch-api-0.0.2 | lib/elasticsearch/api/actions/indices/get_template.rb |