netboxjs
v0.0.7
Published
Javascript API wrapper for the Netbox API
Downloads
3
Readme
Netboxjs
Development
This repo is currently under heavy development with an aim to provide a complete API wrapper for Netbox
Installation
npm install netboxjs
Example
let netboxjs = require('netboxjs');
let netboxClient = new netboxjs({
host: String,
token: String,
defaultLimit: Int,
defaultOffset: Int
});
netboxClient.getVirtualMachines({
limit: 1
})
.then(response => {
response.data.results.forEach(vm => {
console.log(vm)
});
})
.catch(error => {
console.error(error.response.statusText);
});