@rackn/digitalrebar-api
Provides a basic TypeScript API wrapper over RackN Digital Rebar. This API was generated by .
Install
npm i @rackn/digitalrebar-api
Importing
Node:
const DRApi = require('@rackn/digitalrebar-api');
ES6:
import DRApi from '@rackn/digitalrebar-api';
Usage
const drp = new DRApi('my-endpoint');
// authenticate with a token
drp.setToken('my-token');
// or, authenticate with a username and password
drp.setLogin('username', 'password');
// ...
const cluster: DRMachine = { ... };
await drp.clusters.create(cluster);