dome9
1.1.0 • Public • Published dome9.js
Documentation
Usage
npm install --save dome9
let Dome9 = require('dome9');
let dome9 = new Dome9(USERNAME, APIKEY);
Class Functions
Promises
- .getAgentServers()
- .getAgentServerById(id)
- .getAccessLeases()
- .getIplists()
- .createIplist(name, description, items)
- .updateIplist(ip, description, items)
- .deleteIplist(id)
- .getIplistItems(id)
- .createIplistItem(id, ip, comment)
- .deleteIplistItem(id, ip)
- .getBlacklist()
- .getBlacklistByIp(ip)
- .deleteBlacklistByIp(ip)
- .createBlacklistItem(ip, comment, ttl)
- .updateBlacklist(items)
- .getAccessLeaseById(id) // Endpoint does not seem to presently access ID correctly
- .createLease(serviceURI, name)
- .deleteLeaseById(id)
Example
'use strict';
let co = require('co');
let Dome9 = require('dome9');
const USERNAME = '';
const APIKEY = '';
let start = function () {
co(function *() {
let dome9 = new Dome9(USERNAME, APIKEY);
let servers = yield dome9.getAgentServers();
console.log('servers', servers);
}).catch(function (err) {
console.error(err.stack);
});
};
start();
Author
Peter A. Tariche
Package Sidebar
Install
Weekly Downloads