November 23, 2017
Get graph image connections for a service.

Important manual pages:

Author: SoftLayer Technologies, Inc. <>

import SoftLayer

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

serviceId = 367025

client = SoftLayer.Client(username=USERNAME, api_key=API_KEY)
service = client['SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service']

graphType = 'connections'

# The metric can be 'day', 'week', or 'month'.
metric = 'day'

    result = service.getGraphImage(graphType, metric, id=serviceId)
    print("The graph image has been retrieved successfully")
except SoftLayer.SoftLayerAPIError as e:
    print("Unable to get the graph image. faultCode=%s, faultString=%s" % (e.faultCode, e.faultString))