Last active
October 27, 2015 17:07
-
-
Save larsks/5c5f9248ce1498e99fa0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import novaclient.client as nova_client | |
>>> c = nova_client.Client('2', username='admin', api_key='4a39297ad51b4602', auth_url='http://192.168.124.148:5000/v2.0', tenant_id='349a8b95c5ad4a3383149f65f8c44cff') | |
>>> c.servers.create(image='9ef47d58-db10-4893-a918-e231e5ea7240', flavor='0456386f-9c68-4b84-b5dc-133ce3c7eb6a', nics=[{'net-id': 'c875770c-a20b-45b5-a9da-5aca97153053'}], name='larstest') | |
<Server: larstest> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment