Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Drain

Stop taking messages and deliver what's stored.

GET /api/v1/drain

Drain mode: accepting, draining or drained, and what's still pending.

Who may call it: anyone signed in (a person or a token).

Answers

POST /api/v1/drain

Start draining: stop taking new messages (MLLP listeners close, queued HTTP answers 503, file pickup and schedules pause) and keep delivering what's stored. Operator.

Who may call it: an operator or admin.

Body (application/json): DrainRequest

Answers

DELETE /api/v1/drain

Stop draining: take messages again. Operator.

Who may call it: an operator or admin.

Answers

Shapes

The JSON bodies the operations above take and return.

DrainRequest

FieldType
stop (optional)true or falseExit the engine once drained (for an upgrade or a server move).

DrainStatus

FieldType
pausedlist of textPaused destinations (interface/destination): they keep their messages and don't hold the drain up.
pendingnumberDeliveries still to go, over all interfaces.
since (optional)time (RFC 3339) or nullWhen draining started, or when it finished.
statetextaccepting, draining or drained.
stop_when_drainedtrue or falseThe engine exits once drained.
waiting_forlist of textInterfaces still holding pending deliveries (a destination that's down, or a stopped interface, keeps a drain from finishing).

ErrorBody

FieldType
errortextWhat went wrong, in plain words.