Skip to content

Instantly share code, notes, and snippets.

@greyhoundforty
Created April 15, 2016 14:22
Show Gist options
  • Save greyhoundforty/a0b55afcab9bc758405e21a39b93c63d to your computer and use it in GitHub Desktop.
Save greyhoundforty/a0b55afcab9bc758405e21a39b93c63d to your computer and use it in GitHub Desktop.
Get the standard (location agnostic) itemPriceId for Local Load Balancers
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