Skip to main content

Retrieve node hostname

GET 

/node/:hostname/hostname

Get the current hostname and labels of the node.

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

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

Responses

A JSON object containing the node's hostname.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    The system's hostname.

    status stringrequired

    Possible values: [ok, failed, skipped]

    The status of the operation for this host.

    labels

    object

    Key-value labels configured on the agent.

    property name* string
    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...