[pve-devel] API to get mac and vm id

Dietmar Maurer dietmar at proxmox.com
Thu Sep 13 06:31:57 CEST 2012



> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Alexandre DERUMIER
> Sent: Donnerstag, 13. September 2012 05:29
> To: Stefan Priebe - Profihost AG
> Cc: pve-devel at pve.proxmox.com
> Subject: Re: [pve-devel] API to get mac and vm id
> 
> Hi Stefan,
> >>I would like to create a small tool which will act as a dhcp addon to
> proxmox and simulate a dhcp server with perl.
> Great ! I would like to have something like this too :)
> 
> >>For this I need a way to get all vm ids and their nic's through the proxmox
> api. Is there a good starting example how to use the API for this?
> 
> http://pve.proxmox.com/wiki/Proxmox_VE_API
> 
> list all vms
> pvesh get /cluster/resources --type vm
> 
> get vm config
> pvesh get /nodes/{node}/qemu/{vmid}/config
> 
> 
> 
> ----- Mail original -----
> 
> De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag>
> À: pve-devel at pve.proxmox.com
> Envoyé: Mercredi 12 Septembre 2012 19:55:06
> Objet: [pve-devel] API to get mac and vm id
> 
> Hello list,
> 
> I would like to create a small tool which will act as a dhcp addon to proxmox
> and simulate a dhcp server with perl.
> 
> For this I need a way to get all vm ids and their nic's through the proxmox
> api. Is there a good starting example how to use the API for this?
> 
> Is there a way at all?
> 
> Greets
> Stefan
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


More information about the pve-devel mailing list