Last active
June 10, 2016 04:40
-
-
Save underscorephil/1c92bce5e834d66bdebf 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 | |
from SoftLayer import utils | |
import sys | |
import pprint | |
import logging | |
apiUsername = '' | |
apiKey = '' | |
pp = pprint.PrettyPrinter(indent=4) | |
client = SoftLayer.Client(username=apiUsername,api_key=apiKey) | |
mask = "mask[networkManagementIpAddress,remoteManagementAccounts[username,password]]" | |
result = client['SoftLayer_Account'].getHardware(mask=mask) | |
pp.pprint(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.., I'm new with this API. I'm trying to filter this to get just the fully qualified domain name, networkManagementIpAddress, remoteManagementAccounts [username,password] in a comma separated list. Do you know how to filter this? I've tried a couple of lines without success. Thanks