Execute

Run a batch of chaos tests in parallel

Execute multiple chaos engineering tests in parallel. Each scenario can use either a pre-built scenario or custom failure injections. Results are aggregated across all tests.

DigitalOcean compatibility: All pre-built scenarios (zone_failure, database_crash, network_partition, etc.) and custom injection types (kill_instance, zone_outage, database_slowdown, etc.) work identically on DigitalOcean simulations. Use Droplet-specific resource IDs (e.g. droplet-web-1) and DO datacenter region names (e.g. nyc3, sfo3) when targeting a DigitalOcean simulation.

post/chaos/batch

Request

  • Base URL: https://www.cloudworldmodel.ai/api
  • URL: https://www.cloudworldmodel.ai/api/chaos/batch
  • Auth: one of:
    • HTTP bearer
    • API key in header X-PAYMENT
    • API key in header PAYMENT-SIGNATURE

Request body

simulationIdstring uuid required

ID of the base simulation to test

webhookUrlstring uri

Optional HTTPS URL to receive webhook notification when batch completes

webhookSecretstring

Optional secret for HMAC-SHA256 webhook signature verification

Example request

{
  "simulationId": "a638caad-7423-40a3-bb09-f91235d9392d",
  "scenarios": [
    {
      "scenarioId": "zone_failure",
      "duration": 120
    },
    {
      "scenarioId": "database_crash",
      "duration": 90
    }
  ]
}

Response

Batch chaos test job accepted and started

messagestring

Example response

{
  "job": {
    "id": "batch_xyz789",
    "type": "batch_chaos_test",
    "status": "running",
    "totalJobs": 3
  },
  "message": "Batch chaos test started. Use GET /chaos/batch/{id} to check status."
}

Changes

No recorded changes to this operation across all 1 revision of this API.