src/vsphere_cpi/lib/nsxt/nsxt_client/api/nsx_component_administration_api.rb
# Restart or shutdown node
# Restarts or shuts down the NSX Manager appliance.
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
Restart or shutdown node
Restarts or shuts down the NSX Manager appliance.
Restart or shutdown node Restarts or shuts down the NSX Manager appliance .
def restart_or_shutdown_node_shutdown_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: NsxComponentAdministrationApi.restart_or_shutdown_node_shutdown ..."
      end
      local_var_path = "/node?action=shutdown"
      query_params = {}
      header_params = {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = {}
      post_body = nil
      auth_names = ['BasicAuth']
      data, status_code, headers = @api_client.call_api(:POST, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: NsxComponentAdministrationApi#restart_or_shutdown_node_shutdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def restart_or_shutdown_node_shutdown_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug "Calling API: NsxComponentAdministrationApi.restart_or_shutdown_node_shutdown ..." end local_var_path = "/node?action=shutdown" query_params = { } header_params = { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = { } post_body = nil auth_names = [ 'BasicAuth' ] data , status_code , headers = @api_client . call_api ( :POST , local_var_path , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names ) if @api_client . config . debugging @api_client . config . logger . debug "API called: NsxComponentAdministrationApi#restart_or_shutdown_node_shutdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Restart or shutdown node
Restarts or shuts down the NSX Manager appliance.
Restart or shutdown node Restarts or shuts down the NSX Manager appliance .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model)
nil, response status code and response headers
nil response status code and response headers
Array<(nil, Fixnum, Hash)>
opts
opts the optional parameters
opts the optional parameters