Stellar ControlMission control · by Stellar Systems v0.1.0

API Reference

Stellar Control

Every endpoint of the API, grouped by resource. Version 0.1.0.

The HTTP and WebSocket API of Stellar Control: direct telecommands, current values, runs of procedures, alarms, passes and schedules, file transfers, and the state of the topology.

The API is stateless: it resolves every request against the current compiled configuration and publishes it on NATS. Several instances can serve the same cell.

Identity. Callers identify themselves with an OIDC token (Authorization: Bearer), or declare themselves with X-Stellar-User (and X-Stellar-Role, comma-separated) where the environment of the run allows declared identities.

Errors. Every error answers {"errors": [{"code", "message", "help"}]} with a stable code, such as run::unknown-pass or tc::target-held.

WebSocket. The routes that follow something (…/events, …/watch, …/throughput) upgrade to a WebSocket: each text message is one JSON document of the schema given for the 101 response.

Base URL
http://localhost:8080
API version
0.1.0
Endpoints
56

Telecommands#

Direct telecommands and their acknowledgement chain.

MethodEndpointOperation
POST/v1/tcSubmit telecommand
POST/v1/encodeEncode telecommand
POST/v1/decodeDecode frame
GET/v1/tc/{target}/{id}/eventsFollow telecommand
GET/v1/tc/watchWatch telecommands

Values#

Current values of the measures of a target.

MethodEndpointOperation
GET/v1/targets/{target}/valuesCurrent values
GET/v1/targets/{target}/values/watchWatch values
GET/v1/targets/{target}/values/historyValue history

Modes#

Modes of the targets and the values of their parameters in each mode.

MethodEndpointOperation
GET/v1/targets/{target}/modeGet mode
PUT/v1/targets/{target}/modeSet mode
GET/v1/targets/{target}/parametersGet parameters

Runs#

Runs of procedures: launch, follow-up, answers, control and reports.

MethodEndpointOperation
GET/v1/runsList runs
POST/v1/runsLaunch run
GET/v1/runs/{id}Run status
GET/v1/runs/{id}/eventsFollow run
POST/v1/runs/{id}/answersAnswer run
POST/v1/runs/{id}/{action}Control run
GET/v1/runs/{id}/reportRun report

Alarms#

Alarms: current states, acknowledgement and shelving, transitions.

MethodEndpointOperation
GET/v1/alarmsList alarms
GET/v1/alarms/watchWatch alarms
POST/v1/alarms/{target}/{alarm}/{action}Command alarm

Passes#

Passes of the targets over the ground stations, pushed by the feeders.

MethodEndpointOperation
GET/v1/passesList passes
POST/v1/passesUpsert pass
GET/v1/passes/{target}/{id}Get pass
POST/v1/passes/replace_windowReplace window
GET/v1/passes/watchWatch passes

Schedules#

Runs scheduled on passes, and the recurring rules that schedule them.

MethodEndpointOperation
GET/v1/schedulesList schedules
POST/v1/schedulesCreate schedule
GET/v1/schedules/{id}Get schedule
POST/v1/schedules/{id}/cancelCancel schedule
POST/v1/schedules/{id}/validateValidate schedule
GET/v1/schedule-rulesList schedule rules
POST/v1/schedule-rulesCreate schedule rule
DELETE/v1/schedule-rules/{id}Delete schedule rule
GET/v1/schedules/watchWatch schedules

Files#

On-board directory, file transfers and contents to upload.

MethodEndpointOperation
GET/v1/targets/{target}/filesList files
POST/v1/targets/{target}/files/refreshRefresh files
GET/v1/transfersList transfers
POST/v1/transfersCreate transfer
GET/v1/transfers/{target}/{file_id}/{generation}Get transfer
POST/v1/uploadsStore upload
GET/v1/transfers/watchWatch transfers

Monitoring#

Topology, instances, catalogues, procedures and output connectors, as the web console shows them.

MethodEndpointOperation
GET/v1/topologyGet topology
GET/v1/instancesList instances
GET/v1/instances/{kind}/{instance}Get instance
GET/v1/instances/gateway/{instance}/throughputWatch throughput
GET/v1/targets/{target}/catalogueGet catalogue
GET/v1/proceduresList procedures
GET/v1/connectorsList connectors
GET/v1/reconciler/eventsReconciler events
GET/v1/reconciler/events/watchWatch reconciler events

Auth#

How to sign in, and NATS credentials of follow-up.

MethodEndpointOperation
POST/v1/auth/natsNATS credentials
GET/v1/auth/configAuth config

Simulation#

Faults of simulated targets.

MethodEndpointOperation
GET/v1/sim/{gateway}/faultsList faults
PUT/v1/sim/{gateway}/faults/{fault}Switch fault

Meta#

The API itself.

MethodEndpointOperation
GET/v1/openapi.jsonOpenapi document

↑↓ to moveEnter to open