> On January 13, 2018 at 11:45 AM Alexandre DERUMIER <aderum...@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.

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to