OPNexusdocs

API: policy-hierarchy

GET /api/policy-hierarchy/groups#

List Groups

Permission policy.read (look)

Response 200 PolicyHierarchyGroupRead[]

Show 7 fields
FieldTypeNotes
created_at *string (date-time)
description *string
host_idsstring (uuid)[]
id *string (uuid)
name *string
parent_id *string (uuid) | null
versionstring default: ""

POST /api/policy-hierarchy/groups#

Create Group

Permission policy.write (prepare)

Request body PolicyHierarchyGroupWrite

Show 4 fields
FieldTypeNotes
descriptionstring default: "" · maxLength 2000
expected_versionstring | null
name *stringminLength 1, maxLength 120
parent_idstring (uuid) | null

Response 201 PolicyHierarchyGroupRead

Show 7 fields
FieldTypeNotes
created_at *string (date-time)
description *string
host_idsstring (uuid)[]
id *string (uuid)
name *string
parent_id *string (uuid) | null
versionstring default: ""

PUT /api/policy-hierarchy/groups/{group_id}#

Update Group

Permission policy.write (prepare)

Parameters

group_id *pathstring (uuid)

Request body PolicyHierarchyGroupWrite

Show 4 fields
FieldTypeNotes
descriptionstring default: "" · maxLength 2000
expected_versionstring | null
name *stringminLength 1, maxLength 120
parent_idstring (uuid) | null

Response 200 PolicyHierarchyGroupRead

Show 7 fields
FieldTypeNotes
created_at *string (date-time)
description *string
host_idsstring (uuid)[]
id *string (uuid)
name *string
parent_id *string (uuid) | null
versionstring default: ""

DELETE /api/policy-hierarchy/groups/{group_id}#

Delete Group

Permission policy.write (prepare)

Parameters

group_id *pathstring (uuid)

Response 204

GET /api/policy-hierarchy/groups/{group_id}/reassert-check#

Reassert Management Check

Read-only hint next to the "reassert ordering" button (R12b-1): would moving the group's rules back to their places block the way OPNexus or a management source reaches a firewall? Reads the firewalls, writes nothing.

Permission policy.read (look)

Parameters

group_id *pathstring (uuid)

Response 200

POST /api/policy-hierarchy/groups/{group_id}/reassert-ordering#

Reassert Ordering

Explicit ordering repair for a group subtree. Normal OPNexus rule/alias/NAT deploys also reassert automatically; this action remains useful after changing the desired order or after manual edits made directly on a firewall.

Permission policy.deploy (roll out)

Parameters

group_id *pathstring (uuid)
acknowledge_management_riskqueryboolean

Response 200

PUT /api/policy-hierarchy/groups/{group_id}/rules/{rulebase}/order#

Reorder Rules

Atomically persist a complete drag-and-drop order. The complete sibling set and every optimistic timestamp must still match. This prevents two administrators from silently overwriting each other's order and avoids the partial state produced by several sequential up/down requests.

Permission policy.write (prepare)

Parameters

group_id *pathstring (uuid)
rulebase *pathstring

Request body PolicyHierarchyReorder

Show 1 fields
FieldTypeNotes
items *PolicyHierarchyReorderItem[]

Response 200 PolicyHierarchyRuleRead[]

Show 22 fields
FieldTypeNotes
action *string
config_key *string
created_at *string (date-time)
deployments *DeploymentResult[]
description *string
destination_net *string
destination_port *string | null
direction *string
effective_host_idsstring (uuid)[]
enabled *boolean
hierarchy_group_id *string (uuid)
id *string (uuid)
interface *string
ipprotocol *string
protocol *string
rulebase *"pre" | "post"
sequence *integer
source_net *string
source_port *string | null
updated_at *string (date-time)
workflow_counts *map<string, integer>
workflow_state *"attention" | "pending" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced"

GET /api/policy-hierarchy/rules#

List Rules

Permission policy.read (look)

Response 200 PolicyHierarchyRuleRead[]

