Skip to main content
This example demonstrates a complete workflow for running a network simulation, including custom configurations and result analysis.

Scenario

We’ll simulate a data center network with:
  • A leaf-spine topology
  • Multiple host nodes
  • Checkpointing enabled for long-running simulations

1. Set Up Environment

First, set your API token and base URL:
See Authentication for how to obtain a token.

2. Explore Available Components

List component schemas to understand available network elements:
Get detailed schema for a component:

3. Create a Custom Configuration

Build a configuration with topology, components, and applications

4. Validate Configuration

If there are validation issues, fix them and update:

5. Start Long-Running Simulation with Checkpointing

With a validated configuration, start the simulation:
The simulation is created asynchronously—this endpoint returns immediately after queuing. The initial status will be provisioning while resources are prepared.
Save the simulation ID for subsequent calls:

6. Monitor Simulation Progress

Check Status

Fetch Logs

Response:

Polling Script

7. Terminate If Needed

If you need to terminate the simulation:

8. Retrieve and Analyze Results

Get Summary

Download Result Files

9. Cleanup

Delete the simulation when done:

Error Handling Best Practices

Always check response status codes and handle errors:

Next Steps