Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Last active June 10, 2016 04:40
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/1c92bce5e834d66bdebf to your computer and use it in GitHub Desktop.
Save underscorephil/1c92bce5e834d66bdebf to your computer and use it in GitHub Desktop.
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)
@Santosgusta2010
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment