OPNexusdocs

API: hosts

GET /api/hosts#

List Hosts

Berechtigung hosts.read (ansehen)

Antwort 200 HostRead[]

14 Felder anzeigen
FeldTypHinweise
base_url *string
carp_statusstring | null
cluster_name *string | null
created_at *string (date-time)
enabled *boolean
id *string (uuid)
name *string
policy_hierarchy_group_idstring (uuid) | null
status *"online" | "offline" | "disabled"
status_detailstring | null
tls_fingerprintstring | null
tls_pinnedboolean default: false
verify_tls *boolean
versionstring default: ""

POST /api/hosts#

Create Host

Berechtigung hosts.manage (verwalten)

Anfrage-Body HostCreate

10 Felder anzeigen
FeldTypHinweise
api_key *stringminLength 1, maxLength 255
api_secret *stringminLength 1
base_url *stringminLength 1, maxLength 255
cluster_namestring | null
enabledboolean default: true
name *stringminLength 1, maxLength 120
policy_hierarchy_group_idstring (uuid) | null
tls_ca_pemstring | null
verify_connectionboolean default: false
verify_tlsboolean default: true

Antwort 201 HostRead

14 Felder anzeigen
FeldTypHinweise
base_url *string
carp_statusstring | null
cluster_name *string | null
created_at *string (date-time)
enabled *boolean
id *string (uuid)
name *string
policy_hierarchy_group_idstring (uuid) | null
status *"online" | "offline" | "disabled"
status_detailstring | null
tls_fingerprintstring | null
tls_pinnedboolean default: false
verify_tls *boolean
versionstring default: ""

GET /api/hosts/{host_id}#

Get Host

Berechtigung hosts.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200 HostRead

14 Felder anzeigen
FeldTypHinweise
base_url *string
carp_statusstring | null
cluster_name *string | null
created_at *string (date-time)
enabled *boolean
id *string (uuid)
name *string
policy_hierarchy_group_idstring (uuid) | null
status *"online" | "offline" | "disabled"
status_detailstring | null
tls_fingerprintstring | null
tls_pinnedboolean default: false
verify_tls *boolean
versionstring default: ""

PATCH /api/hosts/{host_id}#

Update Host

Berechtigung hosts.manage (verwalten)

Parameter

host_id *pathstring (uuid)

Anfrage-Body HostUpdate

11 Felder anzeigen
FeldTypHinweise
base_urlstring | null
clear_cluster_nameboolean default: false
clear_policy_hierarchy_group_idboolean default: false
clear_tls_pinboolean default: false
cluster_namestring | null
enabledboolean | null
expected_versionstring | null
namestring | null
policy_hierarchy_group_idstring (uuid) | null
tls_ca_pemstring | null
verify_tlsboolean | null

Antwort 200 HostRead

14 Felder anzeigen
FeldTypHinweise
base_url *string
carp_statusstring | null
cluster_name *string | null
created_at *string (date-time)
enabled *boolean
id *string (uuid)
name *string
policy_hierarchy_group_idstring (uuid) | null
status *"online" | "offline" | "disabled"
status_detailstring | null
tls_fingerprintstring | null
tls_pinnedboolean default: false
verify_tls *boolean
versionstring default: ""

DELETE /api/hosts/{host_id}#

Delete Host

Deleting a host drops its stored credentials at once, so the caller must name it (like every other destructive action in OPNexus), not only a click in the UI: `DELETE /api/hosts/{id}?confirm_name=<name>` (T4).

Berechtigung hosts.manage (verwalten)

Parameter

host_id *pathstring (uuid)
confirm_namequerystring

Antwort 204

GET /api/hosts/{host_id}/aliases#

Aliases

Berechtigung hosts.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200 AliasOption[]

5 Felder anzeigen
FeldTypHinweise
content *string
description *string
enabled *boolean
name *string
type *string

GET /api/hosts/{host_id}/backups#

List Host Backups

Berechtigung hosts.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200 HostBackup[]

3 Felder anzeigen
FeldTypHinweise
created_at *string (date-time)
id *string
size *integer

POST /api/hosts/{host_id}/backups#

Trigger Backup

Berechtigung hosts.prepare (vorbereiten)

Parameter

host_id *pathstring (uuid)

Antwort 201 HostBackup

3 Felder anzeigen
FeldTypHinweise
created_at *string (date-time)
id *string
size *integer

GET /api/hosts/{host_id}/backups/{backup_id}#

Download Host Backup

Raw config.xml snapshot — contains password hashes, VPN keys and other firewall secrets, so unlike the (metadata-only) listing it is not part of the "read_only may GET everything" allowance. Every attempt is audited (who/which snapshot, never the content).

Berechtigung backups.download (ansehen)

Parameter

host_id *pathstring (uuid)
backup_id *pathstring

Antwort 200

GET /api/hosts/{host_id}/cas#

Cas

Berechtigung hosts.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200 HostCa[]

8 Felder anzeigen
FeldTypHinweise
common_name *string | null
days_until_expiry *integer | null
descr *string
refidstring default: ""
status *"valid" | "expiring_soon" | "expired" | "unknown"
uuid *string
valid_from *string (date-time) | null
valid_to *string (date-time) | null

GET /api/hosts/{host_id}/certificates#

Certificates

Berechtigung hosts.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200 HostCertificate[]

10 Felder anzeigen
FeldTypHinweise
common_name *string | null
days_until_expiry *integer | null
descr *string
in_use *boolean
issuer *string
refidstring default: ""
status *"valid" | "expiring_soon" | "expired" | "unknown"
uuid *string
valid_from *string (date-time) | null
valid_to *string (date-time) | null

GET /api/hosts/{host_id}/firmware-info#

Firmware Info

Berechtigung hosts.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200 FirmwareInfo

2 Felder anzeigen
FeldTypHinweise
product_id *string
product_version *string

GET /api/hosts/{host_id}/interfaces#

Interfaces

Berechtigung hosts.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200 InterfaceOption[]

2 Felder anzeigen
FeldTypHinweise
label *string
name *string

GET /api/hosts/{host_id}/live-rules#

Live Rules

Berechtigung hosts.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200 LiveRule[]

16 Felder anzeigen
FeldTypHinweise
action *string
action_label *string
description *string
destination_net *string
destination_port *string | null
direction *string
direction_label *string
enabled *boolean
interface *string | null
interface_label *string | null
is_automatic *boolean
protocol *string | null
protocol_label *string | null
source_net *string
source_port *string | null
uuid *string

GET /api/hosts/{host_id}/protocols#

Protocols

Berechtigung hosts.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200 InterfaceOption[]

2 Felder anzeigen
FeldTypHinweise
label *string
name *string

POST /api/hosts/tls-probe#

Tls Probe

Read (not trust) the certificate a firewall presents, so a human can compare its fingerprint with the one shown on the firewall before pinning it.

Berechtigung hosts.manage (verwalten)

Anfrage-Body TlsProbeRequest

1 Felder anzeigen
FeldTypHinweise
base_url *stringminLength 1, maxLength 255

Antwort 200 TlsProbeResult

9 Felder anzeigen
FeldTypHinweise
expired *boolean
issuer *string
not_after *string (date-time)
not_before *string (date-time)
pem *string
san *string[]
self_signed *boolean
sha256 *string
subject *string