Hi, we want use api running shell
running eg: wget https ://www.abc.com/install.sh
if we use php, how to use api call this. tks please give me guide.
notice: just use api , no login pve web gui config. tks
what you're looking for is POST /nodes/{node}/qemu/{vmid}/agent/exec and GET /api2/json/nodes/{node}/qemu/{vmid}/agent/exec-status. Note: The VM has to have the qemu-guest-agent[1] enabled.
what you're looking for is POST /nodes/{node}/qemu/{vmid}/agent/exec and GET /api2/json/nodes/{node}/qemu/{vmid}/agent/exec-status. Note: The VM has to have the qemu-guest-agent[1] enabled.
sorry, we no plan on qemu node running shell.
we wish direct pve node running shell use api
eg : in pve server shell running wget http://www/abc.com/install.sh & bash install.sh
The PVE API does not support arbitrary command execution. I'd recommend looking at some config management software like Ansible, or if it is only needed in a single instance, just SSH into the instance.
Note: running install.sh scripts may be dangerous so be sure to check what the script does before running it
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.