v1

latestOpenAPI 3.0.0GPLv32026-07-17661855.6 KB
Interfaces

Create a host interface definition

post/interfaces/{hostName}/

Path parameters

hostNamestring required

Host name

Request body

idinteger
namestring
bios_idstring
mac_addressstring
switch_ipstring
switch_portstring
speedinteger
vendorstring
pxe_bootboolean
maintenanceboolean
host_idinteger

Example request

{
  "id": 12,
  "name": "em1",
  "bios_id": "nic1",
  "mac_address": "aa:00:bb:11:cc:22",
  "switch_ip": "10.1.1.18",
  "switch_port": "xt-0-0/1",
  "speed": 1000,
  "vendor": "Intel",
  "pxe_boot": true,
  "host_id": 10
}

Response

Interface details list

idinteger
namestring
bios_idstring
mac_addressstring
switch_ipstring
switch_portstring
speedinteger
vendorstring
pxe_bootboolean
maintenanceboolean
host_idinteger

Example response

{
  "id": 12,
  "name": "em1",
  "bios_id": "nic1",
  "mac_address": "aa:00:bb:11:cc:22",
  "switch_ip": "10.1.1.18",
  "switch_port": "xt-0-0/1",
  "speed": 1000,
  "vendor": "Intel",
  "pxe_boot": true,
  "host_id": 10
}