SL中Vyatta升级的配置

时间:2016-05-27 11:19:07

标签: ibm-cloud-infrastructure

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

1 个答案:

答案 0 :(得分:0)

这是一个可以帮助你的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