F Floweon Hyperflow Learn

Riferimento REST API

Panoramica dei principali endpoint REST per automazione, pipeline CI/CD e integrazioni proprie.

7 min • 2026-12-06

Tutte le funzioni dell'interfaccia di Hyperflow sono disponibili tramite un'interfaccia REST FastAPI documentata sotto /api/v1 (più una Swagger UI interattiva sotto /docs nella vostra istanza).

Autenticazione#

TOKEN=$(curl -s -X POST http://127.0.0.1:8000/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{"username":"admin","password":"<PASSWORT>"}' | jq -r .access_token)

Passate il token in tutte le chiamate successive come Authorization: Bearer $TOKEN.

Endpoint principali#

Categoria Metodo e percorso Descrizione
Auth POST /api/v1/auth/login Ottenere un token JWT
Auth GET /api/v1/auth/entra/login-url Avviare il login Entra ID OIDC / Device Code
Auth GET\|PUT /api/v1/auth/me/preferences Leggere/salvare le impostazioni UI dell'utente (tra cui le cartelle VM compresse)
Host GET /api/v1/nodes Elencare tutti i nodi hypervisor
Host GET /api/v1/nodes/{id}/inventory Inventario hardware e centro errori (?refresh=true)
Host POST /api/v1/nodes/probe-ssh Verificare la connessione SSH e le specifiche prima dell'importazione
Host POST /api/v1/nodes/import-ssh Acquisire un nuovo host tramite SSH
Host PATCH\|DELETE /api/v1/nodes/{id} Modificare (inclusi i percorsi di archiviazione) / rimuovere un host
Host POST /api/v1/nodes/{id}/maintenance Attivare/disattivare la modalità manutenzione
Host POST /api/v1/nodes/{id}/power poweroff o reboot
Host POST /api/v1/nodes/{id}/wake Inviare Wake-on-LAN
Host POST /api/v1/nodes/sync-cluster Sincronizzare il cluster
VM GET /api/v1/vms Elencare le VM (filtrate automaticamente per VDI_USER)
VM GET /api/v1/vms/{id} Dettagli della VM inclusi guest_tools_installed, vnc_clipboard_enabled, live_ips, RAM guest
VM POST /api/v1/vms Creare una nuova VM (inclusi storage_pool_id, disk_bus, nic_model, autostart, dischi e NIC aggiuntivi)
VM PUT /api/v1/vms/{id} Aggiornare una VM (name incluso virsh domrename, vcpus, ram_mb, folder, autostart, extra_disks, NIC, utente VDI)
VM DELETE /api/v1/vms/{id} Eliminare una VM
VM POST /api/v1/vms/{id}/power start, shutdown (ACPI), stop/force_stop/kill, reboot/restart, pause, resume
VM GET /api/v1/vms/{id}/metrics/history Valori storici di CPU e RAM guest per il grafico della cronologia
VM POST /api/v1/vms/{id}/iso Inserire, sostituire o espellere un'immagine ISO a caldo o offline
VM POST /api/v1/vms/{id}/interfaces/link Disconnettere / connettere la scheda di rete a caldo (Link Down/Up)
VM POST /api/v1/vms/{id}/enable-clipboard Attivare VNC Copy & Paste
VM POST /api/v1/vms/{id}/migrate Migrazione live od offline verso il nodo di destinazione
VM GET /api/v1/vms/{id}/migration-status Avanzamento della migrazione
VM POST /api/v1/vms/{id}/assign-user Assegnare un utente VDI
Cartelle VM GET /api/v1/vms/folders/list Elencare le cartelle VM persistenti
Cartelle VM POST /api/v1/vms/folders Creare una nuova cartella VM
Cartelle VM DELETE /api/v1/vms/folders/{name} Rimuovere una cartella VM
Cartelle VM POST /api/v1/vms/{id}/move-folder Spostare una VM in una cartella
Snapshot GET\|POST /api/v1/vms/{id}/snapshots Elencare / creare snapshot delle VM (Live QMP / QCOW2 / libvirt)
Snapshot POST /api/v1/vms/{id}/snapshots/{name}/revert Ripristinare la VM a uno snapshot
Snapshot DELETE /api/v1/vms/{id}/snapshots/{name} Eliminare uno snapshot della VM
Console WS /api/v1/vms/{id}/console/vnc?token= WebSocket VNC (sottoprotocollo binary)
KVM Sync POST /api/v1/system/import-kvm Importare VM, pool e reti KVM esistenti
KVM Sync POST /api/v1/nodes/import-kvm?node_id= Importazione per un singolo host
Storage GET\|POST /api/v1/storage/pools Elencare / creare storage pool
Storage POST /api/v1/storage/pools/{id}/connect Login iSCSI sugli host collegati
Storage GET /api/v1/storage/upload-preflight Verificare percorso di destinazione, permessi e spazio libero prima del caricamento ISO
Storage POST /api/v1/storage/upload-stream Caricamento in streaming a blocchi per ISO di grandi dimensioni
Reti GET\|POST /api/v1/networks Elencare / creare reti
Reti PATCH\|DELETE /api/v1/networks/{id} Modificare / eliminare una rete
Backup POST /api/v1/backups/run Avviare un backup
Backup GET /api/v1/backups/export/config Esportare la configurazione o il bundle DR
Alert GET\|PUT /api/v1/alerts/config Leggere / salvare alert e-mail e relay SMTP
Alert POST /api/v1/alerts/test Inviare un'e-mail di test
Alert GET\|DELETE /api/v1/alerts/history Recuperare / svuotare la cronologia degli invii
Quote GET\|POST /api/v1/quotas Elencare / creare quote
Quote PUT\|DELETE /api/v1/quotas/{tenant_id} Modificare / eliminare una quota
Plugin GET /api/v1/plugins Plugin installati incluso lo stato
Plugin GET /api/v1/plugins/catalog Plugin del catalogo disponibili
Plugin POST /api/v1/plugins/install/catalog Installare un plugin dal catalogo
Plugin POST /api/v1/plugins/install/upload Caricare e installare uno ZIP di plugin
Plugin POST /api/v1/plugins/install/git Installare un plugin tramite URL Git
Plugin POST /api/v1/plugins/rescan Rieseguire la scansione della directory dei plugin
Plugin POST /api/v1/plugins/{id}/enable Attivare un plugin (oppure /disable)
Plugin DELETE /api/v1/plugins/{id} Disinstallare un plugin
Plugin GET\|PUT /api/v1/plugins/{id}/settings Leggere/salvare le impostazioni del plugin
Plugin POST /api/v1/plugins/scaffold Richiamare il generatore di ZIP starter
Plugin GET\|POST\|PUT\|PATCH\|DELETE /api/v1/plugins/{id}/api/{subpath} Inoltro al backend del plugin (non per VDI_USER)
Sistema GET /api/v1/system/update/check Verificare la disponibilità di aggiornamenti
Sistema POST /api/v1/system/update/apply Aggiornare questo host
Sistema POST /api/v1/system/update/cluster Aggiornare tutti gli host del cluster
Sistema GET\|PUT /api/v1/system/auto-update Recuperare / salvare la pianificazione di Auto-Update
Sistema POST /api/v1/system/auto-update/run-now Eseguire subito l'aggiornamento automatico
Audit GET /api/v1/monitoring/audit-logs Ultime 200 voci di audit
Audit GET /api/v1/monitoring/audit-logs/export Esportazione CSV
Monitoraggio GET /health e GET /metrics Health check (con versione di boot fissata) ed esportazione Prometheus

Gli elenchi completi degli endpoint sono disponibili nelle pagine Storage, Backup, Host, Monitoraggio e alert e Quote nonché nella Swagger UI sotto /docs.