OPNexusdocs

API: hosts

GET /api/hosts#

List Hosts

Permission hosts.read (look)

Response 200 HostRead[]

Show 14 fields
FieldTypeNotes
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

Permission hosts.manage (administer)

Request body HostCreate

Show 10 fields
FieldTypeNotes
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

Response 201 HostRead

Show 14 fields
FieldTypeNotes
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

Permission hosts.read (look)

Parameters

host_id *pathstring (uuid)

Response 200 HostRead

Show 14 fields
FieldTypeNotes
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

Permission hosts.manage (administer)

Parameters

host_id *pathstring (uuid)

Request body HostUpdate

Show 11 fields
FieldTypeNotes
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

Response 200 HostRead

Show 14 fields
FieldTypeNotes
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).

Permission hosts.manage (administer)

Parameters

host_id *pathstring (uuid)
confirm_namequerystring

Response 204

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

Aliases

Permission hosts.read (look)

Parameters

host_id *pathstring (uuid)

Response 200 AliasOption[]

Show 5 fields
FieldTypeNotes
content *string
description *string
enabled *boolean
name *string
type *string

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

List Host Backups

Permission hosts.read (look)

Parameters

host_id *pathstring (uuid)

Response 200 HostBackup[]

Show 3 fields
FieldTypeNotes
created_at *string (date-time)
id *string
size *integer

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

Trigger Backup

Permission hosts.prepare (prepare)

Parameters

host_id *pathstring (uuid)

Response 201 HostBackup

Show 3 fields
FieldTypeNotes
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).

Permission backups.download (look)

Parameters

host_id *pathstring (uuid)
backup_id *pathstring

Response 200

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

Cas

Permission hosts.read (look)

Parameters

host_id *pathstring (uuid)

Response 200 HostCa[]

Show 8 fields
FieldTypeNotes
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

Permission hosts.read (look)

Parameters

host_id *pathstring (uuid)

Response 200 HostCertificate[]

Show 10 fields
FieldTypeNotes
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

Permission hosts.read (look)

Parameters

host_id *pathstring (uuid)

Response 200 FirmwareInfo

Show 2 fields
FieldTypeNotes
product_id *string
product_version *string

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

Interfaces

Permission hosts.read (look)

Parameters

host_id *pathstring (uuid)

Response 200 InterfaceOption[]

Show 2 fields
FieldTypeNotes
label *string
name *string

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

Live Rules

Permission hosts.read (look)

Parameters

host_id *pathstring (uuid)

Response 200 LiveRule[]

Show 16 fields
FieldTypeNotes
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

Permission hosts.read (look)

Parameters

host_id *pathstring (uuid)

Response 200 InterfaceOption[]

Show 2 fields
FieldTypeNotes
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.

Permission hosts.manage (administer)

Request body TlsProbeRequest

Show 1 fields
FieldTypeNotes
base_url *stringminLength 1, maxLength 255

Response 200 TlsProbeResult

Show 9 fields
FieldTypeNotes
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