SL 中 Vyatta 升级的配置

Configuration for Vyatta upgrade in SL

我在购买 Vyatta 后使用 Java API 实施升级 HA。 您能否向我提供任何示例代码或指南来实施 Vyatta 的 HA 升级?订购升级时必须设置什么配置??

这是一个可以帮助您的 Rest 示例:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Order/verifyOrder

Note: Once ready your configuration, change from `verifyOrder` to `placeOrder`

Method: POST

Json Payload:

{
  "parameters": [
    {
      "orderContainers": [
        {
          "location": "AMSTERDAM",
          "complexType": "SoftLayer_Container_Product_Order_Hardware_Server_Gateway_Appliance",
          "packageId": 174,
          "clusterResourceId": 61500,    // Gateway Id
          "prices": [
            {
              "id": 74865   // Single Intel Xeon E3-1270 (4 Cores, 3.40 GHz)
            },
            {
              "id": 21010  // 4 GB DDR3 1333
            },
            {
              "id": 36044  // Vyatta 6.x Subscription Edition (64 bit)
            },
            {
              "id": 876 //Non-RAID
            },
            {
              "id": 1267  // 500 GB SATA
            },
            {
              "id": 342 // 20000 GB Bandwidth
            },
            {
              "id": 273  //100 Mbps Public & Private Network Uplinks
            },
            {
              "id": 17129  // 1 IPv6 Address
            },
            {
              "id": 55  // Host Ping
            },
            {
              "id": 58 //Automated Notification
            },
            {
              "id": 420  // Unlimited SSL VPN Users & 1 PPTP VPN User per account
            },
            {
              "id": 418  //Nessus Vulnerability Assessment & Reporting
            },
            {
              "id": 21  // 1 IP Address
            },
            {
              "id": 57  // Email and Ticket
            },
            {
              "id": 906  //Reboot / KVM over IP
            }
          ],
          "hardware": [
            {
              "domain": "mydomain.com",
              "hostname": "myhostname"
            }
          ]
        }
      ]
    }
  ]
}

其中:

clusterResourceId: 用于标识正在升级到 HA 的网关。

要获取包裹 174 的有效商品价格,请执行:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/174/getItemPrices?objectMask=mask[id,locationGroupId,item[id,keyName,description],pricingLocationGroup[locations[id, name, longName]]]

Method: GET

参考:

SoftLayer_Container_Product_Order_Hardware_Server_Gateway_Appliance