addon-nodejs
addon-nodejs copied to clipboard
ONE_CREDENTIALS format
Hi , Great work! I would like to know the format of ONE_CREDENTIALS it can accept ? as the openNebula server is a separate instance. var one = new OpenNebula(process.env.ONE_CREDENTIALS, process.env.ONE_HOST);
ok got it ..natively it can be done through this way...
var client = rpc.createClient( { host:'alm-fe.mimos.local',port: 2633,path:'/RPC2'
} )
client.methodCall('one.system.version',['username:password'],function (err,data)
{ console.log(data); console.log('error: ' + err); }
)
:+1: Exactly the usual "username:password" :)