VSphereAutomation::Appliance::HealthApi

All URIs are relative to https://<vcenter>/rest

Method HTTP request Description
messages GET /appliance/health/item/messages Get health messages.

messages

ApplianceHealthMessagesResult messages(item)

Get health messages.

Example

# load the gem
require 'vsphere-automation-appliance'
# setup authorization
VSphereAutomation::Configuration.new.tap do |config|
  # Configure API key authorization: api_key
  config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
end

api_instance = VSphereAutomation::Appliance::HealthApi.new
item = 'item_example' # String | ID of the data item

begin
  #Get health messages.
  result = api_instance.messages(item)
  p result
rescue VSphereAutomation::ApiError => e
  puts "Exception when calling HealthApi->messages: #{e}"
end

Parameters

Name Type Description Notes
item String ID of the data item

Return type

ApplianceHealthMessagesResult

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json