src/vsphere_cpi/lib/nsxt/nsxt_client/api/troubleshooting_and_monitoring_api.rb
# Read status of all the transport nodes
# Read status of all the transport nodes
# @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] :included_fields Comma separated list of fields that should be included in query result
# @option opts [Integer] :page_size Maximum number of results to return in this page (server may return fewer)
# @option opts [BOOLEAN] :sort_ascending 
# @option opts [String] :sort_by Field by which records are sorted
# @option opts [String] :source Data source type.
# @option opts [String] :status Transport node
# @return [Array<(TransportNodeStatusListResult, Fixnum, Hash)>] TransportNodeStatusListResult data, response status code and response headers
Read status of all the transport nodes
Read status of all the transport nodes
Read status of all the transport nodes Read status of all the transport nodes
def list_transport_node_status_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: TroubleshootingAndMonitoringApi.list_transport_node_status ..."
      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 TroubleshootingAndMonitoringApi.list_transport_node_status, 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 TroubleshootingAndMonitoringApi.list_transport_node_status, must be greater than or equal to 0.'
      end
      if @api_client.config.client_side_validation && opts[:'source'] && !['realtime', 'cached'].include?(opts[:'source'])
        fail ArgumentError, 'invalid value for "source", must be one of realtime, cached'
      end
      if @api_client.config.client_side_validation && opts[:'status'] && !['UP', 'DOWN', 'DEGRADED', 'UNKNOWN'].include?(opts[:'status'])
        fail ArgumentError, 'invalid value for "status", must be one of UP, DOWN, DEGRADED, UNKNOWN'
      end
      local_var_path = "/transport-zones/transport-node-status"
      query_params = {}
      query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
      query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
      query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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?
      query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
      query_params[:'status'] = opts[:'status'] if !opts[:'status'].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 => 'TransportNodeStatusListResult')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: TroubleshootingAndMonitoringApi#list_transport_node_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_transport_node_status_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug "Calling API: TroubleshootingAndMonitoringApi.list_transport_node_status ..." 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 TroubleshootingAndMonitoringApi.list_transport_node_status, 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 TroubleshootingAndMonitoringApi.list_transport_node_status, must be greater than or equal to 0.' end if @api_client . config . client_side_validation && opts [ :' source ' ] && ! [ 'realtime' , 'cached' ] . include? ( opts [ :' source ' ] ) fail ArgumentError , 'invalid value for "source", must be one of realtime, cached' end if @api_client . config . client_side_validation && opts [ :' status ' ] && ! [ 'UP' , 'DOWN' , 'DEGRADED' , 'UNKNOWN' ] . include? ( opts [ :' status ' ] ) fail ArgumentError , 'invalid value for "status", must be one of UP, DOWN, DEGRADED, UNKNOWN' end local_var_path = "/transport-zones/transport-node-status" query_params = { } query_params [ :' cursor ' ] = opts [ :' cursor ' ] if ! opts [ :' cursor ' ] . nil? query_params [ :' included_fields ' ] = opts [ :' included_fields ' ] if ! opts [ :' included_fields ' ] . nil? query_params [ :' page_size ' ] = opts [ :' page_size ' ] if ! opts [ :' page_size ' ] . 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? query_params [ :' source ' ] = opts [ :' source ' ] if ! opts [ :' source ' ] . nil? query_params [ :' status ' ] = opts [ :' status ' ] if ! opts [ :' status ' ] . 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 => 'TransportNodeStatusListResult' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: TroubleshootingAndMonitoringApi#list_transport_node_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Read status of all the transport nodes
Read status of all the transport nodes
Read status of all the transport nodes Read status of all the transport nodes
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model)
TransportNodeStatusListResult data, response status code and response headers
TransportNodeStatusListResult data response status code and response headers
Array<(TransportNodeStatusListResult, Fixnum, Hash)>
opts
:status Transport node
: status Transport node
opts the optional parameters
opts the optional parameters