elasticsearch-api/lib/elasticsearch/api/actions/shutdown/put_node.rb
def put_node(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'node_id' missing" unless arguments[:node_id]

          headers = arguments.delete(:headers) || {}

          body = arguments.delete(:body)

          arguments = arguments.clone

          _node_id = arguments.delete(:node_id)

          method = Elasticsearch::API::HTTP_PUT
          path   = "_nodes/#{Utils.__listify(_node_id)}/shutdown"
          params = {}

          perform_request(method, path, params, body, headers).body
        end
# Adds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
#
# @option arguments [String] :node_id The node id of node to be shut down
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The shutdown type definition to register (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current
#
Adds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
Adds a node to be shut down . Designed for indirect use by ECE / ESS and ECK . Direct use is not supported .
def put_node(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'node_id' missing" unless arguments[:node_id]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _node_id = arguments.delete(:node_id)
          method = Elasticsearch::API::HTTP_PUT
          path   = "_nodes/#{Utils.__listify(_node_id)}/shutdown"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def put_node ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'node_id' missing" unless arguments [ :node_id ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _node_id = arguments . delete ( :node_id ) method = Elasticsearch :: API :: HTTP_PUT path = "_nodes/#{Utils.__listify(_node_id)}/shutdown" params = { } perform_request ( method , path , params , body , headers ) . body end
Adds a node to be shut down.
Adds a node to be shut down .
arguments
:body The shutdown type definition to register (*Required*)
: body The shutdown type definition to register ( * Required * )
see
None