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

    VIF via REST API?

    Scheduled Pinned Locked Moved REST API
    8 Posts 3 Posters 175 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.
    • jedimarcusJ Offline
      jedimarcus
      last edited by

      Before I try to search for something that doesn't exist yet:

      • Can I create a new network interface via REST API?
      1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team
        last edited by

        Hi,

        I don't believe that this is available yet via the REST API, but you can do it using xo-cli.

        Regards, Dan

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

          Yes, in xo-cli I see vif.connect vif.set ... would be lying saying it's intuitive what to do here to reach my goal.

          I'll start off by clicking through XOA for the moment.

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

            At which level are you wanting to add a network (pool, host, or VM)?

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

              VM

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

                Outside VM creation but afterward, right?

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

                  Yes, as my cloud-init doesn't work like I want it to, I can live with manually creating the VM.

                  But it would be cool to be able to automate stuff afterwards, which in my case would be adding a network interface.

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

                    Ping @julien-f

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