PVE API2: determine node of a vm

argonius

Renowned Member
Jan 17, 2012
48
1
71
Hi,

is it possible to get the actual node in a cluster, on which a vm is running, if I only know the vmid? so for example something like this:

$PVE->get_node('101);

and it will returns the node name on which the vm is running on?

this would be really helpfull...


thanks,
patrick
 
there is just one little question: /cluster/resources uses GET
so if i use $PVE->get i can not pass argument like type = vm....
on pvesh it works fine but how to use it in api?? i've also tried POST but does not work.

how to give the parameter type via api?

thanks,
patrick