New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dome9

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dome9

Dome9 Javascript Library

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
increased by87.5%
Maintainers
1
Weekly downloads
 
Created
Source

dome9.js

Documentation

  • API Reference
  • API Console

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();
        // let server        = yield dome9.getAgentServerById();
        // let accessLeases  = yield dome9.getAccessLeases();
        // let accessLease   = yield dome9.getAccessLeaseById();
        // let blacklist     = yield dome9.getBlacklist();
        // let blacklistIp   = yield dome9.getBlacklistByIp();
        // let ipLists       = yield dome9.getIplists();

        console.log('servers', servers);
        // console.log('server', server);
        // console.log('accessLeases', accessLeases);
        // console.log('accessLease', accessLease);
        // console.log('blacklist', blacklist);
        // console.log('blacklistIp', blacklistIp);
        // console.log('ipLists', ipLists);
      }).catch(function (err) {
        console.error(err.stack);
      });
    };

    start();

Author

Peter A. Tariche

Keywords

FAQs

Package last updated on 06 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc