API: host-gateways
GET /api/hosts/{host_id}/gateways#
List Gateways
Live gateway state (loss, delay, deviation, OPNsense' verdict) of one firewall.
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200 GatewayHealth[]
9 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
address | string | null | |
alert_enabled | boolean | default: true |
delay | number | null | |
loss | number | null | |
monitor | string | null | |
name * | string | |
state * | "online" | "degraded" | "offline" | "forced_down" | "unknown" | |
status * | string | |
stddev | number | null |
PUT /api/hosts/{host_id}/gateways/{name}/alert#
Set Gateway Alert
Switch the gateway-down alert on or off for ONE gateway (admins only, see api_token_service).
Berechtigung hosts.manage (verwalten)
Parameter
host_id * | path | string (uuid) | |
name * | path | string |
Anfrage-Body GatewayAlertUpdate
1 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
enabled * | boolean |
Antwort 200 GatewayAlertState
2 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
alert_enabled * | boolean | |
name * | string |
GET /api/hosts/{host_id}/gateways/api-rights#
Api Rights
Side readings the newest FRESH resource sample could not take because the API key lacks the right (null = no fresh sample, so nothing is known). Stored data only: no call to the firewall.
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200 ApiRightsState
1 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
missing | string[] | null |