2016-06-21 6 views
0

Nach dem Beispiel in haben wir versucht, die SoftLayer-API zu verwenden, um eine Bare-Metal-Maschine zu bestellen.SoftLayer verifyOrder API zurückgegeben Interner Fehler

Unsere "verifyOrder" Anfrage dh (https: // $ SLUSERNAME: [email protected]/rest/v3/SoftLayer_Product_Order/verifyOrder.json) mit dem folgenden json

{ "complex" : "SoftLayer_Container_Product_Order_Hardware_Server", "Anzahl": 1, "Hardware": [{"Hostname": "userBM3", "Domäne": "cloud.com", "primaryBackendNetworkComponent": {"networkVlan": {"id" : 1050255, "primarySubnetId": 1223965}}}], "Standort": "dal09", "useHourlyPricing": false, "packageId": 251, "Preise": [{"id": 50659}, {"id": 49447}, {"id": 31154}, {"id": 40148}, {"id": 35963} , {"id": 25014}, {"id": 34807}, {"id": 27023}, {"id": 32627}, {"id": 32500}, {"id": 33483}, { "id": 35310}, {"id": 156765}, {"id": 156765}, {"id": 49841}, {"id": 49841}, {"id": 49841}, {"id ": 49841}, {" id ": 49841}, {" id ": 49841}, {" id ": 49841}, {" id ": 49841}, {" id ": 49841}, {" id ": 49841}, {"id": 50223}, {"id": 141945}], "Speichergruppen": [{"arrayTypeId": 2, "hardDrives": [0, 1]}, {"arrayTypeId": 2 , "hardDrives": [2, 3]}, {"arrayTypeId": 9, "hardDrive": [4]}, {"arrayTypeId": 9, "hardDrives": [5]}, {"arrayTypeId": 9 , "hardDrives": [6]}, {"arrayTypeId": 9, "hardDrive": [7]}, {"arrayTypeId": 9, "hardDrive": [8]}, {"arrayTypeId": 9, " Festplatten ": [9]}, {" arrayTypeId ": 9, "Festplatten": [10]}, {" arrayTypeId ": 9, "Festplatten": [11]}]

}

resultierten im folgenden re sponse

{ „Fehler“: „Ein interner Systemfehler ist aufgetreten.“, „Code“: „SoftLayer_Exception_InternalError“}

Wir bestätigten, dass alle Preis IDs gültig sind und nicht in der Lage, herauszufinden, was die Ursache der interne Fehler.

Antwort

0

die folgenden REST-Anfrage Versuchen:

https://$user:[email protected]/rest/v3/SoftLayer_Product_Order/verifyOrder 

Method: Post 

{ 
    "parameters":[ 
     { 
     "complexType":"SoftLayer_Container_Product_Order_Hardware_Server", 
     "quantity":1, 
     "hardware":[ 
      { 
       "hostname":"userBM3", 
       "domain":"cloud.com", 
       "primaryBackendNetworkComponent":{ 
        "networkVlan":{ 
        "id":1050255, 
        "primarySubnetId":1223965 
        } 
       } 
      } 
     ], 
     "location":"DALLAS09", 
     "useHourlyPricing":false, 
     "packageId":251, 
     "prices":[ 
      { 
       "id":50659 
      }, 
      { 
       "id":49447 
      }, 
      { 
       "id":31154 
      }, 
      { 
       "id":40148 
      }, 
      { 
       "id":35963 
      }, 
      { 
       "id":25014 
      }, 
      { 
       "id":34807 
      }, 
      { 
       "id":27023 
      }, 
      { 
       "id":32627 
      }, 
      { 
       "id":32500 
      }, 
      { 
       "id":33483 
      }, 
      { 
       "id":35310 
      }, 
      { 
       "id":156765 
      }, 
      { 
       "id":156765 
      }, 
      { 
       "id":49841 
      }, 
      { 
       "id":49841 
      }, 
      { 
       "id":49841 
      }, 
      { 
       "id":49841 
      }, 
      { 
       "id":49841 
      }, 
      { 
       "id":49841 
      }, 
      { 
       "id":49841 
      }, 
      { 
       "id":49841 
      }, 
      { 
       "id":49841 
      }, 
      { 
       "id":49841 
      }, 
      { 
       "id":50223 
      }, 
      { 
       "id":141945 
      } 
     ], 
     "storageGroups":[ 
      { 
       "arrayTypeId":2, 
       "hardDrives":[ 
        0, 
        1 
       ] 
      }, 
      { 
       "arrayTypeId":2, 
       "hardDrives":[ 
        2, 
        3 
       ] 
      }, 
      { 
       "arrayTypeId":9, 
       "hardDrives":[ 
        4 
       ] 
      }, 
      { 
       "arrayTypeId":9, 
       "hardDrives":[ 
        5 
       ] 
      }, 
      { 
       "arrayTypeId":9, 
       "hardDrives":[ 
        6 
       ] 
      }, 
      { 
       "arrayTypeId":9, 
       "hardDrives":[ 
        7 
       ] 
      }, 
      { 
       "arrayTypeId":9, 
       "hardDrives":[ 
        8 
       ] 
      }, 
      { 
       "arrayTypeId":9, 
       "hardDrives":[ 
        9 
       ] 
      }, 
      { 
       "arrayTypeId":9, 
       "hardDrives":[ 
        10 
       ] 
      }, 
      { 
       "arrayTypeId":9, 
       "hardDrives":[ 
        11 
       ] 
      } 
     ] 
     } 
    ] 
} 

Ein kurzer Blick, gibt es Konflikte zwischen den Preisen und Dallas09 Standort finden Sie in diesem Artikel für weitere Informationen bitte: Location-based Pricing and You

Aktualisiert

Die Preis (Beschreibung: 2.00 TB SATA) Es ist nicht aa gültigen Preis für Dallas 9

Wenn Sie das gleiche Element in Dallas 9, bestellen möchten statt

Preis ändern: , die ein Standardpreis (Beschreibung: 2,00 TB).

Referenzen:

+0

ths. Wir haben gestern 49821 geändert und bestätigt, dass es funktioniert. Welche Änderung hat das "Internal Error Problem" korrigiert und Hinweise zum Debuggen wären sehr hilfreich? thx – louismau

+0

Ich habe hinzugefügt: ** "Parameter": [{** in Ihrer Vorlage. Weitere Informationen zur Verwendung von REST mit der SoftLayer-API finden Sie unter http://sldn.softlayer.com/article/rest –