2016-05-27 4 views
0

Vyattaを購入した後、Java APIを使用してアップグレードHAを実装しています。 VyattaのアップグレードHAを実装するためのサンプルコードまたはガイドを私に提供できますか?アップグレードを注文する際に設定する必要がある設定は何ですか?SLでのVyattaアップグレードの設定

答えて

0

これはあなたを助けることができるレスト例です:

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

関連する問題