Skip to main content
This guide walks you through the basic workflow of using the Network Simulation API to run your first simulation.

Prerequisites

  • API access token (see Authentication)
  • curl or your preferred HTTP client
  • Basic familiarity with REST APIs

Setup

Set your API token as an environment variable:

Step 1: Browse Available Templates

Templates provide pre-configured starting points for common simulation scenarios:
Response:

Step 2: Create a Configuration from Template

Clone a template to create your own configuration
Response:
The response is the full configuration. This example shows only its summary fields. The full response also carries components, containers, applications, links, topology, and globalParameters.

Step 3: Validate the Configuration

Before running a simulation, validate your configuration:
Response:
If there are issues, they’ll appear in the errors or warnings arrays:

Step 4: Start a Simulation

Now run your first simulation:
Response:

Step 5: Monitor Progress

Check the simulation status:
The status will progress through:
  1. validating - Checking configuration. Some simulations skip this status and start in provisioning.
  2. provisioning - Allocating resources
  3. running - Simulation in progress
  4. completed - Finished successfully
A simulation can also end in one of these statuses:
  • failed - The run, or the export of its results, stopped on an error. failureReason, when present, says why.
  • terminated - The run was stopped before it finished: you terminated it, or the platform stopped it, for example after a node failure, an out-of-memory kill or a time limit. A simulation that started in provisioning reports those platform stops as failed instead.
  • invalid - The platform could not determine the run’s state.

Step 6: Get Results

Once the simulation completes, list the files it wrote:
Response:
Download a file from its downloadUrl, which is valid for 15 minutes. size is in bytes. Simulation output files describes each file and shows how to get results computed from them.

Next Steps