API: hosts
GET /api/hosts#
List Hosts
Permission hosts.read (look)
Response 200 HostRead[]
Show 14 fields
| Field | Type | Notes |
|---|---|---|
base_url * | string | |
carp_status | string | null | |
cluster_name * | string | null | |
created_at * | string (date-time) | |
enabled * | boolean | |
id * | string (uuid) | |
name * | string | |
policy_hierarchy_group_id | string (uuid) | null | |
status * | "online" | "offline" | "disabled" | |
status_detail | string | null | |
tls_fingerprint | string | null | |
tls_pinned | boolean | default: false |
verify_tls * | boolean | |
version | string | default: "" |
POST /api/hosts#
Create Host
Permission hosts.manage (administer)
Request body HostCreate
Show 10 fields
| Field | Type | Notes |
|---|---|---|
api_key * | string | minLength 1, maxLength 255 |
api_secret * | string | minLength 1 |
base_url * | string | minLength 1, maxLength 255 |
cluster_name | string | null | |
enabled | boolean | default: true |
name * | string | minLength 1, maxLength 120 |
policy_hierarchy_group_id | string (uuid) | null | |
tls_ca_pem | string | null | |
verify_connection | boolean | default: false |
verify_tls | boolean | default: true |
Response 201 HostRead
Show 14 fields
| Field | Type | Notes |
|---|---|---|
base_url * | string | |
carp_status | string | null | |
cluster_name * | string | null | |
created_at * | string (date-time) | |
enabled * | boolean | |
id * | string (uuid) | |
name * | string | |
policy_hierarchy_group_id | string (uuid) | null | |
status * | "online" | "offline" | "disabled" | |
status_detail | string | null | |
tls_fingerprint | string | null | |
tls_pinned | boolean | default: false |
verify_tls * | boolean | |
version | string | default: "" |
GET /api/hosts/{host_id}#
Get Host
Permission hosts.read (look)
Parameters
host_id * | path | string (uuid) |
Response 200 HostRead
Show 14 fields
| Field | Type | Notes |
|---|---|---|
base_url * | string | |
carp_status | string | null | |
cluster_name * | string | null | |
created_at * | string (date-time) | |
enabled * | boolean | |
id * | string (uuid) | |
name * | string | |
policy_hierarchy_group_id | string (uuid) | null | |
status * | "online" | "offline" | "disabled" | |
status_detail | string | null | |
tls_fingerprint | string | null | |
tls_pinned | boolean | default: false |
verify_tls * | boolean | |
version | string | default: "" |
PATCH /api/hosts/{host_id}#
Update Host
Permission hosts.manage (administer)
Parameters
host_id * | path | string (uuid) |
Request body HostUpdate
Show 11 fields
| Field | Type | Notes |
|---|---|---|
base_url | string | null | |
clear_cluster_name | boolean | default: false |
clear_policy_hierarchy_group_id | boolean | default: false |
clear_tls_pin | boolean | default: false |
cluster_name | string | null | |
enabled | boolean | null | |
expected_version | string | null | |
name | string | null | |
policy_hierarchy_group_id | string (uuid) | null | |
tls_ca_pem | string | null | |
verify_tls | boolean | null |
Response 200 HostRead
Show 14 fields
| Field | Type | Notes |
|---|---|---|
base_url * | string | |
carp_status | string | null | |
cluster_name * | string | null | |
created_at * | string (date-time) | |
enabled * | boolean | |
id * | string (uuid) | |
name * | string | |
policy_hierarchy_group_id | string (uuid) | null | |
status * | "online" | "offline" | "disabled" | |
status_detail | string | null | |
tls_fingerprint | string | null | |
tls_pinned | boolean | default: false |
verify_tls * | boolean | |
version | string | 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 * | path | string (uuid) | |
confirm_name | query | string |
Response 204
GET /api/hosts/{host_id}/aliases#
Aliases
Permission hosts.read (look)
Parameters
host_id * | path | string (uuid) |
Response 200 AliasOption[]
Show 5 fields
| Field | Type | Notes |
|---|---|---|
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 * | path | string (uuid) |
Response 200 HostBackup[]
Show 3 fields
| Field | Type | Notes |
|---|---|---|
created_at * | string (date-time) | |
id * | string | |
size * | integer |
POST /api/hosts/{host_id}/backups#
Trigger Backup
Permission hosts.prepare (prepare)
Parameters
host_id * | path | string (uuid) |
Response 201 HostBackup
Show 3 fields
| Field | Type | Notes |
|---|---|---|
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 * | path | string (uuid) | |
backup_id * | path | string |
Response 200
GET /api/hosts/{host_id}/cas#
Cas
Permission hosts.read (look)
Parameters
host_id * | path | string (uuid) |
Response 200 HostCa[]
Show 8 fields
| Field | Type | Notes |
|---|---|---|
common_name * | string | null | |
days_until_expiry * | integer | null | |
descr * | string | |
refid | string | 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 * | path | string (uuid) |
Response 200 HostCertificate[]
Show 10 fields
| Field | Type | Notes |
|---|---|---|
common_name * | string | null | |
days_until_expiry * | integer | null | |
descr * | string | |
in_use * | boolean | |
issuer * | string | |
refid | string | 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 * | path | string (uuid) |
Response 200 FirmwareInfo
Show 2 fields
| Field | Type | Notes |
|---|---|---|
product_id * | string | |
product_version * | string |
GET /api/hosts/{host_id}/interfaces#
Interfaces
Permission hosts.read (look)
Parameters
host_id * | path | string (uuid) |
Response 200 InterfaceOption[]
Show 2 fields
| Field | Type | Notes |
|---|---|---|
label * | string | |
name * | string |
GET /api/hosts/{host_id}/live-rules#
Live Rules
Permission hosts.read (look)
Parameters
host_id * | path | string (uuid) |
Response 200 LiveRule[]
Show 16 fields
| Field | Type | Notes |
|---|---|---|
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 * | path | string (uuid) |
Response 200 InterfaceOption[]
Show 2 fields
| Field | Type | Notes |
|---|---|---|
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
| Field | Type | Notes |
|---|---|---|
base_url * | string | minLength 1, maxLength 255 |
Response 200 TlsProbeResult
Show 9 fields
| Field | Type | Notes |
|---|---|---|
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 |