API: network
GET /api/hosts/{host_id}/network#
Host Network
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200 HostNetwork
14 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
can_configure_interfaces * | boolean | |
dhcp_hosts | NetDhcpHost[] | default: [] |
dns_hosts | NetDnsHost[] | default: [] |
gateways * | NetGateway[] | |
host_id * | string | |
host_name * | string | |
interfaces * | NetInterface[] | |
kea_reservations | NetKeaReservation[] | default: [] |
kea_subnets | NetKeaSubnet[] | default: [] |
management_device * | string | null | |
routes * | NetRoute[] | |
unavailable * | string[] | |
vips * | NetVip[] | |
vlans * | NetVlan[] |
POST /api/hosts/{host_id}/network/changes#
Execute Change
Berechtigung hosts.operate (ausrollen)
Parameter
host_id * | path | string (uuid) |
Anfrage-Body NetworkChangeExecute
6 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
acknowledge | boolean | default: false |
action * | "add" | "set" | "del" | |
fields | map<string, any> | |
kind * | "vlan" | "vip" | "gateway" | "route" | "interface" | "dns_host" | "dhcp_host" | "kea_subnet" | "kea_reservation" | "tunable" | "cron_job" | "syslog_destination" | "gateway_group" | "lagg" | "bridge" | "loopback" | "gre" | "gif" | "vxlan" | "dns_forward" | "dhcp_range" | |
preview_token * | string | minLength 64, maxLength 64 |
uuid | string | null |
Antwort 200 NetworkChangeResult
5 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
backup_id * | string | |
mismatches * | string[] | |
status * | string | |
uuid * | string | null | |
verified * | boolean |
POST /api/hosts/{host_id}/network/changes/preview#
Preview Change
Berechtigung hosts.prepare (vorbereiten)
Parameter
host_id * | path | string (uuid) |
Anfrage-Body NetworkChangeRequest
4 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
action * | "add" | "set" | "del" | |
fields | map<string, any> | |
kind * | "vlan" | "vip" | "gateway" | "route" | "interface" | "dns_host" | "dhcp_host" | "kea_subnet" | "kea_reservation" | "tunable" | "cron_job" | "syslog_destination" | "gateway_group" | "lagg" | "bridge" | "loopback" | "gre" | "gif" | "vxlan" | "dns_forward" | "dhcp_range" | |
uuid | string | null |
Antwort 200 NetworkChangePreview
13 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
action * | string | |
blocks * | NetworkChangeRisk[] | |
can_execute * | boolean | |
changes * | NetworkFieldChange[] | |
host_id * | string | |
host_name * | string | |
kind * | string | |
management_device * | string | null | |
requires_acknowledgement * | boolean | |
risks * | NetworkChangeRisk[] | |
token * | string | |
uuid * | string | null | |
warnings * | NetworkChangeRisk[] |
GET /api/hosts/{host_id}/network/item/{kind}/{item_uuid}#
Current Item
The object's current values on the firewall, for pre-filling an edit form.
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) | |
kind * | path | string | |
item_uuid * | path | string |
Antwort 200
GET /api/hosts/{host_id}/network/objects/{kind}#
List Objects
Rows of a generic object kind (tunables, cron jobs, LAGG, ...), reduced to their display columns.
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) | |
kind * | path | string |
Antwort 200
GET /api/hosts/{host_id}/network/template/{kind}#
Change Template
Blank form for one kind, with the choices this firewall accepts for its select fields.
Berechtigung hosts.read (ansehen)
Parameter
host_id * | path | string (uuid) | |
kind * | path | string |
Antwort 200
GET /api/network/drift#
Network Drift
Per cluster: differences in the network configuration between its nodes (live read of every node).
Berechtigung hosts.read (ansehen)