Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : admin api listvs not showing all vps



Threaded Mode | Print  

 admin api listvs not showing all vps (2 Replies, Read 751 times)
kissze
Group: Member
Post Group: Newbie
Posts: 3
Status:
Hello,

I would like to make a script which can gather all information about our vms. We have 600+ vps instances, and i can't figure it out how can i get the whole list from the api.
I can get only 50 vps from the api, even if i set $reslen to 200 and $page to 1 or 10 or anything.
Can anybody suggest a solution to get all the vpses from our system? What is the magic parameter for that? :)
Installed version 2.9.8
Patch level 6

Thank you!

Regards,
Zoltan

ps: also, we can't do a search with the bpid, but its not so important, just fyi
IP: --   

admin api listvs not showing all vps
kilobyte_108
Group: Member
Post Group: Newbie
Posts: 3
Status:
Hi,

Try with this,

$admin = new Virtualizor_Admin_API($ip, $key, $pass);
   
$post = array();

$output = $admin->listvs(0, 10000, $post);

IP: --   

admin api listvs not showing all vps
kissze
Group: Member
Post Group: Newbie
Posts: 3
Status:
Hi,

Its working, thanks :)


Regards,
Zoltan
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 2, 2024, 7:04 am.

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