Softlayer Api: Exception The Location Provided For This Order Is Invalid
background Use sl_product_order.placeOrder api to order a vsi. Order params: {'prices': [{'id': 1644}, {'id': 1640}, {'id': 2202}, {'id': 272}, {'id': 45466}, {'id': 905}, {'id': 2
Solution 1:
Before ordering you need to make sure that the package that you are going to use works for the location that you want to use, to check that you must run this method:
http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getRegions
Currently the package that you are using does not have the location sng01 as valid that's why you are getting the error.
In another hand you are able to order in that region using the control portal because the control portal uses another package for virtuall servers, it is using the package 46, So you need to change the package in your order and maybe the prices as well because each package has its own prices.
Post a Comment for "Softlayer Api: Exception The Location Provided For This Order Is Invalid"