Skip to main content

Retrieve disk usage

GET 

/api/node/:hostname/disk

Get disk usage information for 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).

Responses

Disk usage information.

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]

    The status of the operation for this host.

    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.

  • ]

  • changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...