XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How to create xen orchestra plugins

    Scheduled Pinned Locked Moved Unsolved Advanced features
    11 Posts 3 Posters 74 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • olivierlambertO Online
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      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 🙂

      1 Reply Last reply Reply Quote 1
      • I Offline
        irtaza9 @Ahkh3e
        last edited by

        is there any documentation for building the plugin and how to use in XO?

        1 Reply Last reply Reply Quote 0
        • A Offline
          Ahkh3e
          last edited by

          @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

          I olivierlambertO 2 Replies Last reply Reply Quote 1
          • I Offline
            irtaza9 @Ahkh3e
            last edited by irtaza9

            @Ahkh3e How you then imported this in XO?

            1 Reply Last reply Reply Quote 0
            • olivierlambertO Online
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              There is a "demo" plugin in here: https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-server-test-plugin

              1 Reply Last reply Reply Quote 1
              • olivierlambertO Online
                olivierlambert Vates 🪐 Co-Founder CEO @Ahkh3e
                last edited by

                @Ahkh3e Why not using the REST API which is doing exactly that out of the box?

                A 1 Reply Last reply Reply Quote 1
                • A Offline
                  Ahkh3e @olivierlambert
                  last edited by

                  @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

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Online
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    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 🙂 )

                    A 1 Reply Last reply Reply Quote 1
                    • A Offline
                      Ahkh3e @olivierlambert
                      last edited by

                      @olivierlambert Ty! sorry!, that would have been more efficient

                      1 Reply Last reply Reply Quote 0
                      • olivierlambertO Online
                        olivierlambert Vates 🪐 Co-Founder CEO
                        last edited by

                        Don't worry it's for you 😉

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post