I was wondering how to add ssh keys that are within softlayer to be added to a json bare metal order. Through the GUI, it would be added at the end of the order before you click submit
wondering if it's just with:
productOrder = {
"quantity": 1,
"location": 1234,
"packageId": 1234,
"sshKeyIds": 1234,
"hardware": [ ...
I did a verifyOrder() but not sure if it's correct
Try the following script:
You could try this:
Additional links to review: http://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/createObject http://sldn.softlayer.com/reference/services/SoftLayer_Account/getSshKeys http://sldn.softlayer.com/reference/services/SoftLayer_Hardware/getCreateObjectOptions
If you are using: SoftLayer_Product_Order::placeOrder method, take a look the following example:
I hope it helps, let me know any doubt or comments