>_ NicAPI Dokumentation:

GET: PXE-Installationen abrufen

/datacenter/pxeinstallations

$res = NicAPI::get("/datacenter/pxeinstallations", [
]);

Gibt die zugewiesenen PXE-Installationen zurück.

Rechte: PXE_INSTALLATIONS_LIST

POST: PXE-Installation erstellen

/datacenter/pxeinstallations/create

$res = NicAPI::post("/datacenter/pxeinstallations/create", [
    "user" => "value",
    "vserver_template" => "value",
    "address" => "value",
    "mac_address" => "value",
    "hostname" => "value",
    "password" => "value",
    "support_ssh_key" => "value",
    "raid_level" => "value",
    "raid_disk_count" => "value",
    "network_name" => "value",
    "commands" => [],
]);

Erstellt eine neue PXE-Installation.

Parameters:

Name Benötigt Typ Beschreibung
user string
vserver_template string
address string
mac_address string
hostname string
password string
support_ssh_key boolean
raid_level string
raid_disk_count integer
network_name alpha_num
commands array Befehle, die nach der Installation auf dem neu installierten Server ausgeführt werden sollen.
Rechte: PXE_INSTALLATIONS_CRUD

GET: Templates abrufen

/datacenter/pxeinstallations/templates

$res = NicAPI::get("/datacenter/pxeinstallations/templates", [
]);

Gibt alle möglichen Templates für PXE-Installationen zurück.

Rechte: PXE_INSTALLATIONS_LIST

GET: Einzelne Installation abrufen

/datacenter/pxeinstallations/{pxe_installation_id}

$res = NicAPI::get("/datacenter/pxeinstallations/{pxe_installation_id}", [
]);

Gibt Informationen zu einer einzelnen PXE-Installation zurück.

Parameters:

Name Benötigt Typ Beschreibung
pxe_installation_id routeparameter
Rechte: PXE_INSTALLATIONS_LIST

POST: PXE-Installation abbrechen

/datacenter/pxeinstallations/{pxe_installation_id}/cancel

$res = NicAPI::post("/datacenter/pxeinstallations/{pxe_installation_id}/cancel", [
]);

Bricht eine einzelne PXE-Installation ab.

Parameters:

Name Benötigt Typ Beschreibung
pxe_installation_id routeparameter
Rechte: PXE_INSTALLATIONS_CRUD