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 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.
    • 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

            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