src/vsphere_cpi/lib/nsxt/nsxt_client/api/fabric_api.rb
# Return the List of Nodes
# Returns information about all fabric nodes (hosts and edges).
# @param [Hash] opts the optional parameters
# @option opts [String] :cursor Opaque cursor to be used for getting next page of records (supplied by current result page)
# @option opts [String] :discovered_node_id Id of the discovered node which was converted to create this node
# @option opts [String] :display_name HostNode display name
# @option opts [String] :external_id HostNode external id
# @option opts [String] :hardware_id Hardware Id of the host
# @option opts [String] :hypervisor_os_type HostNode&#39;s Hypervisor type, for example ESXi, RHEL KVM or UBUNTU KVM.
# @option opts [String] :included_fields Comma separated list of fields that should be included in query result
# @option opts [String] :ip_address Management IP address of the node
# @option opts [Integer] :page_size Maximum number of results to return in this page (server may return fewer)
# @option opts [String] :resource_type Node type from &#39;HostNode&#39;, &#39;EdgeNode&#39;, &#39;PublicCloudGatewayNode&#39;
# @option opts [BOOLEAN] :sort_ascending 
# @option opts [String] :sort_by Field by which records are sorted
# @return [Array<(NodeListResult, Fixnum, Hash)>] NodeListResult data, response status code and response headers
Return the List of Nodes
Returns information about all fabric nodes (hosts and edges).
Return the List of Nodes Returns information about all fabric nodes ( hosts and edges ) .
def list_nodes_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: FabricApi.list_nodes ..."
      end
      if @api_client.config.client_side_validation && opts[:'hypervisor_os_type'] && !['ESXI', 'RHELKVM', 'UBUNTUKVM', 'HYPERV', 'RHELCONTAINER', 'RHELSERVER', 'UBUNTUSERVER', 'CENTOSSERVER', 'CENTOSKVM'].include?(opts[:'hypervisor_os_type'])
        fail ArgumentError, 'invalid value for "hypervisor_os_type", must be one of ESXI, RHELKVM, UBUNTUKVM, HYPERV, RHELCONTAINER, RHELSERVER, UBUNTUSERVER, CENTOSSERVER, CENTOSKVM'
      end
      if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
        fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FabricApi.list_nodes, must be smaller than or equal to 1000.'
      end
      if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
        fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FabricApi.list_nodes, must be greater than or equal to 0.'
      end
      if @api_client.config.client_side_validation && opts[:'resource_type'] && !['HostNode', 'EdgeNode', 'PublicCloudGatewayNode'].include?(opts[:'resource_type'])
        fail ArgumentError, 'invalid value for "resource_type", must be one of HostNode, EdgeNode, PublicCloudGatewayNode'
      end
      local_var_path = "/fabric/nodes"
      query_params = {}
      query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
      query_params[:'discovered_node_id'] = opts[:'discovered_node_id'] if !opts[:'discovered_node_id'].nil?
      query_params[:'display_name'] = opts[:'display_name'] if !opts[:'display_name'].nil?
      query_params[:'external_id'] = opts[:'external_id'] if !opts[:'external_id'].nil?
      query_params[:'hardware_id'] = opts[:'hardware_id'] if !opts[:'hardware_id'].nil?
      query_params[:'hypervisor_os_type'] = opts[:'hypervisor_os_type'] if !opts[:'hypervisor_os_type'].nil?
      query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
      query_params[:'ip_address'] = opts[:'ip_address'] if !opts[:'ip_address'].nil?
      query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
      query_params[:'resource_type'] = opts[:'resource_type'] if !opts[:'resource_type'].nil?
      query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
      query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
      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(:GET, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => 'NodeListResult')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: FabricApi#list_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_nodes_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug "Calling API: FabricApi.list_nodes ..." end if @api_client . config . client_side_validation && opts [ :' hypervisor_os_type ' ] && ! [ 'ESXI' , 'RHELKVM' , 'UBUNTUKVM' , 'HYPERV' , 'RHELCONTAINER' , 'RHELSERVER' , 'UBUNTUSERVER' , 'CENTOSSERVER' , 'CENTOSKVM' ] . include? ( opts [ :' hypervisor_os_type ' ] ) fail ArgumentError , 'invalid value for "hypervisor_os_type", must be one of ESXI, RHELKVM, UBUNTUKVM, HYPERV, RHELCONTAINER, RHELSERVER, UBUNTUSERVER, CENTOSSERVER, CENTOSKVM' end if @api_client . config . client_side_validation && ! opts [ :' page_size ' ] . nil? && opts [ :' page_size ' ] > 1000 fail ArgumentError , 'invalid value for "opts[:"page_size"]" when calling FabricApi.list_nodes, must be smaller than or equal to 1000.' end if @api_client . config . client_side_validation && ! opts [ :' page_size ' ] . nil? && opts [ :' page_size ' ] < 0 fail ArgumentError , 'invalid value for "opts[:"page_size"]" when calling FabricApi.list_nodes, must be greater than or equal to 0.' end if @api_client . config . client_side_validation && opts [ :' resource_type ' ] && ! [ 'HostNode' , 'EdgeNode' , 'PublicCloudGatewayNode' ] . include? ( opts [ :' resource_type ' ] ) fail ArgumentError , 'invalid value for "resource_type", must be one of HostNode, EdgeNode, PublicCloudGatewayNode' end local_var_path = "/fabric/nodes" query_params = { } query_params [ :' cursor ' ] = opts [ :' cursor ' ] if ! opts [ :' cursor ' ] . nil? query_params [ :' discovered_node_id ' ] = opts [ :' discovered_node_id ' ] if ! opts [ :' discovered_node_id ' ] . nil? query_params [ :' display_name ' ] = opts [ :' display_name ' ] if ! opts [ :' display_name ' ] . nil? query_params [ :' external_id ' ] = opts [ :' external_id ' ] if ! opts [ :' external_id ' ] . nil? query_params [ :' hardware_id ' ] = opts [ :' hardware_id ' ] if ! opts [ :' hardware_id ' ] . nil? query_params [ :' hypervisor_os_type ' ] = opts [ :' hypervisor_os_type ' ] if ! opts [ :' hypervisor_os_type ' ] . nil? query_params [ :' included_fields ' ] = opts [ :' included_fields ' ] if ! opts [ :' included_fields ' ] . nil? query_params [ :' ip_address ' ] = opts [ :' ip_address ' ] if ! opts [ :' ip_address ' ] . nil? query_params [ :' page_size ' ] = opts [ :' page_size ' ] if ! opts [ :' page_size ' ] . nil? query_params [ :' resource_type ' ] = opts [ :' resource_type ' ] if ! opts [ :' resource_type ' ] . nil? query_params [ :' sort_ascending ' ] = opts [ :' sort_ascending ' ] if ! opts [ :' sort_ascending ' ] . nil? query_params [ :' sort_by ' ] = opts [ :' sort_by ' ] if ! opts [ :' sort_by ' ] . nil? 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 ( :GET , local_var_path , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => 'NodeListResult' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: FabricApi#list_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Return the List of Nodes
Returns information about all fabric nodes (hosts and edges).
Return the List of Nodes Returns information about all fabric nodes ( hosts and edges ) .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model)
NodeListResult data, response status code and response headers
NodeListResult data response status code and response headers
Array<(NodeListResult, Fixnum, Hash)>
opts
:sort_by Field by which records are sorted
: sort_by Field by which records are sorted
opts the optional parameters
opts the optional parameters