npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

nutanix_prism

v1.0.19

Published

Nutanix Prism API Client

Readme

Nutanix Prism Rest API Consumption

This module is written simply to consume Prism API. It should be noted it's far from complete and only added to on an "as needed" basis for projects. If you would like to contribute, feel free.

TO USE:

let prism = require('nutanix_prism')

THEN CONSUME BY CREATING AN OPTIONS OBJECT IE:

let opts = {
    creds: {
        user:'prismUsername',
        pass:'prismPassword'
    }
    ip: 'prismIP',
    itemX: 'whateverElse'
}

THEN CALL THE PRISM METHOD/FUNCTION YOU NEED:

prism.cluster.get(opts)
.then(successData => {
    //handle success data
    console.log(successData)
})
.catch(err => {
    //handle failure data
    console.log(err)
})

Currently Supported Commands/Options

NOTE: All opts require opts.ip, and opts.creds that include username & password NOTE: NOT ALL COMMANDS THAT ARE AVAILABLE ARE CURRENTLY DOCUMENTED. I STRONGLY RECOMMEND USING A PROGRAM LIKE VSCODE THAT WILL SUGGEST (ALL METHODS ARE DOCUMENTED BEFORE THE FUNCTION). ALTERNATIVELY YOU CAN BROWSE THE /lib DIRECTORY AND SEE WHAT METHODS ARE AVAILABLE. HOPEFULLY THIS DOCUMENTATION WILL BE UPDATED SHORTLY.


CLUSTER

prism.cluster.get(opts)

CONTAINERS

prism.container.create(opts)

required: opts.storagePoolUUID, opts.containerName

optional: opts.compressionEnabled (true|false), opts.compressionDelayInSecs (integer), opts.fingerPrintOnWrite (true|false), opts.onDiskDedup (true|false)

prism.container.delete(opts)

required: opts.containerUUID

prism.container.getByName(opts)

required: opts.containerName

CONTAINER DATASTORES

prism.container.datastores(opts)

required: opts.containerName, opts.containerName, opts.nodeIds[]

prism.container.datastores.delete(opts)

required: opts.containerName, opts.nodeIds[]

EVENTS

prism.event.get(opts)

required: opts.startTime

HOST

prism.host.get(opts)

.

prism.host.nics(opts)

required: opts.hostUUID

IDEMPOTENCE IDENTIFIERS

prism.idempotence.create(opts)

required: opts.identifier, opts.count

IMAGES

prism.image.createDisk(opts)

required: opts.containerName, opts.imageUrl, opts.imageName

optional: opts.annotation

prism.image.createIso(opts)

required: opts.containerName, opts.imageUrl, opts.imageName

optional: opts.annotation

prism.image.get(opts)

required: opts.imageID

NETWORKING

prism.networks.create(opts)

required: opts.networkName, opts.vlanID

optional: opts.annotation

prism.networks.delete(opts)

required: opts.networkUUID

prism.networks.get(opts)

PROTECTION DOMAINS

prism.protectionDomain.create(opts)

required: opts.protectionDomainName

prism.protectionDomain.delete(opts)

required: opts.protectionDomainName

prism.protectionDomain.get(opts)

required: opts.protectionDomainName

prism.protectionDomain.schedules.delete(opts)

required: opts.protectionDomainName

prism.protectionDomain.snapshots.delete(opts)

required: opts.protectionDomainName, opts.snapshotId

prism.protectionDomain.snapshots.get(opts)

required: opts.protectionDomainName

prism.protectionDomain.unprotectVMs(opts)

required: opts.protectionDomainName

REMOTE SITES

prism.remoteSite.delete(opts)

required: opts.remoteSiteID, opts.vmArray[]

SCENARIOS

prism.scenario.create(opts)

SNAPSHOTS

prism.snapshots.create(opts)

required: opts.uuid(of the vm to snapshot), snapshotType(<APPLICATION_CONSISTENT/CRASH_CONSISTENT>), and nameOfSnapshot

prism.snapshots.delete(opts)

required: opts.uuid(of the snapshot to delete)

prism.snapshots.getByUUID(opts)

required: opts.uuid (snapshotUUID)

prism.snapshots.getAllSnapshots(opts)

SSP

prism.ssp.images.delete(opts)

required: opts.imageUUID

prism.ssp.images.getByName(opts)

required: opts.imageName

prism.ssp.images.projects(opts)

required: opts.projectUUID

prism.ssp.getByName(opts)

required: opts.projectName

prism.ssp.roles.delete(opts)

required: opts.roleUUID

prism.ssp.roles.getByName(opts)

required: opts.roleName, opts.roleName

STORAGE POOLS

prism.storagePool.get(opts)

TASKS

prism.task.get(opts)

required: opts.taskUUID

prism.task.getAll(opts)

optional: opts.startTime (usecs Number), opts.type (operation type Array [string, string]), opts.includeCompleted (boolean default: true), includeSubTask (boolean default: false)

VMs

prism.vm.create(opts)

required: opts.body // Full Body Syntax for creating VM

prism.vm.delete(opts)

required: opts.vmUUID

prism.vm.get(opts)

.

prism.vm.getByName(opts)

required: opts.vmName

prism.vm.start(opts)

required: opts.vmUUID

prism.vm.getNetwork(opts)

required: opts.vmUUID

VOLUME GROUPS

prism.volumeGroup.delete(opts)

required: opts.volumGroupUUID

prism.volumeGroup.get(opts)