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

    Update disk size via API?

    Scheduled Pinned Locked Moved Xen Orchestra
    4 Posts 2 Posters 290 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.
    • S Offline
      ScarfAntennae
      last edited by

      I've been automating my infrastructure, and I've noticed that disk extending has become a repetitive action:

      - power off vm
      - extend disk
      - power on vm
      - extend disk
      - extend lvm
      

      The last 2 steps seem easy to implement with ansible, though the first 3 ones seem rather impossible without the API.

      Any status updates on the API?

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

        What do you mean? You can already do this via the API 🤔

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          ScarfAntennae @olivierlambert
          last edited by

          @olivierlambert 😳

          Can you link the docs please?

          This is what I was looking at initially:
          https://xen-orchestra.com/docs/restapi.html#collections-request

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

            You can with the JSON-RPC API. The REST API is still very young, and we only started to modify objects during January release.

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