November 23, 2017

Get list of prices to upgrade VSI.

The script retrieves the list of items to upgrade an arbitrary VSI.
for more information see below:

Important manual pages:

Author: SoftLayer Technologies, Inc. <>

import SoftLayer

# For nice debug output:
from pprint import pprint as pp

# Your SoftLayer API username and key.
API_USERNAME = 'set me'

# Generate one at
API_KEY = 'set me'

virtualGuestID = 35747489

# Declare the API client
client = SoftLayer.create_client_from_env(username=API_USERNAME, api_key=API_KEY)
virtualGuestService = client['SoftLayer_Virtual_Guest']

    result = virtualGuestService.getUpgradeItemPrices(True, id=virtualGuestID)
except SoftLayer.SoftLayerAPIError as e:
    If there was an error returned from the SoftLayer API then bomb out with the
    error message.
    print("Unable to list the prices to upgrade. "
          % (e.faultCode, e.faultString))


We would love to hear it
Open an issue