Create a scheduled failure injection
Creates a new failure injection that will be applied to the simulation during the specified time window. The injection is applied immediately to the resource state (the affected resource's status changes) and an event is recorded.
Failure types:
- instance_kill — PERMANENTLY removes a compute instance from the simulation (deleting the failure does not restore it)
- instance_down — reversible single-node outage: marks a compute instance critical without removing it; deactivating (isActive: false) or deleting the failure restores the node
- az_outage — simulates an availability zone outage
- database_overload — modeled load-sensitive database CPU, bounded Aurora ACU, latency and failed requests; thresholds are assumptions, not AWS guarantees. Set top-level severity (minor/moderate/severe, default moderate) or intensity (0–1, mapped into those three bands), not both; the response echoes effective severity. Do not place controls in parameters.
- network_latency — adds latency to all network resources
Precondition — already-critical targets: an instance_down or instance_kill element whose targetResourceId refers to a resource that is already in critical status is rejected with 400 and error code RESOURCE_NOT_FAILEABLE — the same code and reason semantics as POST /simulations/{simulationId}/inject-failure. Consistent with the batch contract, one rejected element aborts the whole request (all-or-nothing) and no failure injection is created or applied. In an array (batch) body the error pointer is index-prefixed (/2/targetResourceId) and the message is prefixed with failures[2]: .
Requires write scope and ownership.
Request
- Base URL: https://www.cloudworldmodel.ai/api
- URL: https://www.cloudworldmodel.ai/api/simulations/{simulationId}/failures
- Auth: one of:
- HTTP bearer
- API key in header X-PAYMENT
- API key in header PAYMENT-SIGNATURE
Path parameters
Simulation UUID
Request body
Example request
{
"name": "Simulate AZ outage",
"type": "az_outage",
"startTime": 10,
"endTime": 30,
"targetZone": "us-east-1a"
}Response
Failure injection created
Changes
No recorded changes to this operation across all 1 revision of this API.