November 23, 2017
Get the host IDS for the servers in the account.

Important manual pages:

Author: SoftLayer Technologies, Inc. <>

import SoftLayer
import json

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

client = SoftLayer.Client(username=USERNAME, api_key=API_KEY)
accountService = client['SoftLayer_Account']

objectMask = "mask[hostIpsSoftwareComponent, operatingSystem]"

    response = accountService.getHardware(mask=objectMask)
    print(json.dumps(response, sort_keys=True, indent=2, separators=(',', ': ')))
except SoftLayer.SoftLayerAPIError as e:
    print("Unable to get the servers.. faultCode=%s, faultString=%s" % (e.faultCode, e.faultString))

Note: currently the hostIpsSoftwareComponent is not
visible via REST customer needs to use a SOAP request.

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:ns1="" xmlns:xsd="" xmlns:SOAP-ENC="" xmlns="" SOAP-ENV:encodingStyle="">
    <authenticate xsi:type="ns1:authenticate">
      <username xsi:type="xsd:string">username</username>
      <apiKey xsi:type="xsd:string">token</apiKey>


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