[pve-devel] Finding a VM's Node via API

Dietmar Maurer dietmar at proxmox.com
Thu Jan 15 09:50:09 CET 2015

# pvesh get /cluster/resources -type vm

But I have no idea how to extract the result inside a shell script?

> I'm adapting spice-example.sh to just require a VMID, so we can launch a
> spice client from the cmd line without needing to know which node it is on.
> Is there an API call for finding a VM's node from its id? or an alternative
> way of handling this?
> Thanks,
> -- 
> Lindsay
> _______________________________________________
> 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