Slide 7
Slide 7 text
Let’s create a server template with the drive attached
>>> server_template = {
'name': 'Test Server',
'cpu': 2000,
'mem': bitmath.GiB(2).bytes,
'vnc_password': 'test_server',
'drive': [{
'boot_order': 1,
'dev_channel': '0:0',
'device': 'virtio',
'drive': my_disk['uuid']
}],
'nics': [{
'ip_v4_conf': {
'conf': 'dhcp',
'ip': None
},
'model': 'virtio',
'vlan': None
}]
}
Step 2: Create a server
API section:
https://cloudsigma-docs.readthedocs.org/en/latest/servers.html