vultr.js

1.2.4 • Public • Published

vultr.js

This is a simple and complete port of the vultr api in node.js.

Installation

npm install vultr.js

Get started

Authentication with an api key

vultr.setToken('your token here');

Get all applications available

vultr.getApplications(function (err, data) {
  if (err) throw err;
  console.log(data);
});

Get account info

vultr.getAccountInfo(function (err, data) {
  if (err) throw err;
  console.log(data);
});

Get plans

vultr.getPlans(function(err, data) {
  if (err) throw err;
  console.log(data);
});

Create new server named helloworld at Paris with 768 MB of ram and with Debian 8 jessie

vultr.createServer({DCID: 24, VPSPLANID: 29, OSID: 194, label: 'helloworld'}, function (err, data) {
  if (err) throw err;
  console.log(data);
});

Readme

Keywords

Package Sidebar

Install

npm i vultr.js

Weekly Downloads

1

Version

1.2.4

License

GPL-3.0

Last publish

Collaborators

  • icroque