Launching a script from the API

Thomesc

New Member
Jul 26, 2016
13
0
1
27
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!