Access to API

hi,

try to see if you can access it with curl from inside the VM. use the -v flag for verbose info (to see what's going on)

use the IP of the PVE host, and don't forget the port 8006
 
use --output-format=json or json-pretty with your pvesh command.

afterwards you can parse the json with whatever you like
 
Do you have an example how I could possibly use the returned json?

Especially for pvesh get /cluster/ressources to store the value on which host the vm is running in a variable.