README: Agent-API-Beispiele ergaenzt (list, get, system, delete, hub, exec)

This commit is contained in:
cynfo3000 2026-02-28 09:04:38 +01:00
parent ebc70f17eb
commit 33c3b84d0f

View File

@ -167,6 +167,35 @@ curl -sk -H "X-API-Key: KEY" -X POST \
# Im Browser: https://backend-ip:10001/
```
### Agent-Beispiele
```bash
# Alle Agents auflisten (ID, Name, IP, Version, letzter Heartbeat)
curl -sk -H "X-API-Key: KEY" \
https://backend:8443/api/v1/agents
# Einzelner Agent mit Systemdaten
curl -sk -H "X-API-Key: KEY" \
https://backend:8443/api/v1/agents/AGENT_ID
# Nur Systemdaten (Hardware, CPU, RAM, Disks, Services, etc.)
curl -sk -H "X-API-Key: KEY" \
https://backend:8443/api/v1/agents/AGENT_ID/system
# Agent loeschen
curl -sk -H "X-API-Key: KEY" -X DELETE \
https://backend:8443/api/v1/agents/AGENT_ID
# Hub-Status (verbundene Agents, aktive Tunnel)
curl -sk -H "X-API-Key: KEY" \
https://backend:8443/api/v1/hub/status
# Remote-Command ausfuehren
curl -sk -H "X-API-Key: KEY" -X POST \
https://backend:8443/api/v1/agents/AGENT_ID/exec \
-d '{"command":"uptime","timeout":30}'
```
### Update-Beispiele
```bash