Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : API



Threaded Mode | Print  

 API, I want to use API (7 Replies, Read 918 times)
efimius@gmail.com
Group: Member
Post Group: Newbie
Posts: 12
Status:
Hello Guys,


Can you please show me me an example of a  request to the API to get a  list of servers?

I would like to use curl - a cli tool.  I would like to have an output in JSON

I am not planning to use PHP and don't have access to the console of the master node but I have its virtualizator key and  pass.

I also wonder if there is a way to execute  a command on slave nodes
IP: --   

API
chirag
Group: Virtualizor Team
Post Group: Elite Member
Posts: 306
Status:
Hi,

Sir at the moment there is not such CLI utility.

>> I am not planning to use PHP and don't have access to the console of the master node but I have its virtualizator key and  pass.

What do you mean you do not have access to console ?
If you have API key and pass you must have access to virtualizor panel.

>> I also wonder if there is a way to execute  a command on slave nodes
No.

-----------------------
Chirag Nagda
Software Developer
Softaculous Ltd
IP: --   

API
efimius@gmail.com
Group: Member
Post Group: Newbie
Posts: 12
Status:
Sir,


We have  150+ hosts,  I was going to use Virtualizator to build a list of hosts.

I planned to use this list as a dynamic inventory for Ansible.

Of course, I can use pure ssh to send direct requests to the master node,  but
I supposed that if there is  an API  I can simply send POST or GET request over https

So my question is: Can I send a request over https to the Master node to get a reply in JSON?

If the answer is yes, please share with me an example of such request.
IP: --   

API
efimius@gmail.com
Group: Member
Post Group: Newbie
Posts: 12
Status:
Another reason  why we wanted to be able to send pure https requests  was that we wanted to fully automate the process of provisioning  new nodes
IP: --   

API
chirag
Group: Virtualizor Team
Post Group: Elite Member
Posts: 306
Status:
Hi,

Sir please come on Skype so that we can chat over Skype and that will be faster to provide you support.

Our ID id : virtualizor

Let us know.

-----------------------
Chirag Nagda
Software Developer
Softaculous Ltd
IP: --   

API
efimius@gmail.com
Group: Member
Post Group: Newbie
Posts: 12
Status:
Replied via PM

I am not able to add a new contact on skype, Will be able to contact me?
IP: --   

API
efimius@gmail.com
Group: Member
Post Group: Newbie
Posts: 12
Status:
Can we talk  in hangout?
IP: --   

API
chirag
Group: Virtualizor Team
Post Group: Elite Member
Posts: 306
Status:
Hi,

I have added you on Skype.

-----------------------
Chirag Nagda
Software Developer
Softaculous Ltd
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is November 18, 2018, 4:01 am.

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