proxmox-lib

1.0.17 • Public • Published

Proxmox Simple Library

Status

  • In progress

Requirements

Install

npm install proxmox-lib

Use

  var px = require('proxmox-lib')({
    url: 'https://localhost:8006',
    user: 'root',
    password: 'password',
    node: ['node1', 'node2'],
    templateStorage: 'local',
    vncserver: 'https://localhost:8006'
  });

Functions

  • px.status(callback) -> Cluster status

  • px.nextId(callback) -> Next free VM ID

  • px.nodeStatus(callback) -> Node status

  • px.listTemplates(callback) -> List container available templates

  • px.deleteContainer(id, callback) -> Delete the container

  • px.statusContainer(id, callback) -> Status of container

  • px.vncContainer(id, callback) -> Url for vnc terminal

  • px.startContainer(id, callback) -> Start container

  • px.stopContainer(id, callback) -> Stop container

  • px.createContainer(options, callback) -> Create container

    • template: 'string',
    • cpu: 'number',
    • hostname: 'string',
    • memory: 'number|megabytes',
    • ostype: 'string|ubuntu,debian,centos,archlinux',
    • storage: 'string',
    • swap: 'number|megabytes',
    • disk: 'number|gigabytes',
    • password: 'string'

Readme

Keywords

none

Package Sidebar

Install

npm i proxmox-lib

Weekly Downloads

2

Version

1.0.17

License

MIT

Last publish

Collaborators

  • kidandcat