November 23, 2017
Get the available backend routers to order a dedicated host.

Important manual pages:

Author: SoftLayer Technologies, Inc. <>

import SoftLayer
import json

# API credentials
USERNAME = 'set me'
API_KEY = 'set me'

client = SoftLayer.Client(username=USERNAME, api_key=API_KEY)
dedicatedHostService = client['SoftLayer_Virtual_DedicatedHost']

# Skeleton of the dedicated host to specify datacenter and configuration sizes
templateDedicatedHost = {
    "cpuCount": 56,
    "diskCapacity": 1200,
    "memoryCapacity": 242,
    "datacenter": {
        "id": 814994

    response = dedicatedHostService.getAvailableRouters(templateDedicatedHost)
    print(json.dumps(response, sort_keys=True, indent=2, separators=(',', ': ')))
except SoftLayer.SoftLayerAPIError as e:
    print("Unable to get the backend routers. faultCode=%s, faultString=%s" % (e.faultCode, e.faultString))


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