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

    xoa api SR space usage

    Scheduled Pinned Locked Moved Xen Orchestra
    4 Posts 3 Posters 267 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.
    • V Offline
      vmpr
      last edited by

      hi team,

      we were wondering, is it possible to get the usage of the SRs of a pool from the xoa API so we could monitor it?
      also is there a list somewhere online of what information we can get from the xoa API at the moment? I don't want to bother you with my questions all the time, easier to check what's possible 🙂

      cheers, Ringo

      1 Reply Last reply Reply Quote 0
      • jedimarcusJ Offline
        jedimarcus
        last edited by

        Hi,

        This is not a direct answer to your question, but here is a script I used (using Sensu to execute/monitor it):
        https://paste.iondev.lu/?59090add7694827a#3TH1vYxNjpz2ZWz4fUNSj4L4brJVRJTMRH9szbk1x8EB

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

          There's already a plugin that is doing that (alert plugin). But we got a REST API that is easy to use to fetch that info.

          Take a look here: https://xen-orchestra.com/docs/restapi.html

          1 Reply Last reply Reply Quote 0
          • V Offline
            vmpr @jedimarcus
            last edited by

            @jedimarcus thank you i will have a look!

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