0
我知道如何使用Python和Java客户端来完成它,但是我需要使用REST客户端来完成它,因为合适的语言特定客户端(Java)缺少功能(过滤,api url根设置进行测试)。如何使用Softlayer REST API订购子网?
如何用REST做到这一点? 我试图与此JSON文件作为有效载荷:
{
"packageId": 0,
"prices": [{"id":13981}],
"quantity": 1,
"complexType": "SoftLayer_Container_Product_Order_Network_Subnet",
"endPointVlanId": 1366867}
,然后请求没有太多的提示失败的什么是错的:
curl -X POST -d @data.json https://user:[email protected]/rest/v3.1/SoftLayer_Product_Order/placeOrder
{"error":"An internal system error has occurred.","code":"SoftLayer_Exception_InternalError"}