Skip to main content

Create interface configuration

POST 

/api/node/:hostname/network/interface/:name

Create a managed Netplan 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).

    name stringrequired

    Possible values: non-empty

    Network interface name (e.g., eth0, ens33).

Body

required

Interface configuration parameters.

    dhcp4 boolean
    dhcp6 boolean
    addresses string[]
    gateway4 string
    gateway6 string
    mtu integer
    mac_address string
    wakeonlan boolean

Responses

Interface 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.

    name string

    Interface name.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...