Skip to content

Instantly share code, notes, and snippets.

/gist:7da167e94f6336e3719f Secret
Created Apr 14, 2013

Embed
What would you like to do?
var serverId = 'sdfasf243-eea4-4d75-842b-laksf3459'; // Your server ID here
client.getServer(serverId, function(err, server) {
if (err) {
return;
}
client.createImage({ serverId: server}, function(err, image) {
// if not err, you can create your new server here:
client.createServer({
imageRef: image.id,
flavor: 3 ,
name:'some description here',
keyname: 'myKeyName'
})
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.