Skip to main content

List network interfaces

GET 

/api/node/:hostname/network/interface

List all network interfaces on the target node.

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

    Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).

Responses

List of network interfaces.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    Hostname of the agent that reported this entry.

    status stringrequired

    Possible values: [ok, failed, skipped]

    The status of the operation for this host.

    interfaces

    object[]

    List of network interfaces on this host.

  • Array [

  • name string

    Interface name.

    ipv4 string

    Primary IPv4 address.

    ipv6 string

    Primary IPv6 address.

    mac string

    Hardware MAC address.

    family string

    Address family (inet, inet6, dual).

    addresses string[]

    IP addresses assigned to the interface (CIDR).

    mac_address string

    Configured MAC address override.

    mtu integer

    Maximum transmission unit.

    state string

    Operational state of the interface.

    dhcp4 boolean

    Whether DHCPv4 is enabled.

    dhcp6 boolean

    Whether DHCPv6 is enabled.

    gateway4 string

    IPv4 gateway address.

    gateway6 string

    IPv6 gateway address.

    wakeonlan boolean

    Whether Wake-on-LAN is enabled.

    primary boolean

    Whether this is the primary (default route) interface.

  • ]

  • error string

    Error message if the agent failed.

  • ]

Loading...