NQRust-MicroVM exposes a full REST API served by the Manager service. The interactive API reference is bundled directly into the web UI — no external tools needed.


Accessing the API Reference

Open the following URL in your browser, replacing <microvm-ip> with your server’s IP address or hostname:

  http://<microvm-ip>:3000/docs
  

The API reference is built into the UI and automatically uses the correct base URL for your host — no manual configuration required.


What’s Included

The API reference covers all available endpoints, organized by resource:

SectionDescription
AuthLogin, token management
VMsCreate, start, stop, delete, list virtual machines
VM ConfigurationCPU, memory, networking, boot settings
VM DevicesDrives, network interfaces
ContainersDeploy and manage Docker containers inside VMs
FunctionsServerless function lifecycle
ImagesImage registry — import, browse, manage
SnapshotsVM state capture and restore
TemplatesReusable VM configuration templates
HostsHost agent registration and management
UsersUser accounts and RBAC
LogsContainer and function log streaming

Authentication

All API calls (except login) require a Bearer token:

  # 1. Get a token
curl -X POST http://<microvm-ip>:18080/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{"username": "root", "password": "root"}'

# 2. Use the token
curl -H "Authorization: Bearer <your-token>" \
  http://<microvm-ip>:18080/v1/vms
  

The Base URL for all API calls is:

  http://<microvm-ip>:18080/v1
  

OpenAPI Spec

The raw OpenAPI 3.0 spec is available at:

  http://<microvm-ip>:18080/api-docs/openapi.json
  

Use this to generate client SDKs with tools like openapi-generator or import into Postman / Insomnia.