Created
March 10, 2015 19:33
-
-
Save underscorephil/75709f051f4356f111e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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