addon-nodejs icon indicating copy to clipboard operation
addon-nodejs copied to clipboard

ONE_CREDENTIALS format

Open fairul82 opened this issue 11 years ago • 2 comments

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);

fairul82 avatar Jan 09 '15 04:01 fairul82

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); }

)

fairul82 avatar Jan 09 '15 09:01 fairul82

:+1: Exactly the usual "username:password" :)

apocas avatar Jan 09 '15 16:01 apocas