Launching a script from the API

Thomesc

New Member
Jul 26, 2016
13
1
1
28
Hi there,

I'd like to know if there is a way to execute a shell script in my proxmox server from a web interface using the API,
also I'd like to launch scripts in my containers from this API and I'm going to try to do it with 'vzctl exec XXX script' but again how do I send this command line to the server using the API ?

I don't know if what I'm asking is possible, and if it's not I was thinking about connecting to the server and/or the containers with ssh but I don't know how to do it right now so any piece of help is welcome.
 
There's no API call to run arbitrary commands. You have to use ssh.