-
Notifications
You must be signed in to change notification settings - Fork 0
HTTP API
Jackson Hoffart edited this page Feb 20, 2026
·
1 revision
vpp-sim can expose current state and telemetry over HTTP using schema v1 fields.
Start with API enabled:
cargo run --release -- --preset demo --api-bind 127.0.0.1:8080Returns the latest simulation snapshot object.
Example:
curl -s http://127.0.0.1:8080/stateReturns all collected telemetry rows.
Example:
curl -s http://127.0.0.1:8080/telemetryReturns telemetry rows in the inclusive timestep range.
Example:
curl -s "http://127.0.0.1:8080/telemetry?from=4&to=8"- Field names are aligned with telemetry CSV schema v1.
- Clients should treat unknown future fields as non-breaking extensions.
- Consumers should validate numeric ranges where operational correctness matters.
- The API is intended for local inspection/integration workflows.
- For performance experiments, prefer release builds (
--release). - For analytics pipelines, CSV export is often the simplest ingestion path.