API: hosts
GET /api/hosts#
List Hosts
Berechtigung hosts.read (ansehen)
Antwort 200 HostRead[]
14 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung hosts.manage (verwalten)
Anfrage-Body HostCreate
10 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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 |
Antwort 201 HostRead
14 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200 HostRead
14 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung hosts.manage (verwalten)
Parameter
host_id * | path | string (uuid) |
Anfrage-Body HostUpdate
11 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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 |
Antwort 200 HostRead
14 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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).
Berechtigung hosts.manage (verwalten)
Parameter
host_id * | path | string (uuid) | |
confirm_name | query | string |
Antwort 204
GET /api/hosts/{host_id}/aliases#
Aliases
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200 AliasOption[]
5 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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 * | path | string (uuid) |
Antwort 200 HostBackup[]
3 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
created_at * | string (date-time) | |
id * | string | |
size * | integer |
POST /api/hosts/{host_id}/backups#
Trigger Backup
Berechtigung hosts.prepare (vorbereiten)
Parameter
host_id * | path | string (uuid) |
Antwort 201 HostBackup
3 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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 * | path | string (uuid) | |
backup_id * | path | string |
Antwort 200
GET /api/hosts/{host_id}/cas#
Cas
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200 HostCa[]
8 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200 HostCertificate[]
10 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200 FirmwareInfo
2 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
product_id * | string | |
product_version * | string |
GET /api/hosts/{host_id}/interfaces#
Interfaces
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200 InterfaceOption[]
2 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
label * | string | |
name * | string |
GET /api/hosts/{host_id}/live-rules#
Live Rules
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200 LiveRule[]
16 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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 * | path | string (uuid) |
Antwort 200 InterfaceOption[]
2 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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
| Feld | Typ | Hinweise |
|---|---|---|
base_url * | string | minLength 1, maxLength 255 |
Antwort 200 TlsProbeResult
9 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
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 |