Skip to main content

Retrieve node status

GET 

/node/:hostname

Get the current status of the node including hostname, uptime, load averages, memory, and disk usage.

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 status information.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    The hostname of the system.

    uptime string

    The uptime of the system.

    load_average

    object

    The system load averages for 1, 5, and 15 minutes.

    1min numberrequired

    Load average for the last 1 minute.

    5min numberrequired

    Load average for the last 5 minutes.

    15min numberrequired

    Load average for the last 15 minutes.

    memory

    object

    Memory usage information.

    total integerrequired

    Total memory in bytes.

    free integerrequired

    Free memory in bytes.

    used integerrequired

    Used memory in bytes.

    disks

    object[]

    List of local disk usage information.

  • Array [

  • name stringrequired

    Disk identifier, e.g., "/dev/sda1".

    total integerrequired

    Total disk space in bytes.

    used integerrequired

    Used disk space in bytes.

    free integerrequired

    Free disk space in bytes.

  • ]

  • os_info

    object

    Operating system information.

    distribution stringrequired

    The name of the Linux distribution.

    version stringrequired

    The version of the Linux distribution.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...