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

    Has REST API changed (Cannot GET backup logs)?

    Scheduled Pinned Locked Moved Solved REST API
    7 Posts 3 Posters 969 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.
    • DustyArmstrongD Offline
      DustyArmstrong
      last edited by

      Hi there,

      I just updated my Xen Orchestra container and found that I can no longer retrieve backup info from the REST API. The path appears to be the same but it returns Cannot GET /rest/v0/backup/logs/1685818800068. Previously I was able to see the job info.

      Has something changed or is this just a me problem? I've rolled back my update for now. Afraid I don't know what version of XO I'm on as the About page no longer seems to provide that info. The image is about 6 weeks old.

      julien-fJ 1 Reply Last reply Reply Quote 0
      • julien-fJ Offline
        julien-f Vates 🪐 Co-Founder XO Team @DustyArmstrong
        last edited by

        @DustyArmstrong Fixed: https://github.com/vatesfr/xen-orchestra/commit/b0c37df8d73beb9589dc28e32d5a4409a48a9272

        Let me know if you have any issues.

        0 julien-f committed to vatesfr/xen-orchestra
        fix(xo-server/rest-api): /backup/log/<id>
        
        Introduced by 037e1c1df
        
        Fixes https://xcp-ng.org/forum/post/69426
        DustyArmstrongD 1 Reply Last reply Reply Quote 2
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          Hi!

          Have you read https://xen-orchestra.com/blog/xen-orchestra-5-90/#📡-rest-api ?

          Also I think @julien-f made it transparent 🤔

          DustyArmstrongD 1 Reply Last reply Reply Quote 0
          • julien-fJ Offline
            julien-f Vates 🪐 Co-Founder XO Team @DustyArmstrong
            last edited by

            @DustyArmstrong There is indeed a bug, I'll push a fix soon.

            1 Reply Last reply Reply Quote 0
            • DustyArmstrongD Offline
              DustyArmstrong @olivierlambert
              last edited by

              @olivierlambert Yes but didn't see any changes for backup/logs which is where the issue seemed to arise from. I pull the status from each log entry not the job info itself.

              @julien-f awesome, thanks!

              julien-fJ 1 Reply Last reply Reply Quote 1
              • julien-fJ Offline
                julien-f Vates 🪐 Co-Founder XO Team @DustyArmstrong
                last edited by

                @DustyArmstrong Fixed: https://github.com/vatesfr/xen-orchestra/commit/b0c37df8d73beb9589dc28e32d5a4409a48a9272

                Let me know if you have any issues.

                0 julien-f committed to vatesfr/xen-orchestra
                fix(xo-server/rest-api): /backup/log/<id>
                
                Introduced by 037e1c1df
                
                Fixes https://xcp-ng.org/forum/post/69426
                DustyArmstrongD 1 Reply Last reply Reply Quote 2
                • DustyArmstrongD Offline
                  DustyArmstrong @julien-f
                  last edited by

                  @julien-f Thank you and thank you for the quick resolution, you guys rock.

                  julien-fJ 1 Reply Last reply Reply Quote 1
                  • julien-fJ Offline
                    julien-f Vates 🪐 Co-Founder XO Team @DustyArmstrong
                    last edited by

                    @DustyArmstrong Thanks for your report 🙏

                    1 Reply Last reply Reply Quote 0
                    • olivierlambertO olivierlambert marked this topic as a question on
                    • olivierlambertO olivierlambert has marked this topic as solved on

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • First post
                      Last post