Created
April 11, 2016 18:57
-
-
Save greyhoundforty/ca6c92dcbe04129b1ab8e6904a7a66f7 to your computer and use it in GitHub Desktop.
Get Local Load Balancer Prices
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 | |
package = 194 | |
from pprint import pprint as pp | |
client = SoftLayer.Client() | |
categoryObjectMask = "mask[isRequired, itemCategory[id, name]]" | |
configurations = client['Product_Package'].getConfiguration( | |
id=package, mask=categoryObjectMask) | |
pricesObjectMask = "mask[id;item.description;categories.id]" | |
prices = client['Product_Package'].getItemPrices( | |
id=package, mask=pricesObjectMask) | |
pp(prices) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Results will look like this: