OPNexusdocs

API: system

GET /api/system/ha#

Ha Status

Read-only state of the HA pair for the card in Settings › System (no promote button on purpose: fencing the old primary needs control over that host, so a switch is done with `opnexus ha promote`).

Berechtigung ha.status (ansehen)

Antwort 200 map<string, any>

GET /api/system/update-check#

Read Update Check

Versionsprüfung für „Einstellungen › OPNexus aktualisieren“ (nur Admins).

Berechtigung system.status (ansehen)

Antwort 200 UpdateCheckRead

3 Felder anzeigen
FeldTypHinweise
enabled *boolean
feed_url *string
managed_by_server *boolean

PUT /api/system/update-check#

Update Update Check

Berechtigung system.update (verwalten)

Anfrage-Body UpdateCheckUpdate

2 Felder anzeigen
FeldTypHinweise
enabledboolean | null
feed_urlstring | null

Antwort 200 UpdateCheckRead

3 Felder anzeigen
FeldTypHinweise
enabled *boolean
feed_url *string
managed_by_server *boolean

GET /api/system/updater#

Updater Status

Zustand für den Abschnitt "OPNexus aktualisieren" in den Einstellungen: Versionshinweis des Release-Feeds plus (falls aktiviert) der Updater.

Berechtigung system.status (ansehen)

Antwort 200 map<string, any>

POST /api/system/updater/rollback#

Updater Rollback

Berechtigung system.update (verwalten)

Antwort 202 map<string, any>

POST /api/system/updater/update#

Updater Update

Aktualisiert OPNexus auf die vom Release-Feed gemeldete neueste stabile Version. Beliebige Versionen werden bewusst nicht angenommen.

Berechtigung system.update (verwalten)

Anfrage-Body UpdateRequest

1 Felder anzeigen
FeldTypHinweise
version *stringminLength 5, maxLength 20

Antwort 202 map<string, any>

GET /api/system/version-check#

Version Check

Ist eine neuere OPNexus-Version veröffentlicht? Aus, solange UPDATE_CHECK_URL nicht gesetzt ist (dann ohne ausgehende Anfrage).

Berechtigung system.read (ansehen)

Antwort 200 map<string, any>

GET /api/system/web-certificate#

Web Certificate

The certificate the proxy serves right now (source, addresses, expiry) and the last change job. Without the updater this is "not available": the backend cannot reach the proxy's volume itself.

Berechtigung system.status (ansehen)

Antwort 200 map<string, any>

POST /api/system/web-certificate#

Web Certificate Install

Installs an own certificate for the web interface (background job: the proxy is recreated). Never audited with the key.

Berechtigung system.update (verwalten)

Anfrage-Body WebCertPayload

2 Felder anzeigen
FeldTypHinweise
cert *stringminLength 1, maxLength 40000
key *stringminLength 1, maxLength 40000

Antwort 202 map<string, any>

DELETE /api/system/web-certificate#

Web Certificate Remove

Berechtigung system.update (verwalten)

Antwort 202 map<string, any>

POST /api/system/web-certificate/check#

Web Certificate Check

Checks certificate and key without changing anything (what would be installed, which addresses it does not cover).

Berechtigung system.update (verwalten)

Anfrage-Body WebCertPayload

2 Felder anzeigen
FeldTypHinweise
cert *stringminLength 1, maxLength 40000
key *stringminLength 1, maxLength 40000

Antwort 200 map<string, any>