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

    Fetching a list of available templates

    Scheduled Pinned Locked Moved Solved REST API
    4 Posts 3 Posters 324 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.
    • M Offline
      magentinos
      last edited by

      Hey guys,

      I'm implementing the module for HostFact to be able to interact with Xen Orchestra by REST API.
      And trying to figure out if there is a method to fetch the list of templates to be able to store them, to show related info on HostFact side and use its ID/UUID for VM creation requests?

      I'm newbie regarding XO and tried to find this information in the documentation and here on the forum, but so far without success.

      Could you please help to figure it out or at least point the direction in which I should dig down? Thanks.

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

        @magentinos All collections are listed when you get /rest/v0, amongst them there is the vm-templates collection.

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

          This question might be for both @julien-f and @ddelnano 😄

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

            @magentinos All collections are listed when you get /rest/v0, amongst them there is the vm-templates collection.

            M 1 Reply Last reply Reply Quote 2
            • M Offline
              magentinos @julien-f
              last edited by magentinos

              @julien-f I've tried templates, but not vm-templates 😅
              Thank you! It works that way.

              And yeah, I haven't tried to call just /rest/v0

              1 Reply Last reply Reply Quote 0
              • julien-fJ julien-f marked this topic as a question on
              • julien-fJ julien-f has marked this topic as solved on
              • P paco referenced this topic on
              • First post
                Last post