VSphereAutomation::Appliance::UpdateStagedApi

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

Method HTTP request Description
delete DELETE /appliance/update/staged Deletes the staged update
get GET /appliance/update/staged Gets the current status of the staged update

delete

delete

Deletes the staged update

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::UpdateStagedApi.new

begin
  #Deletes the staged update
  api_instance.delete
rescue VSphereAutomation::ApiError => e
  puts "Exception when calling UpdateStagedApi->delete: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

nil (empty response body)

Authorization

api_key

HTTP request headers

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

get

ApplianceUpdateStagedResult get

Gets the current status of the staged update

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::UpdateStagedApi.new

begin
  #Gets the current status of the staged update
  result = api_instance.get
  p result
rescue VSphereAutomation::ApiError => e
  puts "Exception when calling UpdateStagedApi->get: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

ApplianceUpdateStagedResult

Authorization

api_key

HTTP request headers

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