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 ?