Skip to content

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

License

Notifications You must be signed in to change notification settings

Virtomize/uii-python-api

Repository files navigation

Donate License Website Twitter LinkedIn

UII Python API

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

Build an ISO

Building an ISO requires two steps.

  1. Create a client. This requires the API token created in the UI (see below).

    import uiipythonapi as uii
    api = uii.Client("token here")
  2. Building the ISO by using build on the client object.

    err = api.build("debian10.iso", "debian", "10", "x86_64", "hostnamehere", [{
            "dhcp": True,        
            "nointernet": False,
    }])

    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 go 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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages