CHAOS/API Reference/Impairments

Clear impairment

deletehttp://localhost/v1/impairments/{direction}

Served over the Unix socket /run/chaosd/chaosd.sock

Removes the qdiscs CHAOS installed on a direction and returns the cleared state.

Clear is conservative. A root qdisc that CHAOS did not install and that is not a kernel default (pfifo_fast, mq, mq_prio, noqueue) is left in place and reported as a foreign-state divergence.

Path parameters

directionstringRequired

The direction to operate on. Each direction is configured independently. An unknown value returns 400.

Allowedport1port2

Response

200 · application/json

Cleared state. Returns an AppliedState object.

directionstringRequired
Allowedport1port2
impairmentImpairmentRequired

The complete shaping state of one direction. Omitted fields are not applied.

divergencelist of DivergenceOptional

Differences between requested and applied state. Omitted when empty.

captured_atinteger <int64>Required

Monotonic timestamp in nanoseconds. The ordering source of truth.

captured_at_wallinteger <int64>Required

Wall-clock time in nanoseconds since the Unix epoch, for human correlation only.

Errors

400
Problem

Unknown direction or malformed body.

403
Problem

Permission denied. The daemon lacks CAP_NET_ADMIN.

500
Problem

Backend or I/O error.