Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created May 28, 2014 16:00
Show Gist options
  • Save underscorephil/c4a4e7f49d41bce8e06f to your computer and use it in GitHub Desktop.
Save underscorephil/c4a4e7f49d41bce8e06f to your computer and use it in GitHub Desktop.
import SoftLayer.API
from pprint import pprint as pp
api_username = ''
api_key = ''
client = SoftLayer.Client(
username=api_username,
api_key=api_key,
)
mask = """
mask[
billingItem[
recurringFee,
id,
orderItem[
description,
order[
id,
userRecord[
id,
username
]
]
]
]
]
"""
hardware = client['Account'].getHardware(mask=mask)
pp(hardware)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment