SoftLayer API硬件:如何使用REST API订购不带操作系统的Bare Metal Server [英] SoftLayer API Hardware : How to order Bare Metal Server without OS using REST API

查看:47
本文介绍了SoftLayer API硬件:如何使用REST API订购不带操作系统的Bare Metal Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用REST API订购不带操作系统的裸机服务器.

How to order bare metal server without OS using REST API.

SoftLayer_Product_Package/getAllObjects,我们将在此软件包详细信息下选择需要选择的软件包ID. 程序包200是需要OS的裸机服务器,而程序包50是需要OS的裸机实例. 通知我在没有操作系统的情况下将支持哪些软件包ID.

SoftLayer_Product_Package/getAllObjects we will get the package details under this which package Id needs to be selected. Package 200 is bare metal server which requires OS and also package 50 is bare metal instance which requires OS. Inform me which package ID will support for without OS.

推荐答案

在没有OS(操作系统)的情况下订购的软件包如下:

The packages that would be ordered without OS (Operating System) are the following:

  • (50)裸机实例
  • (56)四核处理器多核Nehalem EX
  • (126)至强1200系列(Sandy Bridge/Haswell)
  • (142)单一Xeon 2000系列(桑迪桥)
  • (143)Dual Xeon 2000 Series(Sandy Bridge)
  • (144)专业服务器:GPU
  • (146)桑迪桥1270
  • (147)专用服务器:4u海量存储Dual Xeon 2000(Sandy Bridge)系列
  • (148)专用服务器:2u海量存储Dual Xeon 2000(Sandy Bridge)系列
  • (158)Quad Xeon 4000系列(Sandy Bridge)
  • (234)Quad Xeon E7-4800 v2(Ivy Bridge)系列
  • (248)双E5-2600 v3系列(36个驱动器)
  • (251)双E5-2600 v3系列(12个驱动器)
  • (253)双E5-2600 v3系列(4个驱动器)
  • (255)个单E3-1270(4个驱动器)
  • (257)单个E3-1270 v3(4个驱动器)
  • (259)单E5-2600系列(4个驱动器)
  • (261)单E3-1270(2个驱动器)
  • (263)双E5-2600系列(36个驱动器)
  • (265)双E5-2600系列(12个驱动器)
  • (267)Quad E5-4600系列(24个驱动器)
  • (269)Quad E7-4800系列(6个驱动器)
  • (271)Quad E7-4800 v2系列(24个驱动器)
  • (273)双E5-2600(4个驱动器)
  • (50) Bare Metal Instance
  • (56) Quad Processor Multi Core Nehalem EX
  • (126) Single Xeon 1200 Series (Sandy Bridge / Haswell)
  • (142) Single Xeon 2000 Series (Sandy Bridge)
  • (143) Dual Xeon 2000 Series (Sandy Bridge)
  • (144) Specialty Server: GPU
  • (146) Sandy Bridge 1270
  • (147) Specialty Server: 4u Mass Storage Dual Xeon 2000 (Sandy Bridge) Series
  • (148) Specialty Server: 2u Mass Storage Dual Xeon 2000 (Sandy Bridge) Series
  • (158) Quad Xeon 4000 Series (Sandy Bridge)
  • (234) Quad Xeon E7-4800 v2 (Ivy Bridge) Series
  • (248) Dual E5-2600 v3 Series (36 Drives)
  • (251) Dual E5-2600 v3 Series (12 Drives)
  • (253) Dual E5-2600 v3 Series (4 Drives)
  • (255) Single E3-1270 (4 Drives)
  • (257) Single E3-1270 v3 (4 Drives)
  • (259) Single E5-2600 Series (4 Drives)
  • (261) Single E3-1270 (2 Drives)
  • (263) Dual E5-2600 Series (36 Drives)
  • (265) Dual E5-2600 Series (12 Drives)
  • (267) Quad E5-4600 Series (24 Drives)
  • (269) Quad E7-4800 Series (6 Drives)
  • (271) Quad E7-4800 v2 Series (24 Drives)
  • (273) Dual E5-2600 (4 Drives)

注意:这仅是参考列表.您需要考虑其中的某些软件包可能由于各种原因(可用性,已弃用)而处于非活动状态.

Note: This is only a reference list. You need to consider that some of these package could be inactive for different reasons (availability, deprecated).

如何获得不需要操作系统的软件包?

How can you get packages which not require an OS?

我们需要获取参考无操作系统"的商品价格.做一些测试后,我发现该产品的价格为"37120",它表示没有操作系统".因此,您可以尝试以下剩余请求以获得包含该物品价格的包裹:

We need to get the item price which refers to "No Operating System". Doing some tests I found this item price "37120" which refers to "No Operating System". So, you can try the following rest request to get packages which contain this item price:

https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Product_Item_Price/37120/getPackages

Method: Get

一旦选择了包裹,就可以继续下订单,这里有一个Rest请求示例:

Once you chose a package, you can proceed to place an order, here a Rest request example:

https://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Product_Order/placeOrder

Method: Post

{  
   "parameters":[  
      {  
         "location":"448994",
         "packageId":261,
         "hardware":[  
            {  
               "hostname":"rcvtest1",
               "domain":"softlayer.com"
            }
         ],
         "prices":[  
            {  
               "id":"50461"
            },
            {  
               "id":"50377"
            },
            {  
               "id":"37120"
            },
            {  
               "id":"876"
            },
            {  
               "id":"50041"
            },
            {  
               "id":"50357"
            },
            {  
               "id":"273"
            },
            {  
               "id":"55"
            },
            {  
               "id":"58"
            },
            {  
               "id":"420"
            },
            {  
               "id":"418"
            },
            {  
               "id":"21"
            },
            {  
               "id":"57"
            },
            {  
               "id":"906"
            }
         ]
      }
   ]
}

要获取有关包裹商品价格的信息,可以使用以下休息请求:

To get information about the item prices for a package, you can use the following rest request:

https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Product_Package/261/getItemPrices

Method: Get

参考:

  • SoftLayer_Product_Item_Price::getPackages
  • SoftLayer_Product_Package::getItemPrices
  • SoftLayer_Product_Order::placeOrder

这篇关于SoftLayer API硬件:如何使用REST API订购不带操作系统的Bare Metal Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