Skip to content

Latest commit

 

History

History
62 lines (49 loc) · 2.47 KB

README.md

File metadata and controls

62 lines (49 loc) · 2.47 KB

Donate License Website Twitter LinkedIn

UUI .Net API

This repository contains an implementation of a client for the Virtomize Unattended Install Images API.

Add to project

To use this client, first add it's nuget package

Build an ISO

Building an ISO requires two steps.

  1. Create a client object by using the NewClient function. This requires the API token created in the UI (see below).

    var client = new UII.Client("Token here");
  2. Building the ISO by using Build on the client object.

    await client.Build(
        "c:/tmp/debian.iso",
        "debian",
        "10",
        "x86_64",
        "hostname" ,
        new List<Network>
        {   
            new ()
            {
             HasNoInternet = false,
             UsesDhcp = true,
            },
        });

    Build requires the following parameters:

    • A path to the output file
    • The name of the distribution
    • The version number of the distribution
    • The architecture of the distribution (x86_64 in most cases)
    • A configuration of the network interfaces

Register an API token

Before using this client library, you need to register an API token under your account. For this, login into the website and navigate to the "API-Token" tab.

API-Token tab

There, create a new API token by clicking "Create" and give it a name. Then click save. Create a token

A new token will be created. Copy this token, as it will be hidden, once you log out. There, create a new API token by clicking "Create" and give it a name. Then click save. Save token