Show 22 fields
FieldTypeNotes
action *string
config_key *string
created_at *string (date-time)
deployments *DeploymentResult[]
description *string
destination_net *string
destination_port *string | null
direction *string
effective_host_idsstring (uuid)[]
enabled *boolean
hierarchy_group_id *string (uuid)
id *string (uuid)
interface *string
ipprotocol *string
protocol *string
rulebase *"pre" | "post"
sequence *integer
source_net *string
source_port *string | null
updated_at *string (date-time)
workflow_counts *map<string, integer>
workflow_state *"attention" | "pending" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced"

POST /api/policy-hierarchy/rules#

Create Rule

Permission policy.write (prepare)

Request body PolicyHierarchyRuleCreate

Show 13 fields
FieldTypeNotes
action"pass" | "block" | "reject" default: "pass"
description *stringminLength 1, maxLength 255
destination_netstring default: "any" · minLength 1, maxLength 128
destination_portstring | null
direction"in" | "out" default: "in"
enabledboolean default: true
hierarchy_group_id *string (uuid)
interface *stringminLength 1, maxLength 64
ipprotocol"inet" | "inet6" default: "inet"
protocolstring default: "any" · minLength 1, maxLength 16
rulebase"pre" | "post" default: "pre"
source_netstring default: "any" · minLength 1, maxLength 128
source_portstring | null

Response 201 PolicyHierarchyRuleRead

Show 22 fields
FieldTypeNotes
action *string
config_key *string
created_at *string (date-time)
deployments *DeploymentResult[]
description *string
destination_net *string
destination_port *string | null
direction *string
effective_host_idsstring (uuid)[]
enabled *boolean
hierarchy_group_id *string (uuid)
id *string (uuid)
interface *string
ipprotocol *string
protocol *string
rulebase *"pre" | "post"
sequence *integer
source_net *string
source_port *string | null
updated_at *string (date-time)
workflow_counts *map<string, integer>
workflow_state *"attention" | "pending" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced"

PUT /api/policy-hierarchy/rules/{rule_id}#

Edit Rule

Permission policy.write (prepare)

Parameters

rule_id *pathstring (uuid)

Request body PolicyHierarchyRuleEdit

Show 14 fields
FieldTypeNotes
action"pass" | "block" | "reject" default: "pass"
description *stringminLength 1, maxLength 255
destination_netstring default: "any" · minLength 1, maxLength 128
destination_portstring | null
direction"in" | "out" default: "in"
enabledboolean default: true
expected_updated_at *string (date-time)
hierarchy_group_id *string (uuid)
interface *stringminLength 1, maxLength 64
ipprotocol"inet" | "inet6" default: "inet"
protocolstring default: "any" · minLength 1, maxLength 16
rulebase"pre" | "post" default: "pre"
source_netstring default: "any" · minLength 1, maxLength 128
source_portstring | null

Response 200 PolicyHierarchyRuleRead

Show 22 fields
FieldTypeNotes
action *string
config_key *string
created_at *string (date-time)
deployments *DeploymentResult[]
description *string
destination_net *string
destination_port *string | null
direction *string
effective_host_idsstring (uuid)[]
enabled *boolean
hierarchy_group_id *string (uuid)
id *string (uuid)
interface *string
ipprotocol *string
protocol *string
rulebase *"pre" | "post"
sequence *integer
source_net *string
source_port *string | null
updated_at *string (date-time)
workflow_counts *map<string, integer>
workflow_state *"attention" | "pending" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced"

DELETE /api/policy-hierarchy/rules/{rule_id}#

Delete Rule

Permission policy.deploy (roll out)

Parameters

rule_id *pathstring (uuid)
acknowledge_management_riskqueryboolean

Response 204

POST /api/policy-hierarchy/rules/{rule_id}/confirm#

Confirm

Permission policy.write (prepare)

Parameters

rule_id *pathstring (uuid)

Response 200 PolicyHierarchyRuleRead

