How to reload different version of XenServer in my BMC in SoftLayer?

試著忘記壹切 提交于 2019-12-12 04:21:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!