Skip to main content

Get service details

GET 

/node/:hostname/service/:name

Get detailed information about a specific service 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).

    name stringrequired

    Possible values: non-empty

    Service unit name (e.g., nginx, sshd).

Responses

Service detail.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    Hostname of the agent that reported this entry.

    status stringrequired

    Possible values: [ok, failed, skipped]

    The status of the operation for this host.

    service

    object

    Information about a systemd service.

    name string

    Service unit name.

    status string

    Active status of the service.

    enabled boolean

    Whether the service is enabled to start on boot.

    description string

    Service description from the unit file.

    pid integer

    Main process ID of the service.

    error string

    Error message if the agent failed.

  • ]

Loading...