1.0.0 • Published 5 years ago

proxmox-connector v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

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)