-
-
Save anonymous/882abc0a5c1c53bf6206 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
var pkgcloud = require('pkgcloud'); | |
var client = pkgcloud.compute.createClient({ | |
provider: 'openstack', | |
authUrl: 'http://anIpAddr/v2.0/', | |
username: 'myUser', | |
password: 'myPass', | |
compute: 'http://anIpAddr/v2/3668c8077f5940a1271b3a0aeefad605' | |
}); | |
client.createServer({ image: 'de68ad45-c31f-4d2c-89db-22ed0a52c163', flavor: 'm1.small' , name:'created with code'}, function(err, image){ | |
if (err) | |
console.log("inside createImage-> "+err); | |
else | |
console.log('image created'); | |
console.log(image); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment