Skip to content

Instantly share code, notes, and snippets.

@liouxiao
liouxiao / output.orderServer.json
Last active January 2, 2016 16:59
The execution output of orderServer.py (https://gist.github.com/liouxiao/8331752)
{
"preTaxSetup": "0",
"storageGroups": [],
"postTaxRecurring": "111.3",
"billingOrderItemId": "",
"presetId": "",
"hardware": [
{
"domain": "sampledomain.com",
"hostname": "myserver",
@liouxiao
liouxiao / orderServer.py
Created January 9, 2014 09:39
An sample python code to order a bare-metal server in SoftLayer.
#!/usr/bin/env python
import SoftLayer
client = SoftLayer.Client()
mgr = SoftLayer.HardwareManager(client)
order = {
'location': 'FIRST_AVAILABLE',
'hostname': 'myserver',
'domain': 'sampledomain.com',
'bare_metal': True,