Skip to main content

Get routes for an interface

GET 

/api/node/:hostname/network/route/:interfaceName

Get routes associated with a specific network interface 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).

    interfaceName stringrequired

    Possible values: non-empty

    Network interface name for route operations (e.g., eth0, ens33).

Responses

Routes for the interface.

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.

    routes

    object[]

    Routes for the specified interface.

  • Array [

  • destination string

    Route destination in CIDR notation.

    gateway string

    Gateway IP address.

    interface string

    Network interface name.

    metric integer

    Route metric (priority).

    scope string

    Route scope.

  • ]

  • error string

    Error message if the agent failed.

  • ]

Loading...