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

    Syntax and Examples for XO-Server webhooks

    Scheduled Pinned Locked Moved Xen Orchestra
    9 Posts 3 Posters 592 Views 2 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.
    • B Offline
      BeDazzleMe
      last edited by

      Hi All,

      I have just started playing with XO-Server webhooks, however I can't tell if my syntax is incorrect and I am not sure of the exact syntax to use when attempting webhooks.

      I have read through the documentation but I can't find any working examples of webhooks.

      Can someone please point me in the right direction or maybe provide an example of a working webhook to start or restart a VM ?

      Many thanks

      Darren.

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

        Hi!

        Let's ping @pdonias or @julien-f 🙂

        1 Reply Last reply Reply Quote 0
        • B Offline
          BeDazzleMe
          last edited by

          Thanks Olivier. Surely someone is using webhooks and can share an example http request into XO-Server to start a VM.

          The rest I can work out from there.

          Cheers,

          D.

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

            Please reping them tomorrow 🙂

            1 Reply Last reply Reply Quote 0
            • B Offline
              BeDazzleMe
              last edited by

              OK no worries, thanks OL.

              1 Reply Last reply Reply Quote 0
              • pdoniasP Offline
                pdonias Vates 🪐 XO Team
                last edited by

                Hi @BeDazzleMe,

                Can someone please point me in the right direction or maybe provide an example of a working webhook to start or restart a VM ?

                web hooks allow you to be notified when something happens in XO, not the other way around, at least for now. You can find an example there: https://xen-orchestra.com/docs/advanced.html#request-handling.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  BeDazzleMe
                  last edited by

                  Thanks @pdonias much appreciated.

                  My goal was to pass commands to XO-Server from a secure VM that can start/restart VMs via script.

                  I'm really struggling to integrate XCP-NG remote control functionality and now may need to start looking at something else.

                  Cheers

                  D.

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

                    So just use xo-cli 🙂

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      BeDazzleMe
                      last edited by

                      Because I want to push users through a web portal interface which can obtain information from XO-Server for presentation back (ie: VM status, parameters, etc) whilst also allowing users to start/restart/shutdown VMs.

                      We looked at XOA however it was too expensive and the free version has nag text messages which I don't want presented to users.

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