OPNexusdocs

API: ha

POST /api/system/ha/action#

Action

Sync now, switch to the partner, rebuild the standby, dissolve the pair (all on the primary).

Berechtigung ha.manage (verwalten)

Anfrage-Body ActionRequest

2 Felder anzeigen
FeldTypHinweise
action *stringmaxLength 20
password *stringminLength 1, maxLength 1024

Antwort 202 map<string, any>

POST /api/system/ha/init#

Init

Set the pair up with this node as the primary (`check`: only the preflight, nothing is sent or changed, no password needed).

Berechtigung ha.manage (verwalten)

Anfrage-Body InitRequest

8 Felder anzeigen
FeldTypHinweise
checkboolean default: false
code *stringminLength 10, maxLength 200
nodestring | null
node_ipstring | null
passwordstring default: "" · maxLength 1024
peer_nodestring | null
vip *stringmaxLength 18
vip_devstring | null

Antwort 202 map<string, any>

GET /api/system/ha/job#

Job

The last pair job of this node with its log (never contains the pairing code).

Berechtigung ha.status (ansehen)

Antwort 200 map<string, any>

POST /api/system/ha/prepare#

Prepare

Make this node the future standby: switch the gate on and show a pairing code (30 minutes, single use). The code is returned once and written nowhere.

Berechtigung ha.manage (verwalten)

Anfrage-Body PrepareRequest

2 Felder anzeigen
FeldTypHinweise
ip *stringmaxLength 15
password *stringminLength 1, maxLength 1024

Antwort 200 map<string, any>

POST /api/system/ha/suggest#

Suggest

This node's own address and interface towards a target (default route): the wizard's starting values.

Berechtigung ha.manage (verwalten)

Anfrage-Body SuggestRequest

1 Felder anzeigen
FeldTypHinweise
targetstring | null

Antwort 200 map<string, any>