November 23, 2017


# Reloads current operating system configuration.
# This service has a confirmation protocol for proceeding with the reload. To proceed with the reload
# without confirmation, simply pass in 'FORCE' as the token parameter. To proceed with the reload with confirmation,
# simply call the service with no parameter. A token string will be returned by this service.
# The token will remain active for 10 minutes. Use this token as the parameter
# to confirm that a reload is to be performed for the server.
# As a precaution, we strongly recommend backing up all data before reloading the operating system.
# The reload will format the primary disk and will reconfigure the computing instance
# to the current specifications on record.
# If reloading from an image template, we recommend first getting the list
# of valid private block device template groups, by calling the getOperatingSystemReloadImages method.
# Important manual pages:
# License:
# Author: SoftLayer Technologies, Inc. <>

require 'rubygems'
require 'softlayer_api'
require 'awesome_print'

virtual_guest_id = 6032256

SL_API_USERNAME = 'set me'
SL_API_KEY = 'set me'

                               api_key: SL_API_KEY)

virtual_guest_service = client['SoftLayer_Virtual_Guest']


  result = virtual_guest_service.object_with_id(virtual_guest_id)
  ap result
rescue StandardError => e
  p 'Error when executing the script...'


If this article contains any error, or leaves any of your questions unanswered, please help us out by opening up a github issue.
Open an issue