UrielCh / proxmox-api

TypeScript Api for proxmox
56 stars 15 forks source link

support for version 7 #4

Closed DeanKamali closed 2 years ago

DeanKamali commented 2 years ago

I'm using PVE, version 7, they which includes a new API endpoint that deals with downloading ISOs, download_url documented here

I think this package could use an update to include new mapping.

Following the convention, the API should work like so:

const nodes = await pve.nodes.$get();
    // iterate cluster nodes
    for (const node of nodes) {
      const theNode = pve.nodes.$(node.node);
      theNode.storage.$('local').download_url.$post({
        url: 'https://download.iso'
      })
    }
UrielCh commented 2 years ago

Updating the project soon... I'm back on proxmox this week

UrielCh commented 2 years ago

try the beta version:

npm install proxmox-api@beta
UrielCh commented 2 years ago

I'm using V7, and it works.