November 23, 2017
List customers.

The script retrieves all the customers in a brand account.
It displays the same result like in

Important manual pages

Author: SoftLayer Technologies, Inc. <>

import SoftLayer.API
import json

USERNAME = 'set me'
API_KEY = 'set me'

brandId = 4

client = SoftLayer.create_client_from_env(username=USERNAME, api_key=API_KEY)

brandService = client['SoftLayer_Brand']
objectMask = "mask[accountStatus[name], masterUser[username], hardwareCount, virtualGuestCount, userCount, openTicketCount]"

    result = brandService.getOwnedAccounts(id=brandId, mask=objectMask)
    print(json.dumps(result, sort_keys=True, indent=2, separators=(',', ': ')))
except SoftLayer.SoftLayerAPIError as e:
    print("Unable to list the customers. "
          % (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