ich versuche erstellen Citrix Load Balancer mein Code zu erstellen:wie Strato citrix Load Balancer von SL-API
#LocationForNetscaler = 168642
Netscaler=44958
staticIPAddress=27569
package = 192
ProdcutOrderService = client['SoftLayer_Product_Order']
orderContainers ={
"quantity": 1,
"location": LocationForNetscaler ,
"packageId": package,
"prices": [
{"id": Netscaler,
"complexType":"SoftLayer_Product_Item_Price"
},
{
"id":staticIPAddress,
"complexType":"SoftLayer_Product_Item_Price"
}
]
}
orderData = {
'orderContainers' : [orderContainers ]
}
receipt = ProdcutOrderService.verifyOrder(orderData)
print "Order Verification"
pprint(receipt)
#
aber ich erhalte den folgenden Fehler: Traceback (letzter Anruf zuletzt): Datei "/home/abcd/Downloads/25-05-2016/28-05-2016-test.py", Zeile 84, in receipt = ProdcutOrderService.verifyOrder (orderData) Datei " /usr/local/lib/python2.7/dist-packages/SoftLayer/API.py ", Zeile 373, in call_handler zurückgeben self (name, * args, ** kwargs) Datei "/usr/local/lib/python2.7/dist-packages/SoftLayer/API.py", Zeile 341, im Aufruf return self.client.call (self .name, name, * args, ** kwargs) Datei "/usr/local/lib/python2.7/dist-packages/SoftLayer/API.py", Zeile 237, im Aufruf return self.transport (request) File "/usr/local/lib/python2.7/dist-packages/SoftLayer/transports.py", Zeile 187, in Anruf Erhöhung _ex (ex.faultCode, ex.faultString) SoftLayer.exceptions.SoftLayerAPIError : SoftLayerAPIError(SoftLayer_Exception_Order_Item_Invalid): Invalid price Citrix NetScaler VPX 10.5 10Mbps Standard (44958) provided on the order container.
bitte führen Sie Dank