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

Permission ha.manage (administer)

Request body ActionRequest

Show 2 fields
FieldTypeNotes
action *stringmaxLength 20
password *stringminLength 1, maxLength 1024

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

Permission ha.manage (administer)

Request body InitRequest

Show 8 fields
FieldTypeNotes
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

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

Permission ha.status (look)

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

Permission ha.manage (administer)

Request body PrepareRequest

Show 2 fields
FieldTypeNotes
ip *stringmaxLength 15
password *stringminLength 1, maxLength 1024

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

Permission ha.manage (administer)

Request body SuggestRequest

Show 1 fields
FieldTypeNotes
targetstring | null

Response 200 map<string, any>