webvirtcloud icon indicating copy to clipboard operation
webvirtcloud copied to clipboard

Is there an API ?

Open JamesDAdams opened this issue 4 years ago • 5 comments

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.

JamesDAdams avatar Oct 28 '21 20:10 JamesDAdams

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

catborise avatar Oct 29 '21 19:10 catborise

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 avatar Oct 30 '21 07:10 JamesDAdams

Hi,

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

Thanks.

JamesDAdams avatar Dec 05 '21 06:12 JamesDAdams

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

catborise avatar Dec 06 '21 06:12 catborise

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://<webvirtcloud_installaiton_address:port>/swagger, http://<webvirtcloud_installaiton_address:port>/redoc to see capabilities.

catborise avatar Aug 22 '22 12:08 catborise