2.0 KiB
2.0 KiB
API Documentation (Core)
Base URL: http://<host>:8080
Health
GET /api/health
Auth
POST /api/auth/login- Body:
{ "email": "user@example.com", "password": "..." } - Returns:
{ token, refresh_token, user }
- Body:
POST /api/auth/refresh- Body:
{ "refresh_token": "..." } - Returns:
{ token, refresh_token }
- Body:
GET /api/auth/me(Bearer token)
Proxmox Operations
POST /api/proxmox/syncPOST /api/proxmox/vms/:id/actions/:actionPOST /api/proxmox/vms/:id/migratePATCH /api/proxmox/vms/:id/configPATCH /api/proxmox/vms/:id/networkPOST /api/proxmox/vms/:id/disksPOST /api/proxmox/vms/:id/reinstallGET /api/proxmox/vms/:id/consoleGET /api/proxmox/vms/:id/usage-graphs?timeframe=hour|day|week|month|yearGET /api/proxmox/nodes/:id/usage-graphs?timeframe=hour|day|week|month|yearGET /api/proxmox/cluster/usage-graphs?timeframe=hour|day|week|month|year
Resources API
Generic secured resource endpoints:
GET /api/resources/:resourceGET /api/resources/:resource/:idPOST /api/resources/:resourcePATCH /api/resources/:resource/:idDELETE /api/resources/:resource/:id
Tenant scope protections are enforced for tenant-scoped resources.
Client Area
GET /api/client/overviewGET /api/client/usage-trendsGET /api/client/machinesPOST /api/client/machinesPATCH /api/client/machines/:vmId/resourcesPOST /api/client/machines/:vmId/power-schedulesPOST /api/client/machines/:vmId/backup-schedulesGET /api/client/firewall/rulesPOST /api/client/firewall/rulesPATCH /api/client/firewall/rules/:idDELETE /api/client/firewall/rules/:id
Monitoring
GET /api/monitoring/overviewGET /api/monitoring/health-checksPOST /api/monitoring/health-checksGET /api/monitoring/alerts/eventsGET /api/monitoring/insights/faulty-deploymentsGET /api/monitoring/insights/cluster-forecast
Rate Limiting
- Global API rate limiting is enabled.
- Auth endpoints use stricter limits.
- When exceeded, API returns HTTP
429.