VVMM API Usage Guide

Overview

This page documents which APIs the VVMM dashboard uses for each feature. All REST API endpoints require Bearer token authentication (the password from [auth] config).

# Authentication header format
Authorization: Bearer your-password

Dashboard Grid Page

The main dashboard page showing all agent cards with CPU, memory, and network stats.

REST APIs Used

WebSocket APIs Used

Agent Detail Page

Clicked when viewing a specific agent's details.

System Overview Section

CPU & Memory Section

History Charts Section

Disks & Network Section

Remote Terminal Section

File Transfer Section

Processes Section

Monitored Services Section

WebSocket Message Types

The dashboard WebSocket connection handles these message types:

Server → Client

Integration Examples

Get All Agents with Status

# List all agents with current metrics
curl -H "Authorization: Bearer pass" \
  http://server/api/agents

Execute Command on All Agents

# Run uptime on all connected agents
curl -X POST http://server/api/exec \
  -H "Authorization: Bearer pass" \
  -H "Content-Type: application/json" \
  -d '{"command":"uptime","args":[]}'

Deploy Config to Production Group

# Upload config file to all production agents
curl -X POST http://server/api/upload \
  -H "Authorization: Bearer pass" \
  -H "Content-Type: application/json" \
  -d '{"filename":"app.conf","path":"/etc/app/config","content":"BASE64...","target":"group:production"}'

Monitor Docker Containers

# Get all monitored processes across agents
curl -H "Authorization: Bearer pass" \
  http://server/api/processes

Get Historical Metrics

# Get last 24h of data for an agent
curl -H "Authorization: Bearer pass" \
  http://server/api/agents/{id}/history?since=1234567890&max_points=500

All API Endpoints

System

GET /api/health - Health check

Authentication

GET /api/auth/verify - Verify password

Agents

GET /api/agents - List all
GET /api/agents/{id} - Get one
GET /api/agents/{id}/report - System report
PUT /api/agents/{id}/metadata - Update metadata
GET /api/groups - List groups

Execution

POST /api/agents/{id}/exec - Single agent
POST /api/exec - Batch (all/group/agent)

History

GET /api/agents/{id}/history - Historical data

File Transfer

POST /api/upload - Upload file
POST /api/update-binary - Update binary

Process Management

GET /api/agents/{id}/processes - List
POST /api/agents/{id}/processes/control - Control
GET /api/processes - All processes

Docker

POST /api/agents/{id}/container-logs - Logs

Deployment

POST /api/agents/create - Create
GET /api/agents/{id}/config - Config
POST /api/agents/{id}/regenerate-token - Token
POST /api/agents/{id}/delete - Delete

Installation

GET /install.sh - Install script
GET /download/package/{token} - Package
GET /download/config/{token} - Config
GET /download/agent - Binary