-
-
Save sudorandom/6258573 to your computer and use it in GitHub Desktop.
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.API | |
from pprint import pprint as pp | |
apiUsername = '' | |
apiKey = '' | |
templateId = | |
client = SoftLayer.API.Client('SoftLayer_Product_Order', None, apiUsername, apiKey) | |
order = { | |
'complexType': 'SoftLayer_Container_Product_Order_Virtual_Guest', | |
'quantity': 1, | |
'virtualGuests': [ | |
{'hostname': 'test', 'domain': 'example.com'} | |
], | |
'location': 168642, # San Jose 1 | |
'packageId': 46, # CCI Package | |
'prices': [ | |
{'id': 1640}, # 1 x 2.0 GHz Core | |
{'id': 1644}, # 1 GB RAM | |
{'id': 905}, # Reboot / Remote Console | |
{'id': 272}, # 10 Mbps Public & Private Networks | |
{'id': 613}, # 1000 GB Bandwidth | |
{'id': 21}, # 1 IP Address | |
{'id': 2202}, # 25 GB (SAN) | |
{'id': 1684}, # CentOS 5 - Minimal Install (32 bit) | |
{'id': 55}, # Host Ping Monitoring | |
{'id': 57}, # Email and Ticket Notifications | |
{'id': 58}, # Automated Notification Response | |
{'id': 420}, # Unlimited SSL VPN Users & 1 PPTP VPN User per account | |
{'id': 418}, # Nessus Vulnerability Assessment & Reporting | |
], | |
'imageTemplateId': templateId | |
} | |
result = client.verifyOrder(order) | |
pp(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment