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
| Field | Type | Notes |
|---|---|---|
action * | string | maxLength 20 |
password * | string | minLength 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
| Field | Type | Notes |
|---|---|---|
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 |
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
| Field | Type | Notes |
|---|---|---|
ip * | string | maxLength 15 |
password * | string | minLength 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
| Field | Type | Notes |
|---|---|---|
target | string | null |