Hi,
I'm doing the following call to the Virtualizor API :
PHP Code require_once('../path/virtualizor-enduser.php');
$key = 'AAAAAAAAA'; //server API key
$pass = 'XXXXXXXX'; //API key password
$ip = '111.111.111.111'; //virtualizor ip address
$port=4083;
$protocol='https';
$listvm = new Virtualizor_Enduser_API($ip, $key, $pass, $port, $protocol);
$listvm->r($listvm->listvs());
var_dump($listvm);
The var_dump return this :
Code object(Virtualizor_Enduser_API)#1 (6) {
["key"]=>
string(32) "AAAAAAAAA"
["pass"]=>
string(32) "XXXXXXXX"
["ip"]=>
string(13) "111.111.111.111"
["port"]=>
int(4083)
["protocol"]=>
string(4) "http"
["error"]=>
array(0) {
}
}
Don't know if this is related or not, but on the side of the virtualizor server, in the emps logs, i can see this :
Code [26-Sep-2014 21:44:09] WARNING: [pool regular] child 6461 said into stderr: "chattr: Permission denied "
[26-Sep-2014 21:44:09] WARNING: [pool regular] child 6461 said into
stderr: "while setting flags on
/usr/local/virtualizor/license.php"
Am i doing something wrong, or if it's a license issue? Am i missing something? I just installed virtualizor on a test server, added an IP, and created a test vm. I can get a ping from this vm, so everything should be working good for testing.
In virtualizor > Configuration > License i can see the Status :
Active
Boths servers (dev and virtualizor) are having iptables switched off while testing this.
Thank you in advance for your help
cheers
|