OPNexusdocs

API: rule-order

GET /api/rule-order/hosts/{host_id}#

Host Order

Permission policy.read (look)

Parameters

host_id *pathstring (uuid)

Response 200 HostOrderRead

Show 3 fields
FieldTypeNotes
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 *pathstring (uuid)

Response 200 OrderChangeRead[]

Show 10 fields
FieldTypeNotes
actor *string
created_at *string (date-time)
description *string
host_id *string (uuid)
host_namestring | null
id *string (uuid)
message *string | null
revert_deadline *string (date-time) | null
rule_uuid *string
status *string

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 *pathstring (uuid)

Request body LinkRepair

Show 1 fields
FieldTypeNotes
token *stringminLength 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 *pathstring (uuid)
rule_uuid *querystring
before_uuidquerystring | null

Response 200

POST /api/rule-order/hosts/{host_id}/move#

Move

Permission policy.deploy (roll out)

Parameters

host_id *pathstring (uuid)

Request body MoveRequest

Show 3 fields
FieldTypeNotes
acknowledge_management_riskboolean default: false
before_uuidstring | null
rule_uuid *stringminLength 1, maxLength 64

Response 200 OrderChangeRead | null

POST /api/rule-order/hosts/{host_id}/revert#

Revert

Permission policy.deploy (roll out)

Parameters

host_id *pathstring (uuid)

Response 200 OrderChangeRead[]

Show 10 fields
FieldTypeNotes
actor *string
created_at *string (date-time)
description *string
host_id *string (uuid)
host_namestring | 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
FieldTypeNotes
actor *string
created_at *string (date-time)
description *string
host_id *string (uuid)
host_namestring | null
id *string (uuid)
message *string | null
revert_deadline *string (date-time) | null
rule_uuid *string
status *string