November 23, 2017

Create a new Virtual Guest.
createObject() enables the creation of computing instances on an account.
This method is a simplified alternative to interacting with the ordering
system directly.

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'

orderToRequest = {
    "datacenter": {
        "name": "dal09"
    "dedicatedAccountHostOnlyFlag": "true",
    "domain": "test.local",
    "hostname": "test",
    "hourlyBillingFlag": "true",
    "localDiskFlag": "false",
    "maxMemory": "1024",
    "networkComponents": [
          "maxSpeed": 1000
    "operatingSystemReferenceCode": "CENTOS_LATEST",
    "startCpus": "1"

client = SoftLayer.create_client_from_env(

To test the input parameters call the SoftLayer_Virtual_Guest::generateOrderTemplate method
when you are ready to create the server call the createObject method instead.

    newOrder = client['Virtual_Guest'].generateOrderTemplate(orderToRequest)

except SoftLayer.SoftLayerAPIError as e:
        pp('Unable to create a new Virtual Guest faultCode=%s, faultString=%s'
            % (e.faultCode, e.faultString))


We would love to hear it
Open an issue