问题
In SoftLayer, I have a BMC with XenServer 6.2 version. I want to load XenServer 6.5.1 version. Hence, I issued reloadOperatingSystem REST API call as given below. My expectation was once it is successful, my BMC will have XenServer version 6.5.1. But it was successful per API response and BMC was not reloaded OS.
So my question is, if the JSON body is wrong, can you please give me sample JSON needed to reload different version of XenServer? or What did I do wrong in this request? or It is not possible to reload different version of XenServer in BMC from the original order? I am looking for API based programmatic solution not using portal application.
REQUEST
POST: https://api.softlayer.com/rest/v3/SoftLayer_Hardware_Server/{hardwareId}/reloadOperatingSystem
body:
{"token":"FORCE","config":{"complexType":"SoftLayer_Container_Hardware_Server_Configuration","itemPrices":[{"id":164837,"complexType":"SoftLayer_Product_Item_Price"}]}}
RESPONSE: Success (Http code: 200)
However, when I logged in into your portal, I am not seeing any reload os action. I expected XenServer OS version 6.5.1!!!
What did it go wrong?
Thanks
回答1:
There is a mistake on the way to define payload, try this please:
{
"parameters":[
"FORCE",
{
"itemPrices":[
{
"id":164837
}
]
}
]
}
References:
- SoftLayer_Hardware_Server::reloadOperatingSystem
来源:https://stackoverflow.com/questions/41622461/how-to-reload-different-version-of-xenserver-in-my-bmc-in-softlayer