Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created March 10, 2015 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save underscorephil/75709f051f4356f111e6 to your computer and use it in GitHub Desktop.
Save underscorephil/75709f051f4356f111e6 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.frontendNetworkComponents[
id,
primaryVersion6IpAddressRecord[
id,
ipAddress
]
]
"""
client = SoftLayer.Client()
servers = client['Account'].getHardware(mask=mask)
pp(servers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment