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`).

Permission ha.status (look)

Response 200 map<string, any>

GET /api/system/update-check#

Read Update Check

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

Permission system.status (look)

Response 200 UpdateCheckRead

Show 3 fields
FieldTypeNotes
enabled *boolean
feed_url *string
managed_by_server *boolean

PUT /api/system/update-check#

Update Update Check

Permission system.update (administer)

Request body UpdateCheckUpdate

Show 2 fields
FieldTypeNotes
enabledboolean | null
feed_urlstring | null

Response 200 UpdateCheckRead

Show 3 fields
FieldTypeNotes
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.

Permission system.status (look)

Response 200 map<string, any>

POST /api/system/updater/rollback#

Updater Rollback

Permission system.update (administer)

Response 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.

Permission system.update (administer)

Request body UpdateRequest

Show 1 fields
FieldTypeNotes
version *stringminLength 5, maxLength 20

Response 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).

Permission system.read (look)

Response 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.

Permission system.status (look)

Response 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.

Permission system.update (administer)

Request body WebCertPayload

Show 2 fields
FieldTypeNotes
cert *stringminLength 1, maxLength 40000
key *stringminLength 1, maxLength 40000

Response 202 map<string, any>

DELETE /api/system/web-certificate#

Web Certificate Remove

Permission system.update (administer)

Response 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).

Permission system.update (administer)

Request body WebCertPayload

Show 2 fields
FieldTypeNotes
cert *stringminLength 1, maxLength 40000
key *stringminLength 1, maxLength 40000

Response 200 map<string, any>