node-onapp
node.js onapp module
More methods coming...
Check the examples below for usage.
Installation:
npm install onapp
Examples:
var Onapp = ; var config = username: 'username@email.com' apiKey: 'api_hash' serverUrl: 'http://192.168.1.1'; var onapp = config; //Onapp versiononapp; //Template list//returns a array with Template objects.onapp; //Create a VM//For more options check Onapp manual since these are directly pass to it.var options = memory: '1024' cpus: '1' cpu_shares: '50' hostname: 'tests.tests.com' label: 'VM from node' primary_disk_size: '10' swap_disk_size: '1' primary_network_id: '2' template_id: '6' hypervisor_id: 2 initial_root_password: '12345675' rate_limit: 'none'; //return a VirtualMachine objectonapp; //Get VM details//returns a array of VirtualMachine objectsonapp; //Get VM Listonapp; //Creating an user, billing plan and its resurcesonapp;