[pve-devel] batch migrate : add a optionnal flag to check available memory on target node ?

Dietmar Maurer dietmar at proxmox.com
Sat Jan 13 13:20:13 CET 2018


> On January 13, 2018 at 11:45 AM Alexandre DERUMIER <aderumier at odiso.com>
> wrote:
> 
> 
> > How is it possible to get stats of targetnode, from sourcenode ? (cluster 
> > resources api ?) 
> 
> >># pvesh get /cluster/resources --type node 
> 
> Thanks Dietmar. 
> 
> But does I really need to do a run_command('pvesh ...'), parse the json, ... 
> Isn't it possible to use a perl function to do it ?

This was just an example using pvesh to access the API.

https://pve.proxmox.com/wiki/Proxmox_VE_API

For perl, you can use:

https://git.proxmox.com/?p=pve-apiclient.git;a=summary

On pve nodes, you can also use code from PVE::API2Tools and other libs.




More information about the pve-devel mailing list