Scenario
We’ll simulate a data center network with:- A leaf-spine topology
- Multiple host nodes
1. Set Up Environment
First, set your API token and base URL:2. Explore Available Components
List component schemas to understand available network elements:3. Create a Custom Configuration
Build a configuration with topology, components, and applicationscomponents, containers, applications, links, topology, and globalParameters.
4. Validate Configuration
If-Match. A version that no longer matches returns 412.
5. Start the Simulation
With a validated configuration, start the simulation:validating or provisioning. Some simulations skip validating and start in provisioning while resources are prepared.
6. Monitor Simulation Progress
Check Status
Fetch Logs
Polling Script
7. Terminate If Needed
If you need to terminate the simulation:running for a while after the request, until the run stops; it then becomes terminated, and results written up to that point stay available.
8. Retrieve and Analyze Results
List Result Files
pagination.hasMore is true, pass pagination.nextCursor as the next query parameter to get the next page. Simulation output files describes each file.
Download Result Files
SetFILE_NAME to a name from the list:
Get Computed Results
The platform can compute results from the files for you. The response links to a zstd-compressed JSON document:9. Cleanup
Delete the simulation when done:Error Handling Best Practices
Always check response status codes and handle errors:Next Steps
- Explore the API Reference for all available endpoints
- Check available models for specialized network components