API: rule-order
GET /api/rule-order/hosts/{host_id}#
Host Order
Permission policy.read (look)
Parameters
host_id * | path | string (uuid) |
Response 200 HostOrderRead
Show 3 fields
| Field | Type | Notes |
|---|---|---|
host_id * | string (uuid) | |
open * | OrderChangeRead[] | |
rows * | OrderRow[] |
POST /api/rule-order/hosts/{host_id}/confirm#
Confirm
Permission policy.write (prepare) · browser session only, no API token
Parameters
host_id * | path | string (uuid) |
Response 200 OrderChangeRead[]
Show 10 fields
| Field | Type | Notes |
|---|---|---|
actor * | string | |
created_at * | string (date-time) | |
description * | string | |
host_id * | string (uuid) | |
host_name | string | null | |
id * | string (uuid) | |
message * | string | null | |
revert_deadline * | string (date-time) | null | |
rule_uuid * | string | |
status * | string |
GET /api/rule-order/hosts/{host_id}/links#
Links
Central rules whose recorded UUID on this host is stale although the rule is there (typically after an OPNsense config sync): what repairing would change. Reads the firewall, writes nothing.
Permission policy.read (look)
Parameters
host_id * | path | string (uuid) |
Response 200
POST /api/rule-order/hosts/{host_id}/links/repair#
Repair Links
Apply what ``GET .../links`` showed (the token says which state was shown). Changes only OPNexus's own records.
Permission policy.write (prepare)
Parameters
host_id * | path | string (uuid) |
Request body LinkRepair
Show 1 fields
| Field | Type | Notes |
|---|---|---|
token * | string | minLength 64, maxLength 64 |
Response 200
GET /api/rule-order/hosts/{host_id}/management-check#
Move Management Check
Read-only hint next to a move (R12): would the new order block the way OPNexus or a management source reaches the firewall? Reads the firewall, writes nothing.
Permission policy.read (look)
Parameters
host_id * | path | string (uuid) | |
rule_uuid * | query | string | |
before_uuid | query | string | null |
Response 200
POST /api/rule-order/hosts/{host_id}/move#
Move
Permission policy.deploy (roll out)
Parameters
host_id * | path | string (uuid) |
Request body MoveRequest
Show 3 fields
| Field | Type | Notes |
|---|---|---|
acknowledge_management_risk | boolean | default: false |
before_uuid | string | null | |
rule_uuid * | string | minLength 1, maxLength 64 |
Response 200 OrderChangeRead | null
POST /api/rule-order/hosts/{host_id}/revert#
Revert
Permission policy.deploy (roll out)
Parameters
host_id * | path | string (uuid) |
Response 200 OrderChangeRead[]
Show 10 fields
| Field | Type | Notes |
|---|---|---|
actor * | string | |
created_at * | string (date-time) | |
description * | string | |
host_id * | string (uuid) | |
host_name | string | null | |
id * | string (uuid) | |
message * | string | null | |
revert_deadline * | string (date-time) | null | |
rule_uuid * | string | |
status * | string |
GET /api/rule-order/open#
Open List
Permission policy.read (look)
Response 200 OrderChangeRead[]
Show 10 fields
| Field | Type | Notes |
|---|---|---|
actor * | string | |
created_at * | string (date-time) | |
description * | string | |
host_id * | string (uuid) | |
host_name | string | null | |
id * | string (uuid) | |
message * | string | null | |
revert_deadline * | string (date-time) | null | |
rule_uuid * | string | |
status * | string |