I'm developing a project about softlayer API recently. Because the purchase of IPv6 alone must to pay. Now I wan't to allocation an free ipv6 address when buying a host. The current configuration of buy host is as follow:
vs_type = 'virtual_server'
vs_config = {
'virtualGuests':[
{
'domain': 'a.com',
'hostname': 'a-test-bandwidth-mouthly-pucharse',
}
],
'dataCenter': 'tok02',
'hourlyBillingFlag': False,
'imageType': 'public',
'localDiskFlag': False,
'maxMemory': 'RAM_1_GB',
'networkComponents': 100,
'operatingSystem': u'OS_CENTOS_5_X_MINIMAL_64_BIT',
'privateNetworkOnlyFlag': False,
'publicBandwidthCapacity': 'BANDWIDTH_250_GB',
'quantity': 1,
'startCpus': 'GUEST_CORE_1',
'blockDevices': [
{
'capacity': 25,
'device': 0
}
]
}
result = product_order_mgt.product_place_order(vs_type, vs_config)
regards~