Skip to main content

Send signal to process

POST 

/node/:hostname/process/:pid/signal

Send a signal to a process by PID 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).

    pid integerrequired

    Possible values: >= 1

    Process identifier (PID).

Body

required

Signal to send to the process.

    signal stringrequired

    Possible values: [TERM, KILL, HUP, INT, USR1, USR2]

    Signal name to send to the process.

Responses

Signal sent.

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.

    pid integer

    Process identifier.

    signal string

    Signal that was sent.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...