Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created June 20, 2014 15:33
Show Gist options
  • Save underscorephil/55a24238ab7c56ed8f26 to your computer and use it in GitHub Desktop.
Save underscorephil/55a24238ab7c56ed8f26 to your computer and use it in GitHub Desktop.
import SoftLayer.API
from pprint import pprint as pp
apiUsername = ''
apiKey = ''
client = SoftLayer.Client(
username=apiUsername,
api_key=apiKey,
)
prices = [
{'id': 1353}, # 20 GB iSCSI SAN Snapshot Space
]
order = {
'prices': prices,
'location': 138124, # Dal05
'packageId': 0
}
result = client['SoftLayer_Product_Order'].placeOrder(order)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment