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
| Feld | Typ | Hinweise |
|---|---|---|
action * | string | maxLength 20 |
password * | string | minLength 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
| Feld | Typ | Hinweise |
|---|---|---|
check | boolean | default: false |
code * | string | minLength 10, maxLength 200 |
node | string | null | |
node_ip | string | null | |
password | string | default: "" · maxLength 1024 |
peer_node | string | null | |
vip * | string | maxLength 18 |
vip_dev | string | 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
| Feld | Typ | Hinweise |
|---|---|---|
ip * | string | maxLength 15 |
password * | string | minLength 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
| Feld | Typ | Hinweise |
|---|---|---|
target | string | null |