Reputation: 52
Provision of BareMetal Servers:
Using the below mentioned blog, I am able to provision hourly bare metal server.
http://sldn.softlayer.com/blog/bpotter/ordering-bare-metal-servers-using-softlayer-api
But I am unable to set VLAN details in the request object. If I pass VLAN details in the payload I am getting error message as:
"error":"VLANs may not be specified for Bare Metal Server configurations.","code":"SoftLayer_Exception_Public"}.
Also I want to know whether I can set private only network flag as true?
Upvotes: 0
Views: 306
Reputation: 4386
It would be great to see your payload, but the configuration of VLANs is here http://sldn.softlayer.com/reference/services/SoftLayer_Hardware/createObject,
your payload should be something loke this:
hw = {
'datacenter': {'name': 'tor01'},
'hostname': 'simplebmi',
'domain': 'test.com',
'hourlyBillingFlag': True,
'fixedConfigurationPreset': {'keyName': 'S1270_8GB_2X1TBSATA_NORAID'},
'networkComponents': [{
'maxSpeed': 1000,
}],
'operatingSystemReferenceCode': 'UBUNTU_14_64',
"primaryNetworkComponent": {
"networkVlan": {
"id": 52123
}
},
"primaryBackendNetworkComponent": {
"networkVlan": {
"id": 2
}
}
}
and yes you can set the private only network just add this to the payload:
"privateNetworkOnlyFlag": true
Regards
Upvotes: 0