README: Agent-API-Beispiele ergaenzt (list, get, system, delete, hub, exec)
This commit is contained in:
parent
ebc70f17eb
commit
33c3b84d0f
29
README.md
29
README.md
@ -167,6 +167,35 @@ curl -sk -H "X-API-Key: KEY" -X POST \
|
|||||||
# Im Browser: https://backend-ip:10001/
|
# 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
|
### Update-Beispiele
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user