Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : Errors in API calls - need some help



Threaded Mode | Print  

 Errors in API calls - need some help, Trying to make an API call to Virtualizor, but it always return an error (0 Replies, Read 4717 times)
uname-r
Group: Member
Post Group: Newbie
Posts: 38
Status:
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 :)


IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 27, 2024, 11:26 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.024