OPNexusdocs

API: network

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

Host Network

Berechtigung hosts.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200 HostNetwork

14 Felder anzeigen
FeldTypHinweise
can_configure_interfaces *boolean
dhcp_hostsNetDhcpHost[] default: []
dns_hostsNetDnsHost[] default: []
gateways *NetGateway[]
host_id *string
host_name *string
interfaces *NetInterface[]
kea_reservationsNetKeaReservation[] default: []
kea_subnetsNetKeaSubnet[] 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 *pathstring (uuid)

Anfrage-Body NetworkChangeExecute

6 Felder anzeigen
FeldTypHinweise
acknowledgeboolean default: false
action *"add" | "set" | "del"
fieldsmap<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 *stringminLength 64, maxLength 64
uuidstring | null

Antwort 200 NetworkChangeResult

5 Felder anzeigen
FeldTypHinweise
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 *pathstring (uuid)

Anfrage-Body NetworkChangeRequest

4 Felder anzeigen
FeldTypHinweise
action *"add" | "set" | "del"
fieldsmap<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"
uuidstring | null

Antwort 200 NetworkChangePreview

13 Felder anzeigen
FeldTypHinweise
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 *pathstring (uuid)
kind *pathstring
item_uuid *pathstring

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 *pathstring (uuid)
kind *pathstring

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 *pathstring (uuid)
kind *pathstring

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)

Antwort 200