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

Daniel Hunsaker danhunsaker at gmail.com
Thu Jan 15 11:49:56 CET 2015


There are a number of command line tools for just that; Lindsay appears to
be using jq.

On Thu, Jan 15, 2015, 01:50 Dietmar Maurer <dietmar at proxmox.com> wrote:

> # 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
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20150115/02ad0cb2/attachment.htm>


More information about the pve-devel mailing list