API: policy-hierarchy
GET /api/policy-hierarchy/groups#
List Groups
Permission policy.read (look)
Response 200 PolicyHierarchyGroupRead[]
Show 7 fields
| Field | Type | Notes |
|---|---|---|
created_at * | string (date-time) | |
description * | string | |
host_ids | string (uuid)[] | |
id * | string (uuid) | |
name * | string | |
parent_id * | string (uuid) | null | |
version | string | default: "" |
POST /api/policy-hierarchy/groups#
Create Group
Permission policy.write (prepare)
Request body PolicyHierarchyGroupWrite
Show 4 fields
| Field | Type | Notes |
|---|---|---|
description | string | default: "" · maxLength 2000 |
expected_version | string | null | |
name * | string | minLength 1, maxLength 120 |
parent_id | string (uuid) | null |
Response 201 PolicyHierarchyGroupRead
Show 7 fields
| Field | Type | Notes |
|---|---|---|
created_at * | string (date-time) | |
description * | string | |
host_ids | string (uuid)[] | |
id * | string (uuid) | |
name * | string | |
parent_id * | string (uuid) | null | |
version | string | default: "" |
PUT /api/policy-hierarchy/groups/{group_id}#
Update Group
Permission policy.write (prepare)
Parameters
group_id * | path | string (uuid) |
Request body PolicyHierarchyGroupWrite
Show 4 fields
| Field | Type | Notes |
|---|---|---|
description | string | default: "" · maxLength 2000 |
expected_version | string | null | |
name * | string | minLength 1, maxLength 120 |
parent_id | string (uuid) | null |
Response 200 PolicyHierarchyGroupRead
Show 7 fields
| Field | Type | Notes |
|---|---|---|
created_at * | string (date-time) | |
description * | string | |
host_ids | string (uuid)[] | |
id * | string (uuid) | |
name * | string | |
parent_id * | string (uuid) | null | |
version | string | default: "" |
DELETE /api/policy-hierarchy/groups/{group_id}#
Delete Group
Permission policy.write (prepare)
Parameters
group_id * | path | string (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 * | path | string (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 * | path | string (uuid) | |
acknowledge_management_risk | query | boolean |
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 * | path | string (uuid) | |
rulebase * | path | string |
Request body PolicyHierarchyReorder
Show 1 fields
| Field | Type | Notes |
|---|---|---|
items * | PolicyHierarchyReorderItem[] |
Response 200 PolicyHierarchyRuleRead[]
Show 22 fields
| Field | Type | Notes |
|---|---|---|
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_ids | string (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
| Field | Type | Notes |
|---|---|---|
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_ids | string (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
| Field | Type | Notes |
|---|---|---|
action | "pass" | "block" | "reject" | default: "pass" |
description * | string | minLength 1, maxLength 255 |
destination_net | string | default: "any" · minLength 1, maxLength 128 |
destination_port | string | null | |
direction | "in" | "out" | default: "in" |
enabled | boolean | default: true |
hierarchy_group_id * | string (uuid) | |
interface * | string | minLength 1, maxLength 64 |
ipprotocol | "inet" | "inet6" | default: "inet" |
protocol | string | default: "any" · minLength 1, maxLength 16 |
rulebase | "pre" | "post" | default: "pre" |
source_net | string | default: "any" · minLength 1, maxLength 128 |
source_port | string | null |
Response 201 PolicyHierarchyRuleRead
Show 22 fields
| Field | Type | Notes |
|---|---|---|
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_ids | string (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 * | path | string (uuid) |
Request body PolicyHierarchyRuleEdit
Show 14 fields
| Field | Type | Notes |
|---|---|---|
action | "pass" | "block" | "reject" | default: "pass" |
description * | string | minLength 1, maxLength 255 |
destination_net | string | default: "any" · minLength 1, maxLength 128 |
destination_port | string | null | |
direction | "in" | "out" | default: "in" |
enabled | boolean | default: true |
expected_updated_at * | string (date-time) | |
hierarchy_group_id * | string (uuid) | |
interface * | string | minLength 1, maxLength 64 |
ipprotocol | "inet" | "inet6" | default: "inet" |
protocol | string | default: "any" · minLength 1, maxLength 16 |
rulebase | "pre" | "post" | default: "pre" |
source_net | string | default: "any" · minLength 1, maxLength 128 |
source_port | string | null |
Response 200 PolicyHierarchyRuleRead
Show 22 fields
| Field | Type | Notes |
|---|---|---|
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_ids | string (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 * | path | string (uuid) | |
acknowledge_management_risk | query | boolean |
Response 204
POST /api/policy-hierarchy/rules/{rule_id}/confirm#
Confirm
Permission policy.write (prepare)
Parameters
rule_id * | path | string (uuid) |
Response 200 PolicyHierarchyRuleRead
Show 22 fields
| Field | Type | Notes |
|---|---|---|
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_ids | string (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 * | path | string (uuid) |
Request body PolicyHierarchyDeployApproval | null
Response 200 PolicyHierarchyRuleRead
Show 22 fields
| Field | Type | Notes |
|---|---|---|
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_ids | string (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 * | path | string (uuid) | |
host_id * | path | string (uuid) |
Request body PolicyHierarchyDeployApproval
Show 2 fields
| Field | Type | Notes |
|---|---|---|
acknowledge_management_risk | boolean | default: false |
preview_token * | string | minLength 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 * | path | string (uuid) | |
host_id * | path | string (uuid) |
Request body PolicyHierarchyDeployApproval
Show 2 fields
| Field | Type | Notes |
|---|---|---|
acknowledge_management_risk | boolean | default: false |
preview_token * | string | minLength 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 * | path | string (uuid) | |
action | query | "deploy" | "remove" | "delete" | |
host_id | query | string (uuid) | null |
Response 200
POST /api/policy-hierarchy/rules/{rule_id}/move#
Move Rule
Permission policy.write (prepare)
Parameters
rule_id * | path | string (uuid) |
Request body PolicyHierarchyMoveDirection
Show 1 fields
| Field | Type | Notes |
|---|---|---|
direction * | "up" | "down" |
Response 200 PolicyHierarchyRuleRead
Show 22 fields
| Field | Type | Notes |
|---|---|---|
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_ids | string (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 * | path | string (uuid) |
Response 200
GET /api/policy-hierarchy/rules/{rule_id}/revisions#
List Revisions
Permission policy.read (look)
Parameters
rule_id * | path | string (uuid) |