I need to provision a server through API with the configuration of RAM:16GB, OS: Centos5.6 Quad Core 64 bit, HDD:1TB.
API request which I used https://api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/createObject.json
Request Post data:
{"parameters":[{"hostname":"jmblw","domain":"micron.com","startCpus":4,"maxMemory":16,"blockDevices":[{"device":0,"diskImage":{"capacity":100}},{"device":2,"diskImage":{"capacity":1000}}],"hourlyBillingFlag":true,"localDiskFlag":true,"operatingSystemReferenceCode":"CENTOS_5_64","datacenter":{"name":"sng01"}}]}
RESPONSE :
{
"error": "Unable to find a price for block device 2.",
"code": "SoftLayer_Exception_NotFound"
}
Can you please tell me how I can povision a server with HDD 1 TB. and please send me the Request body post data's structure