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 🙏

© 2026 – Pkg Stats / Ryan Hefner

vsphere-schema

v1.0.1

Published

vSphere API Schema in JSON format

Readme

vsphere-schema


vsphere-schema is a collection of vSphere API schemas in JSON format along with a few methods to navigate the schema. Versions 2.5 - 6.0 are currently included. All data has been scraped from VMware provided documentation and compiled using vsphere-doc-scrape.


Format

vSphere Objects are stored in the following format. Objects with circular references have those references replaced with a "[Circular]"

<Version> {Object} - API version, keyed on the version string 2.5 - 6.0

  • <Type Name>
    • type {string} - Name of the type
    • [inherits] {string} - The name of the type that this Type inherits from
    • properties {Object} - Hash of properties and their types
      • [<Property Name>] {Object | string} - Either an XML data type string or a Type object
    • methods {Object} - Hash of methods
      • [<Method Name>] {Object} - Method object
        • [deprecated] {string | boolean} - Name of the replacement method or if true completely removed
        • params {Object} - Parameter hash
          • <Param Name> {Object} - Parameter object
            • required {boolean} - If the parameter is required
            • type {string} - Type name
        • returns {string | none} - Type returned by the method

API

.getSchema(version)

A simple method to get a specific schema

Parameters

  • version {string} - API version 2.5 - 6.0

Returns {Object} - The schema object

.hasMethod(version, type, method)

Check if a method exists

Parameters

  • version {string} - API version 2.5 - 6.0
  • type {string} - Type name
  • method {string} - Method name

Returns {boolean} - Whether the method exists

.hasProperty(version, type, property)

Check if a property exists

Parameters

  • version {string} - API version 2.5 - 6.0
  • type {string} - Type name
  • property {string} - Property name

Returns {boolean} - Whether the property exists

.getProperty(version, type, property)

Get a property

Parameters

  • version {string} - API version 2.5 - 6.0
  • type {string} - Type name
  • property {string} - Property name

Returns {*} - The property

.getEventTypes(version)

Gets the names of all Types ending with Event

Parameters

  • version {string} - API version 2.5 - 6.0

Returns {string[]} - Event Type names


Examples

var vschema = require('vsphere-schema');

// access version 4.1
var v41 = vschema['4.1']
console.log(v41.VirtualMachine);

// or using the getSchema method get version 5.0
var v50 = vschema.getSchema('5.0');
console.log(v50.VirtualMachine);

// check if a property exists
var pExists = vschema.hasProperty('6.0', 'Datastore', 'name');
// pExists = true

// get a specific property
var prop = vschema.getProperty('5.5', 'VirtualMachine', 'config');

// check if a method exists
var mExists = vschema.hasMethod('6.0', 'VirtualMachine', 'Remove');
// mExists = false