I am wondering if auto-assigning to a portable private subnet can be done? Ideally, this would be at provisioning time.
I have been following this thread but it seems you can only specify a primary subnet with this method: https://forums.softlayer.com/forum/softlayer-developer-network/general-discussion/84021-create-vm-with-ip-addresses-assigned-to-the-specified-subnets
We are looking to have a network separation of servers by putting them on separate subnets (with firewall rules to drop connections between these subnets).
Would this have to be done in post-provisioning via the API?
Thanks in advance!
Edit: Here is how I am provisioning the device:
curl -X POST --data @baseOS.json https://${SL_USERNAME}:${SL_API_KEY}@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/createObject
baseOS.json:
{
"parameters":[
{
"hostname": "test03",
"domain": "test.com",
"primaryBackendNetworkComponent": {
"networkVlan": {
"id": <SUBNET_ID>,
"primarySubnetId": <SUBNET_ID>
}
},
"datacenter": {
"name": "mon01"
},
"startCpus": 1,
"maxMemory": 1024,
"hourlyBillingFlag": true,
"localDiskFlag": false,
"networkComponents": [
{
"maxSpeed": 10
}
],
"blockDeviceTemplateGroup": {
"globalIdentifier": "<ID>"
}
}
]
}
curl -X POST --data @baseOS.json https://${SL_USERNAME}:${SL_API_KEY}@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/createObject {"error":"The subnet specified #<SUBNET_ID> (<IP>\/26) does not currently have available slots. Free up space or remove the subnet specification.","code":"SoftLayer_Exception_Public"}The portable subnet is brand new and empty so I figure it's a generic message. - vhuynh