Skip to main content

Shutdown node

POST 

/node/:hostname/power/shutdown

Shutdown the target node. An optional delay (in seconds) and message can be provided.

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

    Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).

Body

Optional shutdown parameters.

    delay integer

    Delay in seconds before the operation is executed.

    message string

    Optional message to broadcast before the operation.

Responses

Shutdown initiated.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    Hostname of the agent that processed this operation.

    status stringrequired

    Possible values: [ok, failed, skipped]

    The status of the operation for this host.

    action string

    The power action performed (reboot, shutdown).

    delay integer

    The delay in seconds before the operation executes.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...