All docsStellar ControlMission control · by Stellar Systems v1.1.0

API Reference

Simulation

Faults of simulated targets.

GET/v1/sim/{gateway}/faults

List faults#

Faults of a simulated target

The fault scenarios of the simulation played by the gateway, and whether each is active (its faults verb).

Path parameters

gatewayrequired

string

Gateway instance of the simulated target (sim-gw-1).

Responses

200The reply of the simulator.application/json

object

404No simulated gateway answers: sim::unknown-gateway.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

422Not a simulated gateway, or refused: sim::not-simulated, sim::refused.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

503The MCS bus (NATS) is unavailable: api::unavailable.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

504The gateway did not answer: sim::timeout.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

Request

curl "http://localhost:8080/v1/sim/<gateway>/faults"

Response

{}
PUT/v1/sim/{gateway}/faults/{fault}

Switch fault#

Switch a fault on or off

While a fault is active, its values replace those of the model of the simulation. Each change is published on stellar.sim.evt.<target>, so that reports show the faults active during a run.

Path parameters

gatewayrequired

string

Gateway instance of the simulated target.

faultrequired

string

Fault, as named in the simulation.

Request body application/jsonrequired

activerequired

boolean

Responses

200The reply of the simulator.application/json

object

400Invalid body.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

404No simulated gateway answers.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

422Unknown fault, or not a simulated gateway.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

503The MCS bus (NATS) is unavailable: api::unavailable.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

504The gateway did not answer.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

Request

curl -X PUT "http://localhost:8080/v1/sim/<gateway>/faults/<fault>" \
  -H "Content-Type: application/json" \
  -d '{
  "active": true
}'

Response

{}
GET/v1/faults/{gateway}

List gateway faults#

Faults a gateway injects

The faults the gateway injects on demand — the scenarios of a simulator, or those a hardware gateway declares (forced CAN errors, SpaceWire disconnection…) — and whether each is active (its faults verb): {"faults": [{name, description?, active}]}.

Path parameters

gatewayrequired

string

Gateway instance (bench-can-1, sim-gw-1).

Responses

200The faults of the gateway.application/json

object

404No gateway answers: sim::unknown-gateway.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

422The gateway injects no fault, or refused: sim::not-simulated, sim::refused.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

503The MCS bus (NATS) is unavailable: api::unavailable.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

504The gateway did not answer: sim::timeout.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

Request

curl "http://localhost:8080/v1/faults/<gateway>"

Response

{}
PUT/v1/faults/{gateway}/{fault}

Switch gateway fault#

Switch a fault of a gateway on or off

Each change is published on stellar.sim.evt.<target> for every target of the gateway. A run schedules faults only where its environment allows them (fault_injection), never in in_orbit; this endpoint is the operator's own act.

Path parameters

gatewayrequired

string

Gateway instance.

faultrequired

string

Fault, as the gateway names it.

Request body application/jsonrequired

activerequired

boolean

Responses

200The reply of the gateway.application/json

object

400Invalid body.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

404No gateway answers.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

422Unknown fault, or the gateway injects none.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

503The MCS bus (NATS) is unavailable: api::unavailable.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

504The gateway did not answer.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

Request

curl -X PUT "http://localhost:8080/v1/faults/<gateway>/<fault>" \
  -H "Content-Type: application/json" \
  -d '{
  "active": true
}'

Response

{}

↑↓ to moveEnter to open