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

    vm-templates query param support

    Scheduled Pinned Locked Moved REST API
    6 Posts 3 Posters 739 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.
    • I Offline
      irtaza9
      last edited by

      I want to get more information about templates like which pool have this template available, name, description and other information so that I can extract vm-templates on the basis of pool id.

      02bc3b75-2391-403a-9495-02b0bb2a2ed5-image.png

      1 Reply Last reply Reply Quote 0
      • DanpD Online
        Danp Pro Support Team
        last edited by

        There isn't an ID field. Change this to UUID and it should work as you intended.

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

          @Danp

          XOA version: 5.103.1

          as /networks endpoint take query params for filtration and return the same values in JSON I want the same in /vm-templates endpoint. I passed the UUID as a value to field key but the response is same.

          e42ea80f-2ec3-48ea-a105-4eab67a86656-image.png

          6ddee5e2-b4a8-4bbf-b713-9eae1f8e5b9e-image.png

          MathieuRAM 1 Reply Last reply Reply Quote 0
          • MathieuRAM Offline
            MathieuRA Vates 🪐 XO Team @irtaza9
            last edited by MathieuRA

            Hi @irtaza9
            You have a typo in your vm-templates URL.
            fields instead of field

            I 1 Reply Last reply Reply Quote 2
            • DanpD Online
              Danp Pro Support Team
              last edited by

              Yes, it should work correctly if you use fields. Also, I think uuid need to be lower case.

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

                @MathieuRA @Danp Thank you so much 🤛

                1 Reply Last reply Reply Quote 0

                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