Relationships
#3140 @swamp/hetzner-cloud/servers: add power actions (poweron, shutdown, poweroff, reboot, reset)
Opened by mellens · 10/7/2026
Problem
@swamp/hetzner-cloud/servers covers a server's lifecycle (create, get, update, delete, sync, list, lookup, adopt, change_protection) but has no power actions. To start or stop an existing server you still need the Hetzner console or a separate tool, even when the server is already modelled and looked up in swamp.
Proposed solution
Add methods for the Hetzner server power actions (POST /servers/{id}/actions/{action}):
poweronshutdown(graceful ACPI)poweroff(hard)reboot(graceful) andreset(hard), for completeness
Suggested behaviour:
- Take the server id from the
stateresource thatlookup/adoptalready writes. - Read the current status first. Make a no-op (power on while running, power off while off) either a clear error or a success that does nothing, so workflows can use the methods safely.
- Wait for the action to finish (
GET /actions/{id}) or for the target status, with a configurable timeout.shutdownneeds a longer default, because it depends on the guest OS. - Refresh
stateafterwards sostatusis current.
Alternatives considered
We added these as a third-party type extension (export const extension on @swamp/hetzner-cloud/servers), published as @mesgme/hetzner-cloud-power with poweron, poweroff and shutdown. It works, but power control is basic enough that it belongs in the official type, and a first-party version would also cover reboot/reset.
Upstream repository: https://github.com/swamp-club/swamp-extensions
Environment
- Extension:
@swamp/hetzner-cloud@2026.10.06.1 - swamp:
20261006.231101.0-sha.9a8ec977 - OS:
darwin(aarch64) - Deno:
2.9.7 - Shell:
/bin/zsh
Open
No activity in this phase yet.
system commented 10/7/2026, 3:58:16 PM
Classified automatically when this issue was filed.
- Source: Extensions
If you feel this classification is incorrect, add a ripple to tell us so.
Sign in to post a ripple.