Skip to main content

Create routes for an interface

POST 

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

Create managed route configuration for a 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).

Body

required

Route configuration parameters.

    routes

    object[]

    required

  • Array [

  • to stringrequired
    via stringrequired
    metric integer
  • ]

Responses

Route configuration created.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    Hostname of the agent that processed this operation.

    status stringrequired

    Possible values: [ok, failed, skipped]

    The status of the operation for this host.

    interface string

    Interface name the routes are associated with.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...