OPNexusdocs

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 *pathstring (uuid)

Antwort 200 GatewayHealth[]

9 Felder anzeigen
FeldTypHinweise
addressstring | null
alert_enabledboolean default: true
delaynumber | null
lossnumber | null
monitorstring | null
name *string
state *"online" | "degraded" | "offline" | "forced_down" | "unknown"
status *string
stddevnumber | 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 *pathstring (uuid)
name *pathstring

Anfrage-Body GatewayAlertUpdate

1 Felder anzeigen
FeldTypHinweise
enabled *boolean

Antwort 200 GatewayAlertState

2 Felder anzeigen
FeldTypHinweise
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 *pathstring (uuid)

Antwort 200 ApiRightsState

1 Felder anzeigen
FeldTypHinweise
missingstring[] | null