elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb
# Returns information about whether a particular component template exist
#
# @option arguments [String] :name The name of the template
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html
#
Returns information about whether a particular component template exist
Returns information about whether a particular component template exist
def exists_component_template(arguments = {})
          raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _name = arguments.delete(:name)
          method = Elasticsearch::API::HTTP_HEAD
          path   = "_component_template/#{Utils.__listify(_name)}"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def exists_component_template ( arguments = { } ) raise ArgumentError , "Required argument 'name' missing" unless arguments [ :name ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _name = arguments . delete ( :name ) method = Elasticsearch :: API :: HTTP_HEAD path = "_component_template/#{Utils.__listify(_name)}" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Returns information about whether a particular component template exist
Returns information about whether a particular component template exist
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None