Listen and TLS fields
described in Kernel. All endpoints on this page require
the Network capability to be enabled; see Management API for
how capabilities work.
Listen address
GET returns the currently configured address. PATCH requires listen
and writes it to the top-level Listen field.
TLS
GET returns the currently configured setting. PATCH requires tls and
must not send null; it writes the value to the top-level TLS field.
Requires-restart
The Kernel binds its listener and, if enabled, builds its self-signed TLS certificate once at startup from whateverListen and TLS contained at
that time — see Kernel for what enabling TLS does.
Both endpoints compare the configured value against the one the running
process actually applied and report the difference as requires_restart.
This shows up on a plain GET too, not just right after a PATCH. It
goes back to false once the configured value matches what’s applied
again, whether that’s from restarting the Kernel or from writing the
previous value back.