xenapi2

XenAPI bindings in Node.js

Usage no npm install needed!

<script type="module">
  import xenapi2 from 'https://cdn.skypack.dev/xenapi2';
</script>

README

node-xenapi

Usage

var xenapi = require("xenapi2")({
    host: "xen-server",
    port: "80"
});

xenapi.session.login("username", "password")
    .then(function () {
        xenapi.vmCollection.list().then(function (vms) {
            console.log(vms);
        });
    });