尝试执行以下API https://api.softlayer.com/rest/v3.1/SoftLayer_Virtual_Guest/generateOrderTemplate
以下有效负载会返回正确的定价响应
{
"parameters":[
{
"hostname":"heotnasr",
"domain":"domain.com",
"operatingSystemReferenceCode":"CENTOS_LATEST",
"datacenter":{
"name":"ams03"
},
"networkComponents":[
{
"maxSpeed":"100"
}
],
"hourlyBillingFlag":true,
"privateNetworkOnlyFlag":false,
"startCpus":"1",
"maxMemory":"1024",
"localDiskFlag":true,
"blockDevices":[
{
"device":"0",
"diskImage":{
"capacity":"25"
}
}
],
"dedicatedAccountHostOnlyFlag":true
}
]
}
但是以下有效载荷:
{
"parameters":[
{
"hostname":"heotnasr",
"domain":"domain.com",
"operatingSystemReferenceCode":"CENTOS_LATEST",
"datacenter":{
"name":"ams03"
},
"networkComponents":[
{
"maxSpeed":"100"
}
],
"hourlyBillingFlag":true,
"privateNetworkOnlyFlag":false,
"startCpus":"12",
"maxMemory":"1024",
"localDiskFlag":true,
"blockDevices":[
{
"device":"0",
"diskImage":{
"capacity":"25"
}
}
],
"dedicatedAccountHostOnlyFlag":true
}
]
}
返回以下错误
{
"error":"Unable to find price for private core capacity of 12.",
"code":"SoftLayer_Exception_NotFound"
}