/proxmox-connector

Module that simplifies the connection to a Proxmox Cluster API

Primary LanguageJavaScript

Proxmox Connector

Simple class that simplify the connection to Proxmox nodes or cluster. Inspired by proxmox.

Usage

let ProxConn = require('proxmox-connector')

async function exampleClusterStatus () {
	let proxconn = new ProxConn('nodeip', '8006', 'root@pam', 'yourpassword')
	await proxconn.authorize()
	let dataCluster = await proxconn.get('/cluster/status')
	console.log('Data Cluster--->', dataCluster)
}

exampleClusterStatus()

Example Methods

await proxconn.get(URL)
await proxconn.post(URL, DATAJSON)
await proxconn.put(URL)
await proxconn.delete(URL)