Host network, TLS and access-scope settings
GET/settings/network
Required role: viewer. An account or token with the viewer or admin role can call this operation.
Example request
curl --request GET \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/settings/network"
Current network backend, interfaces, any in-flight confirm-or-revert window, the TLS certificate's expiry, LAN-only access scope and the listen port. Editing address, DNS or gateway is only possible when the backend is ifupdown; otherwise editable is false and readOnlyReason says why.
Responses
- 200
- default
Current network settings.
An error response.