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

Alexandre DERUMIER aderumier at odiso.com
Thu Sep 13 05:29:25 CEST 2012


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 



More information about the pve-devel mailing list