proxmox-connector

1.0.0 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i proxmox-connector

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

5.95 kB

Total Files

6

Last publish

Collaborators

  • tsadda25