I am using the jt command line utility to parse the output
curl -sk "https://$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY@api.softlayer.com/rest/v3/SoftLayer_Product_Package/getAllObjects"| jt [ id % ] name %|grep Load
194 Load Balancers
Use Get Package Location Based price script to get the correct itemPriceId
for the Datacenter we want to order in.
{
"parameters" : [
{
"packageId" : 194,
"location" : 154820,
"quantity" : 1,
"prices": [
{"id": 17234}
]
}
]
}
curl -s --user "$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY" -X POST --data @lb.json "https://api.softlayer.com/rest/v3/SoftLayer_Product_Order/verifyOrder"
curl -s --user "$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY" -X POST --data @lb.json "https://api.softlayer.com/rest/v3/SoftLayer_Product_Order/placeOrder"