api or how to ...

Thats a big security whole! Instead tunnel the port using ssh.



I can just show you how to do it with our perl infrastructure. A simple example is:

Code:
#!/usr/bin/perl -w
use strict;
use PVE::ConfigServer;
use Data::Dumper;
 
my $conn = PVE::ConfigClient::connect (); # open connection
 
my $vzlist = $conn->cluster_vzlist()->result; # SOAP call
 
print Dumper ($vzlist); # print result
You can find more examples in the html code (/var/www/pve/vmlist/*.htm)

- Dietmar
I don't want to wait anymore
I have started a fork of a virtuozzo module for whmcs
I just want as whmcs admin to connect to the proxmox master server and create/stop/start or destroy an openvz vm, I don't need any user management today
my problem now is that in proxmox ve 1.7 the code is minified in
/usr/share/pve-manager/root/vmlist and very hard to read

so there are three ways for me to investigate
- an ssh tunnel and standard openvz shell command
- find a readable version of vmlist and doing this the perl way
- working on an unstable beta version of APi 2.0

what is your recommandation ?
 

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!