How to create xen orchestra plugins
-
Question for @julien-f
In the meantime, can you explain more in details what do you have in mind? This will be helpful to point you to the right direction
-
is there any documentation for building the plugin and how to use in XO?
-
@olivierlambert took sometime digging through the other plugins and also having github copilot look it over,
made a working plugin here
https://github.com/Ahkh3e/xo-server-webhook-vm-control
allows for webhook control of vms with a status return
-
@Ahkh3e How you then imported this in XO?
-
There is a "demo" plugin in here: https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-server-test-plugin
-
@Ahkh3e Why not using the REST API which is doing exactly that out of the box?
-
@olivierlambert would be so much easier with the existing REST, i think it was only working with cookie auth, MAAS required header auth which was why i went down this rabbit hole
-
Ping @mathieuRA about this. Maybe that would be more efficient if you asked from the start what do you need, to know if it's doable on our side (maybe it's not, but it's better to ask in case it's trivial
)
-
@olivierlambert Ty! sorry!, that would have been more efficient
-
Don't worry it's for you