Stellar ControlMission control · by Stellar Systems v0.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

{}

↑↓ to moveEnter to open