Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

Latest commit

 

History

History
61 lines (42 loc) · 1.6 KB

File metadata and controls

61 lines (42 loc) · 1.6 KB

VSphereAutomation::VAPI::RestNavigationComponentApi

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

Method HTTP request Description
list GET /com/vmware/vapi/rest/navigation/component Gets list of all vAPI REST {@link Component}s.

list

VapiRestNavigationComponentListResult list(opts)

Gets list of all vAPI REST {@link Component}s.

Example

# load the gem
require 'vsphere-automation-vapi'
# 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::VAPI::RestNavigationComponentApi.new
opts = {
  base_url: 'base_url_example' # String | Base URL.
}

begin
  #Gets list of all vAPI REST {@link Component}s.
  result = api_instance.list(opts)
  p result
rescue VSphereAutomation::ApiError => e
  puts "Exception when calling RestNavigationComponentApi->list: #{e}"
end

Parameters

Name Type Description Notes
base_url String Base URL. [optional]

Return type

VapiRestNavigationComponentListResult

Authorization

api_key

HTTP request headers

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