本文介绍了如何在SoftLayer的BMC中重新加载不同版本的XenServer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在SoftLayer中,我有一个带有XenServer 6.2版本的BMC.我想加载XenServer 6.5.1版本.因此,我发出了reloadOperatingSystem REST API调用,如下所示.我的期望是,一旦成功,我的BMC将具有XenServer版本6.5.1.但是,每个API响应都成功,并且BMC没有重新加载操作系统.

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.

所以我的问题是,如果JSON主体错误,您能否给我示例样本JSON,以重新加载不同版本的XenServer?或我在此请求中做错了什么?还是无法从原始订单中在BMC中重新加载不同版本的XenServer?我正在寻找不使用门户网站应用程序的基于API的编程解决方案.

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.

POST: https://api.softlayer.com/rest/v3/SoftLayer_Hardware_Server/ {hardwareId}/reloadOperatingSystem

POST: https://api.softlayer.com/rest/v3/SoftLayer_Hardware_Server/{hardwareId}/reloadOperatingSystem

{"token":"FORCE","config":{"complexType":"SoftLayer_Container_Hardware_Server_Configuration","itemPrices":[{"id":164837,"complexType":"SoftLayer_Product_Item_Price"}]}} 

响应:成功(HTTP代码:200)

RESPONSE: Success (Http code: 200)

但是,当我登录到门户网站时,没有看到任何reload os操作.我预期XenServer OS版本6.5.1 !!!

However, when I logged in into your portal, I am not seeing any reload os action. I expected XenServer OS version 6.5.1!!!

出了什么问题?

谢谢

推荐答案

定义有效负载的方式有误,请尝试以下操作:

There is a mistake on the way to define payload, try this please:

{  
    "parameters":[  
        "FORCE",
        {  
            "itemPrices":[  
                {  
                    "id":164837
                }
            ]
        }
    ]
}

参考:

这篇关于如何在SoftLayer的BMC中重新加载不同版本的XenServer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 04:34