retspen / webvirtcloud

WebVirtCloud is virtualization web interface for admins and users
1.63k stars 362 forks source link

Is there an API ? #466

Open JamesDAdams opened 2 years ago

JamesDAdams commented 2 years ago

Hi,

i use Webvirtcloud for start my vm, but i would like start a script when the server power on request is sent and when it is off would it be possible to have an api for that ?

Tanks.

catborise commented 2 years ago

do you make something on vm’s OS with script?

JamesDAdams commented 2 years ago

No, I can't, because I want to run a script before the vm starts, if that is not possible where is the webvirtcloud log file located ? Because I can do a bash script that checks the log file every x seconds to see if a vm has been started

JamesDAdams commented 2 years ago

Hi,

Is there a log file that displays the same logs as on the logs web page ?

Thanks.

catborise commented 2 years ago

the logs does not write to the log files only to database but we can write them also to files.

catborise commented 1 year ago

With Django REST Framework, REST API is implemented. for now; compute, instance : list, create, update, delete operations can be performed. also instance, power on/off, etc. operations can be done with rest api. you can check http:///swagger, http:///redoc to see capabilities.