我正在尝试使用 Softlayer Python 客户端在 Softlayer 中订购虚拟服务器。我的订单 json 如下所示:
order = {
'complexType': 'SoftLayer_Container_Product_Order_Virtual_Guest',
'quantity': 1,
'virtualGuests': [
{
'hostname': 'test',
'domain': 'example.com',
'primaryBackendNetworkComponent': {
'networkVlan': {
'id': 752950
}
}
}
],
'location': 142775,
'packageId': 46,
'useHourlyPricing': True,
'prices': [
{'id': 112863}, # 2 x 2.0 GHz Core
{'id': 153861}, # 1 GB RAM
{'id': 23070}, # Reboot / Remote Console
{'id': 155153}, # 1 Gbps Public & Private Networks
{'id': 164857}, # 1000 GB Bandwidth
{'id': 34807}, # 1 IP Address
{'id': 24013}, # 25 GB (SAN)
{'id': 23820}, # OS_WINDOWS_2012_FULL_STD_64_BIT
{'id': 27023}, # Host Ping Monitoring
{'id': 32500}, # Email and Ticket Notifications
{'id': 32627}, # Automated Notification Response
{'id': 33483}, # Unlimited SSL VPN Users & 1 PPTP VPN User per account
{'id': 36536} # VMWARE VCenter addon
]
}
我在实际下订单之前验证了订单:
client['Product_Order'].verifyOrder(order)
但我不断收到此错误消息:2 x 2.0 GHz Cores (#112863) 的价格对于位置 hou02 无效。我已经尝试了所有其他位置,但我不断收到相同的错误消息。你知道我能解决这个问题吗?