API: policy-hierarchy
GET /api/policy-hierarchy/groups#
List Groups
Berechtigung policy.read (ansehen)
Antwort 200 PolicyHierarchyGroupRead[]
7 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung policy.write (vorbereiten)
Anfrage-Body PolicyHierarchyGroupWrite
4 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
description | string | default: "" · maxLength 2000 |
expected_version | string | null | |
name * | string | minLength 1, maxLength 120 |
parent_id | string (uuid) | null |
Antwort 201 PolicyHierarchyGroupRead
7 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung policy.write (vorbereiten)
Parameter
group_id * | path | string (uuid) |
Anfrage-Body PolicyHierarchyGroupWrite
4 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
description | string | default: "" · maxLength 2000 |
expected_version | string | null | |
name * | string | minLength 1, maxLength 120 |
parent_id | string (uuid) | null |
Antwort 200 PolicyHierarchyGroupRead
7 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung policy.write (vorbereiten)
Parameter
group_id * | path | string (uuid) |
Antwort 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.
Berechtigung policy.read (ansehen)
Parameter
group_id * | path | string (uuid) |
Antwort 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.
Berechtigung policy.deploy (ausrollen)
Parameter
group_id * | path | string (uuid) | |
acknowledge_management_risk | query | boolean |
Antwort 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.
Berechtigung policy.write (vorbereiten)
Parameter
group_id * | path | string (uuid) | |
rulebase * | path | string |
Anfrage-Body PolicyHierarchyReorder
1 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
items * | PolicyHierarchyReorderItem[] |
Antwort 200 PolicyHierarchyRuleRead[]
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung policy.read (ansehen)
Antwort 200 PolicyHierarchyRuleRead[]
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung policy.write (vorbereiten)
Anfrage-Body PolicyHierarchyRuleCreate
13 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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 |
Antwort 201 PolicyHierarchyRuleRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung policy.write (vorbereiten)
Parameter
rule_id * | path | string (uuid) |
Anfrage-Body PolicyHierarchyRuleEdit
14 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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 |
Antwort 200 PolicyHierarchyRuleRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung policy.deploy (ausrollen)
Parameter
rule_id * | path | string (uuid) | |
acknowledge_management_risk | query | boolean |
Antwort 204
POST /api/policy-hierarchy/rules/{rule_id}/confirm#
Confirm
Berechtigung policy.write (vorbereiten)
Parameter
rule_id * | path | string (uuid) |
Antwort 200 PolicyHierarchyRuleRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung policy.deploy (ausrollen)
Parameter
rule_id * | path | string (uuid) |
Anfrage-Body PolicyHierarchyDeployApproval | null
Antwort 200 PolicyHierarchyRuleRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung policy.deploy (ausrollen)
Parameter
rule_id * | path | string (uuid) | |
host_id * | path | string (uuid) |
Anfrage-Body PolicyHierarchyDeployApproval
2 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
acknowledge_management_risk | boolean | default: false |
preview_token * | string | minLength 64, maxLength 64 |
Antwort 204
POST /api/policy-hierarchy/rules/{rule_id}/deployments/{host_id}/retry-rollback#
Retry Rollback
Berechtigung policy.deploy (ausrollen)
Parameter
rule_id * | path | string (uuid) | |
host_id * | path | string (uuid) |
Anfrage-Body PolicyHierarchyDeployApproval
2 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
acknowledge_management_risk | boolean | default: false |
preview_token * | string | minLength 64, maxLength 64 |
Antwort 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.
Berechtigung policy.read (ansehen)
Parameter
rule_id * | path | string (uuid) | |
action | query | "deploy" | "remove" | "delete" | |
host_id | query | string (uuid) | null |
Antwort 200
POST /api/policy-hierarchy/rules/{rule_id}/move#
Move Rule
Berechtigung policy.write (vorbereiten)
Parameter
rule_id * | path | string (uuid) |
Anfrage-Body PolicyHierarchyMoveDirection
1 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
direction * | "up" | "down" |
Antwort 200 PolicyHierarchyRuleRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung policy.read (ansehen)
Parameter
rule_id * | path | string (uuid) |
Antwort 200
GET /api/policy-hierarchy/rules/{rule_id}/revisions#
List Revisions
Berechtigung policy.read (ansehen)
Parameter
rule_id * | path | string (uuid) |