src/vsphere_cpi/lib/nsxt/nsxt_client/api/nsx_component_administration_api.rb
# Read Cluster Status
# Returns status information for the NSX cluster control role and management role. 
# @param [Hash] opts the optional parameters
# @option opts [String] :source Data source type.
# @return [Array<(ClusterStatus, Fixnum, Hash)>] ClusterStatus data, response status code and response headers
Read Cluster Status
Returns status information for the NSX cluster control role and management role.
Read Cluster Status Returns status information for the NSX cluster control role and management role .
def read_cluster_status_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: NsxComponentAdministrationApi.read_cluster_status ..."
      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
      local_var_path = "/cluster/status"
      query_params = {}
      query_params[:'source'] = opts[:'source'] if !opts[:'source'].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 => 'ClusterStatus')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: NsxComponentAdministrationApi#read_cluster_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def read_cluster_status_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug "Calling API: NsxComponentAdministrationApi.read_cluster_status ..." 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 local_var_path = "/cluster/status" query_params = { } query_params [ :' source ' ] = opts [ :' source ' ] if ! opts [ :' source ' ] . 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 => 'ClusterStatus' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: NsxComponentAdministrationApi#read_cluster_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Read Cluster Status
Returns status information for the NSX cluster control role and management role.
Read Cluster Status Returns status information for the NSX cluster control role and management role .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model)
ClusterStatus data, response status code and response headers
ClusterStatus data response status code and response headers
Array<(ClusterStatus, Fixnum, Hash)>
opts
:source Data source type.
: source Data source type .
opts the optional parameters
opts the optional parameters