Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.
/ netboxjs Public archive

Javascript API wrapper for the Netbox API

License

Notifications You must be signed in to change notification settings

woodjme/netboxjs

Repository files navigation

Netboxjs

Maintainability

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

Releases

No releases published

Packages