Skip to main content

Retrieve node hostname

GET 

/node/hostname

Get the current hostname of the node.

Request

Query Parameters

    target_hostname string

    Default value: _any

    Target: _any (load-balanced), _all (broadcast), hostname (direct), or key:value (label group, e.g., group:web.dev).

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.

    labels

    object

    Key-value labels configured on the agent.

    property name* string
    error string

    Error message if the agent failed to process the request.

  • ]

Loading...