How can I order several SoftLayer baremetal servers that have differing package IDs with a single order/API call?
UPDATE: Added details below, hopefully it will add clarity to what I am trying to do.
The 2 data structures below are SoftLayer_Container_Product_Order_Hardware_Server datatypes. Each is for a hardware server (billed monthly) with a different package_id
, and they can each be passed individually to the placeOrder() API method.
My question is whether there is a way to combine them into a single Order, so I can make a single API call to placeOrder()?
first data structure, to order 2 servers with package_id 553
{'complexType': 'SoftLayer_Container_Product_Order_Hardware_Server',
'hardware': [{'domain': 'example.com',
'hostname': u'host1',
'primaryBackendNetworkComponent': {'networkVlan': {'id': 1234}},
'primaryNetworkComponent': {'networkVlan': {'id': 5678}}},
{'domain': 'example.com',
'hostname': u'host2',
'primaryBackendNetworkComponent': {'networkVlan': {'id': 1234}},
'primaryNetworkComponent': {'networkVlan': {'id': 5678}}}],
'location': 1441195,
'packageId': 553,
'prices': [{'id': 177613},
{'id': 49811},
{'id': 49811},
{'id': 50113},
{'id': 50113},
{'id': 50113},
{'id': 50113},
{'id': 50113},
{'id': 50113},
{'id': 49081},
{'id': 49427},
{'id': 141945},
{'id': 50359},
{'id': 35686},
{'id': 50223},
{'id': 34807},
{'id': 29403},
{'id': 34241},
{'id': 32627},
{'id': 25014},
{'id': 33483},
{'id': 35310},
{'id': 32500}],
'quantity': 2,
'quoteName': u'DAL10-qty2-rand9939',
'sshKeyIds': [{'sshKeyIds': [9876]}, {'sshKeyIds': [9876]}],
'storageGroups': [{'arrayTypeId': 2, 'hardDrives': [0, 1]},
{'arrayTypeId': 5, 'hardDrives': [2, 3, 4, 5, 6, 7]}],
'useHourlyPricing': False}
Second data structure, to order 2 servers with package_id 251
{'complexType': 'SoftLayer_Container_Product_Order_Hardware_Server',
'hardware': [{'domain': 'example.com',
'hostname': u'host3',
'primaryBackendNetworkComponent': {'networkVlan': {'id': 1234}},
'primaryNetworkComponent': {'networkVlan': {'id': 5678}}},
{'domain': 'example.com',
'hostname': u'host4',
'primaryBackendNetworkComponent': {'networkVlan': {'id': 1234}},
'primaryNetworkComponent': {'networkVlan': {'id': 5678}}}],
'location': 1441195,
'packageId': 251,
'prices': [{'id': 50659},
{'id': 49811},
{'id': 49811},
{'id': 50113},
{'id': 50113},
{'id': 50113},
{'id': 50113},
{'id': 49081},
{'id': 49437},
{'id': 141945},
{'id': 50359},
{'id': 26109},
{'id': 50223},
{'id': 34807},
{'id': 29403},
{'id': 34241},
{'id': 32627},
{'id': 25014},
{'id': 33483},
{'id': 35310},
{'id': 32500}],
'quantity': 2,
'quoteName': u'DAL10-qty2-rand3106',
'sshKeyIds': [{'sshKeyIds': [9876]}, {'sshKeyIds': [9876]}],
'storageGroups': [{'arrayTypeId': 2, 'hardDrives': [0, 1]},
{'arrayTypeId': 5, 'hardDrives': [2, 3, 4, 5]}],
'useHourlyPricing': False}