Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created May 18, 2015 18:49
Show Gist options
  • Save underscorephil/4cc78276363a7782453b to your computer and use it in GitHub Desktop.
Save underscorephil/4cc78276363a7782453b to your computer and use it in GitHub Desktop.
import SoftLayer.API
from pprint import pprint as pp
apiUsername = ''
apiKey = ''
client = SoftLayer.Client(
username=apiUsername,
api_key=apiKey,
)
hardware = client['Account'].getHardware(
filter={'hardware': {'sparePoolBillingItem': {'d' : {'operation': 'NOT NULL'}}}})
pp(hardware)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment