我尝试订购 Baremetal 机器,但我收到了该错误
root@ubuntu:~# ruby array.rb
/usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/xmlrpc/client.rb:414:in `call': The location provided for this order is invalid. (XMLRPC::FaultException)
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/softlayer_api-3.0.2/lib/softlayer/Service.rb:267:in `call_softlayer_api_with_params'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/softlayer_api-3.0.2/lib/softlayer/Service.rb:196:in `method_missing'
from array.rb:20:in `<main>'
我也尝试过使用 lon02(id 358694),但我发现了同样的错误。
我想自动化以下配置的顺序:
Server:
Dual Intel Xeon E5-2650 (8 Cores, 2.00 GHz)
Second Processor Intel Xeon E5-2650 (8 Cores, 2.00 GHz)
RAM:
16 GB
Operating System:
Ubuntu Linux 14.04 LTS Trusty Tahr - Minimal Install (64 bit)
Disk Controller:
RAID
10 Hard Drives of type:
800 GB SSD (10 DWPD)
Disk 0-3 Raid 6. Disk 4 HotSpare - Disk 5-8 Raid 6 Disk 9 HotSpare
Public Bandwidth:
500 GB Bandwidth
Uplink Port Speeds:
1 Gbps Redundant Public & Private Network Uplinks
Private Network Port 1 Gbps Redundant Private Uplinks
Public Network Port 1 Gbps Redundant Public Uplinks
Power Supply:
Redundant Power Supply
Monitoring:
Host Ping and TCP Service Monitoring
Response:
Automated Reboot from Monitoring
VPN Management - Private Network:
Unlimited SSL VPN Users & 1 PPTP VPN User per account
Vulnerability Assessments & Management:
Nessus Vulnerability Assessment & Reporting
Primary IP Addresses:
1 IP Address
Notification:
Email and Ticket
Remote Management:
Reboot / KVM over IP
这是我的代码片段:
require 'rubygems'
require 'softlayer_api'
$SL_API_USERNAME = "-------"
$SL_API_KEY = "------------------"
client = SoftLayer::Service.new("SoftLayer_Product_Order");
product={
"complexType"=>"SoftLayer_Container_Product_Order_Hardware_Server",
"quantity"=>1,
"hardware"=>[{"hostname"=>"dysa-ca-east-0-baremetal-uaa-test-ai", "domain"=>"dysa-ca-east", "primaryNetworkComponent"=>{"networkVlan"=>{"id"=>"888013"}}, "primaryBackendNetworkComponent"=>{"networkVlan"=>{"id"=>"888015"}}}],
"location"=>"448994",
"packageId"=>142,
"prices"=>[{"id"=>29899}, {"id"=>29899}, {"id"=>37622}, {"id"=>34742}, {"id"=>36037}, {"id"=>35529}, {"id"=>35529}, {"id"=>35529}, {"id"=>35529}, {"id"=>35529}, {"id"=>35529}, {"id"=>35529}, {"id"=>35529}, {"id"=>35529}, {"id"=>35529}, {"id"=>33867}, {"id"=>26109}, {"id"=>25014}, {"id"=>34807}, {"id"=>34241}, {"id"=>32500}, {"id"=>34996}, {"id"=>33483}, {"id"=>35310}], "useHourlyPricing"=>false,
"storageGroups"=>[{"arrayTypeId"=>"4", "hardDrives"=>"[0,1,2,3]", "hotSpareDrives"=>"[4]"}, {"arrayTypeId"=>"4", "hardDrives"=>"[5,6,7,8]", "hotSpareDrives"=>"[9]"}]}
client.verifyOrder(product)
你能帮帮我吗?非常感谢