OPNexusdocs

API: policy-hierarchy

GET /api/policy-hierarchy/groups#

List Groups

Berechtigung policy.read (ansehen)

Antwort 200 PolicyHierarchyGroupRead[]

7 Felder anzeigen
FeldTypHinweise
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

Berechtigung policy.write (vorbereiten)

Anfrage-Body PolicyHierarchyGroupWrite

4 Felder anzeigen
FeldTypHinweise
descriptionstring default: "" · maxLength 2000
expected_versionstring | null
name *stringminLength 1, maxLength 120
parent_idstring (uuid) | null

Antwort 201 PolicyHierarchyGroupRead

7 Felder anzeigen
FeldTypHinweise
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

Berechtigung policy.write (vorbereiten)

Parameter

group_id *pathstring (uuid)

Anfrage-Body PolicyHierarchyGroupWrite

4 Felder anzeigen
FeldTypHinweise
descriptionstring default: "" · maxLength 2000
expected_versionstring | null
name *stringminLength 1, maxLength 120
parent_idstring (uuid) | null

Antwort 200 PolicyHierarchyGroupRead

7 Felder anzeigen
FeldTypHinweise
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

Berechtigung policy.write (vorbereiten)

Parameter

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

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

Anfrage-Body PolicyHierarchyReorder

1 Felder anzeigen
FeldTypHinweise
items *PolicyHierarchyReorderItem[]

Antwort 200 PolicyHierarchyRuleRead[]

22 Felder anzeigen
FeldTypHinweise
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

Berechtigung policy.read (ansehen)

Antwort 200 PolicyHierarchyRuleRead[]

22 Felder anzeigen
FeldTypHinweise
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

Berechtigung policy.write (vorbereiten)

Anfrage-Body PolicyHierarchyRuleCreate

13 Felder anzeigen
FeldTypHinweise
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

Antwort 201 PolicyHierarchyRuleRead

22 Felder anzeigen
FeldTypHinweise
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

Berechtigung policy.write (vorbereiten)

Parameter

rule_id *pathstring (uuid)

Anfrage-Body PolicyHierarchyRuleEdit

14 Felder anzeigen
FeldTypHinweise
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

Antwort 200 PolicyHierarchyRuleRead

22 Felder anzeigen
FeldTypHinweise
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

Berechtigung policy.deploy (ausrollen)

Parameter

rule_id *pathstring (uuid)
acknowledge_management_riskqueryboolean

Antwort 204

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

Confirm

Berechtigung policy.write (vorbereiten)

Parameter

rule_id *pathstring (uuid)

Antwort 200 PolicyHierarchyRuleRead

22 Felder anzeigen
FeldTypHinweise
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

Berechtigung policy.deploy (ausrollen)

Parameter

rule_id *pathstring (uuid)

Anfrage-Body PolicyHierarchyDeployApproval | null

Antwort 200 PolicyHierarchyRuleRead

22 Felder anzeigen
FeldTypHinweise
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

Berechtigung policy.deploy (ausrollen)

Parameter

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

Anfrage-Body PolicyHierarchyDeployApproval

2 Felder anzeigen
FeldTypHinweise
acknowledge_management_riskboolean default: false
preview_token *stringminLength 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 *pathstring (uuid)
host_id *pathstring (uuid)

Anfrage-Body PolicyHierarchyDeployApproval

2 Felder anzeigen
FeldTypHinweise
acknowledge_management_riskboolean default: false
preview_token *stringminLength 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 *pathstring (uuid)
actionquery"deploy" | "remove" | "delete"
host_idquerystring (uuid) | null

Antwort 200

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

Move Rule

Berechtigung policy.write (vorbereiten)

Parameter

rule_id *pathstring (uuid)

Anfrage-Body PolicyHierarchyMoveDirection

1 Felder anzeigen
FeldTypHinweise
direction *"up" | "down"

Antwort 200 PolicyHierarchyRuleRead

22 Felder anzeigen
FeldTypHinweise
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

Berechtigung policy.read (ansehen)

Parameter

rule_id *pathstring (uuid)

Antwort 200

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

List Revisions

Berechtigung policy.read (ansehen)

Parameter

rule_id *pathstring (uuid)

Antwort 200