Skip to main content

Update node hostname

PUT 

/node/:hostname/hostname

Set the system hostname 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).

Body

required

    hostname stringrequired

    The new hostname to set.

Responses

Hostname update accepted.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    The hostname of the agent.

    status stringrequired

    Possible values: [ok, failed, skipped]

    changed boolean

    Whether the hostname was actually modified.

    error string
  • ]

Loading...