Show 22 fields
FieldTypeNotes
action *string
config_key *string
created_at *string (date-time)
deployments *DeploymentResult[]
description *string
destination_net *string
destination_port *string | null
direction *string
effective_host_idsstring (uuid)[]
enabled *boolean
hierarchy_group_id *string (uuid)
id *string (uuid)
interface *string
ipprotocol *string
protocol *string
rulebase *"pre" | "post"
sequence *integer
source_net *string
source_port *string | null
updated_at *string (date-time)
workflow_counts *map<string, integer>
workflow_state *"attention" | "pending" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced"

POST /api/policy-hierarchy/rules/{rule_id}/deploy#

Deploy

Permission policy.deploy (roll out)

Parameters

rule_id *pathstring (uuid)

Request body PolicyHierarchyDeployApproval | null

Response 200 PolicyHierarchyRuleRead

Show 22 fields
FieldTypeNotes
action *string
config_key *string
created_at *string (date-time)
deployments *DeploymentResult[]
description *string
destination_net *string
destination_port *string | null
direction *string
effective_host_idsstring (uuid)[]
enabled *boolean
hierarchy_group_id *string (uuid)
id *string (uuid)
interface *string
ipprotocol *string
protocol *string
rulebase *"pre" | "post"
sequence *integer
source_net *string
source_port *string | null
updated_at *string (date-time)
workflow_counts *map<string, integer>
workflow_state *"attention" | "pending" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced"

POST /api/policy-hierarchy/rules/{rule_id}/deployments/{host_id}/remove#

Remove Previous Target

Permission policy.deploy (roll out)

Parameters

rule_id *pathstring (uuid)
host_id *pathstring (uuid)

Request body PolicyHierarchyDeployApproval

Show 2 fields
FieldTypeNotes
acknowledge_management_riskboolean default: false
preview_token *stringminLength 64, maxLength 64

Response 204

POST /api/policy-hierarchy/rules/{rule_id}/deployments/{host_id}/retry-rollback#

Retry Rollback

Permission policy.deploy (roll out)

Parameters

rule_id *pathstring (uuid)
host_id *pathstring (uuid)

Request body PolicyHierarchyDeployApproval

Show 2 fields
FieldTypeNotes
acknowledge_management_riskboolean default: false
preview_token *stringminLength 64, maxLength 64

Response 204

GET /api/policy-hierarchy/rules/{rule_id}/management-check#

Rule Management Check

Read-only hint next to the preview (R12): would deploying, removing or deleting this rule block the way OPNexus or a management source reaches the firewall? Reads the firewalls, writes nothing.

Permission policy.read (look)

Parameters

rule_id *pathstring (uuid)
actionquery"deploy" | "remove" | "delete"
host_idquerystring (uuid) | null

Response 200

POST /api/policy-hierarchy/rules/{rule_id}/move#

Move Rule

Permission policy.write (prepare)

Parameters

rule_id *pathstring (uuid)

Request body PolicyHierarchyMoveDirection

Show 1 fields
FieldTypeNotes
direction *"up" | "down"

Response 200 PolicyHierarchyRuleRead

Show 22 fields
FieldTypeNotes
action *string
config_key *string
created_at *string (date-time)
deployments *DeploymentResult[]
description *string
destination_net *string
destination_port *string | null
direction *string
effective_host_idsstring (uuid)[]
enabled *boolean
hierarchy_group_id *string (uuid)
id *string (uuid)
interface *string
ipprotocol *string
protocol *string
rulebase *"pre" | "post"
sequence *integer
source_net *string
source_port *string | null
updated_at *string (date-time)
workflow_counts *map<string, integer>
workflow_state *"attention" | "pending" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced"

GET /api/policy-hierarchy/rules/{rule_id}/preview#

Preview Rule

Permission policy.read (look)

Parameters

rule_id *pathstring (uuid)

Response 200

GET /api/policy-hierarchy/rules/{rule_id}/revisions#

List Revisions

Permission policy.read (look)

Parameters

rule_id *pathstring (uuid)

Response 200