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

Dietmar Maurer dietmar at proxmox.com
Thu Sep 13 05:58:19 CEST 2012

> I would like to create a small tool which will act as a dhcp addon to proxmox
> and simulate a dhcp server with perl.

How should that work exactly?

> 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?

To get the configuration for VM 100:

# pvesh get /nodes/localhost/qemu/100/config

also see: http://pve.proxmox.com/wiki/Proxmox_VE_API

More information about the pve-devel mailing list