Created
April 15, 2016 14:22
-
-
Save greyhoundforty/a0b55afcab9bc758405e21a39b93c63d to your computer and use it in GitHub Desktop.
Get the standard (location agnostic) itemPriceId for Local Load Balancers
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 | |
import json | |
object_filter = { | |
'items': { | |
'prices': { | |
'locationGroupId': { | |
'operation': 'is null' | |
} | |
} | |
} | |
} | |
client = SoftLayer.Client() | |
items = client["SoftLayer_Product_Package"].getItems(id=194, filter=object_filter) | |
print(json.dumps(items, sort_keys=True, indent=2, separators=(',', ': '))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment