Hetzner Cloud

App · 12 actions

Run your Hetzner Cloud servers from a workflow: list them and check their status, power them on, shut them down or reboot them, label them, and take, list and delete snapshots.

Actions

ActionWhat it does
Add labels to serverAdd labels to a server, or change the value of ones it has.
Create snapshotTake a snapshot of a server: a copy of its disk you can build new servers from.
Delete snapshotDelete a snapshot for good.
Get action statusCheck on a power change or snapshot an earlier step started: whether it is running, succeeded or failed, and how far along it is.
Get serverGet one server: its status, type, location, addresses, labels and whether an action is running on it.
List serversList the project's servers with their status, type, location, addresses and labels, filtered by name, labels or status.
List snapshots and backupsList the project's snapshots and backups, newest first, with their size, status and the server each was taken from.
Power off serverCut a server's power at once, like pulling the plug.
Power on serverSwitch a server that is off back on.
Reboot serverRestart a server, which takes it offline for a short while.
Remove labels from serverRemove labels from a server by their keys.
Shut down serverAsk a server's operating system to shut down, which takes it and what runs on it offline.

Add labels to server

Add labels to a server, or change the value of ones it has. Its other labels stay as they are.

Inputs

Serverserver_idtextRequired
The server. Pick one, or give its id from an earlier step.
LabelslabelsobjectRequired
Each label's key and value, for example {"env": "production"}. Keys and values are up to 63 letters, digits, '-', '_' and '.'.

Outputs

changedtrue/false
False if the server already had these labels
serverobject
A server
Example output
{
  "changed": true,
  "server": {
    "backup_window": "",
    "city": "Falkenstein",
    "cores": 2,
    "country": "DE",
    "created": "2026-10-01T09:00:00+00:00",
    "delete_protection": false,
    "disk_gb": 40,
    "id": 42,
    "image": "ubuntu-24.04",
    "labels": {
      "env": "production"
    },
    "location": "fsn1",
    "locked": false,
    "memory_gb": 4,
    "name": "web-1",
    "private_ips": [
      "10.0.0.2"
    ],
    "public_ipv4": "203.0.113.10",
    "public_ipv6": "2001:db8::/64",
    "rescue_enabled": false,
    "server_type": "cx22",
    "status": "running",
    "volume_ids": []
  }
}

Create snapshot

Take a snapshot of a server: a copy of its disk you can build new servers from. The server keeps running, but for a consistent copy shut it down first. Hetzner makes it in the background; it is ready when 'Get action status' says success. Snapshots are billed for the space they use.

Inputs

Serverserver_idtextRequired
The server. Pick one, or give its id from an earlier step.
Descriptiondescriptiontext
A description to find the snapshot by later.
Labelslabelsobject
Labels to put on the snapshot, for example {"reason": "upgrade"}.

Outputs

actionobject
A Hetzner action: work Hetzner does in the background
imageobject
A snapshot or backup
Example output
{
  "action": {
    "command": "create_image",
    "error_code": "",
    "error_message": "",
    "finished": "",
    "id": 13,
    "progress": 0,
    "resources": [
      {
        "id": 42,
        "type": "server"
      }
    ],
    "started": "2026-10-15T09:00:00+00:00",
    "status": "running"
  },
  "image": {
    "architecture": "x86",
    "bound_to_server_id": null,
    "created": "2026-10-15T09:00:00+00:00",
    "created_from_server_id": 42,
    "created_from_server_name": "web-1",
    "delete_protection": false,
    "description": "web-1 before upgrade",
    "disk_size_gb": 40,
    "id": 4711,
    "image_size_gb": null,
    "labels": {
      "reason": "upgrade"
    },
    "name": "",
    "os_flavor": "ubuntu",
    "os_version": "24.04",
    "status": "creating",
    "type": "snapshot"
  }
}

Delete snapshot

Delete a snapshot for good. Only snapshots can be deleted here, not backups.

Inputs

Snapshotimage_idtextRequired
The snapshot. Pick one, or give its id from an earlier step.

Outputs

deletedtrue/false
Always true once deleted
imageobject
A snapshot or backup
image_idnumber
The snapshot deleted
Example output
{
  "deleted": true,
  "image": {
    "architecture": "x86",
    "bound_to_server_id": null,
    "created": "2026-10-15T09:00:00+00:00",
    "created_from_server_id": 42,
    "created_from_server_name": "web-1",
    "delete_protection": false,
    "description": "web-1 before upgrade",
    "disk_size_gb": 40,
    "id": 4711,
    "image_size_gb": 2.3,
    "labels": {
      "reason": "upgrade"
    },
    "name": "",
    "os_flavor": "ubuntu",
    "os_version": "24.04",
    "status": "available",
    "type": "snapshot"
  },
  "image_id": 4711
}

Get action status

Check on a power change or snapshot an earlier step started: whether it is running, succeeded or failed, and how far along it is.

Inputs

Action IDaction_idtextRequired
The action's id, from the step that started it.

Outputs

actionobject
A Hetzner action: work Hetzner does in the background
Example output
{
  "action": {
    "command": "create_image",
    "error_code": "",
    "error_message": "",
    "finished": "2026-10-15T09:00:20+00:00",
    "id": 13,
    "progress": 100,
    "resources": [
      {
        "id": 42,
        "type": "server"
      }
    ],
    "started": "2026-10-15T09:00:00+00:00",
    "status": "success"
  }
}

Get server

Get one server: its status, type, location, addresses, labels and whether an action is running on it.

Inputs

Serverserver_idtextRequired
The server. Pick one, or give its id from an earlier step.

Outputs

serverobject
A server
Example output
{
  "server": {
    "backup_window": "",
    "city": "Falkenstein",
    "cores": 2,
    "country": "DE",
    "created": "2026-10-01T09:00:00+00:00",
    "delete_protection": false,
    "disk_gb": 40,
    "id": 42,
    "image": "ubuntu-24.04",
    "labels": {
      "env": "production"
    },
    "location": "fsn1",
    "locked": false,
    "memory_gb": 4,
    "name": "web-1",
    "private_ips": [
      "10.0.0.2"
    ],
    "public_ipv4": "203.0.113.10",
    "public_ipv6": "2001:db8::/64",
    "rescue_enabled": false,
    "server_type": "cx22",
    "status": "running",
    "volume_ids": []
  }
}

List servers

List the project's servers with their status, type, location, addresses and labels, filtered by name, labels or status. Gets one page; to see more, run it again with the next page it gives.

Inputs

Namenametext
Only the server with exactly this name.
Label selectorlabel_selectortext
Only those whose labels match, for example env=production. Combine with commas: env=production,team!=web.
Statusstatuslist
Only servers in one of these states.One or more of: running, off, starting, stopping, initializing, rebuilding, migrating, deleting, unknown.
Pagepagenumber
Which page to get, starting at 1. Defaults to the first.At least 1.
Page sizeper_pagenumber
How many to return, 1 to 50. Hetzner's default is 25.From 1 to 50.

Outputs

countnumber
How many servers are on this page
next_pagenumber
The next page's number, 0 when this is the last page
pagenumber
This page's number
serverslist
The servers
totalnumber
How many servers match in all
Example output
{
  "count": 1,
  "next_page": 0,
  "page": 1,
  "servers": [
    {
      "backup_window": "",
      "city": "Falkenstein",
      "cores": 2,
      "country": "DE",
      "created": "2026-10-01T09:00:00+00:00",
      "delete_protection": false,
      "disk_gb": 40,
      "id": 42,
      "image": "ubuntu-24.04",
      "labels": {
        "env": "production"
      },
      "location": "fsn1",
      "locked": false,
      "memory_gb": 4,
      "name": "web-1",
      "private_ips": [
        "10.0.0.2"
      ],
      "public_ipv4": "203.0.113.10",
      "public_ipv6": "2001:db8::/64",
      "rescue_enabled": false,
      "server_type": "cx22",
      "status": "running",
      "volume_ids": []
    }
  ],
  "total": 1
}

List snapshots and backups

List the project's snapshots and backups, newest first, with their size, status and the server each was taken from. Gets one page; to see more, run it again with the next page it gives.

Inputs

Typeimage_typelist
Snapshots, backups or both. Leave empty for both.One or more of: snapshot (Snapshots), backup (Backups).
Label selectorlabel_selectortext
Only those whose labels match, for example env=production. Combine with commas: env=production,team!=web.
Pagepagenumber
Which page to get, starting at 1. Defaults to the first.At least 1.
Page sizeper_pagenumber
How many to return, 1 to 50. Hetzner's default is 25.From 1 to 50.

Outputs

countnumber
How many images are on this page
imageslist
The snapshots and backups
next_pagenumber
The next page's number, 0 when this is the last page
pagenumber
This page's number
totalnumber
How many images match in all
Example output
{
  "count": 1,
  "images": [
    {
      "architecture": "x86",
      "bound_to_server_id": null,
      "created": "2026-10-15T09:00:00+00:00",
      "created_from_server_id": 42,
      "created_from_server_name": "web-1",
      "delete_protection": false,
      "description": "web-1 before upgrade",
      "disk_size_gb": 40,
      "id": 4711,
      "image_size_gb": 2.3,
      "labels": {
        "reason": "upgrade"
      },
      "name": "",
      "os_flavor": "ubuntu",
      "os_version": "24.04",
      "status": "available",
      "type": "snapshot"
    }
  ],
  "next_page": 0,
  "page": 1,
  "total": 1
}

Power off server

Cut a server's power at once, like pulling the plug. Unsaved data can be lost; use it only when 'Shut down server' didn't work. A server that is off is still billed.

Inputs

Serverserver_idtextRequired
The server. Pick one, or give its id from an earlier step.

Outputs

actionobject
A Hetzner action: work Hetzner does in the background
server_idnumber
The server it acts on
Example output
{
  "action": {
    "command": "stop_server",
    "error_code": "",
    "error_message": "",
    "finished": "",
    "id": 13,
    "progress": 0,
    "resources": [
      {
        "id": 42,
        "type": "server"
      }
    ],
    "started": "2026-10-15T09:00:00+00:00",
    "status": "running"
  },
  "server_id": 42
}

Power on server

Switch a server that is off back on. Hetzner starts it in the background; the step returns the action at once.

Inputs

Serverserver_idtextRequired
The server. Pick one, or give its id from an earlier step.

Outputs

actionobject
A Hetzner action: work Hetzner does in the background
server_idnumber
The server it acts on
Example output
{
  "action": {
    "command": "start_server",
    "error_code": "",
    "error_message": "",
    "finished": "",
    "id": 13,
    "progress": 0,
    "resources": [
      {
        "id": 42,
        "type": "server"
      }
    ],
    "started": "2026-10-15T09:00:00+00:00",
    "status": "running"
  },
  "server_id": 42
}

Reboot server

Restart a server, which takes it offline for a short while. With Force, cut its power and start it again instead.

Inputs

Serverserver_idtextRequired
The server. Pick one, or give its id from an earlier step.
Forceforcetrue/false
Cut the power and start the server again, instead of asking it to restart. Use it only if a normal reboot didn't work: unsaved data can be lost.Default: false.

Outputs

actionobject
A Hetzner action: work Hetzner does in the background
server_idnumber
The server it acts on
Example output
{
  "action": {
    "command": "reboot_server",
    "error_code": "",
    "error_message": "",
    "finished": "",
    "id": 13,
    "progress": 0,
    "resources": [
      {
        "id": 42,
        "type": "server"
      }
    ],
    "started": "2026-10-15T09:00:00+00:00",
    "status": "running"
  },
  "server_id": 42
}

Remove labels from server

Remove labels from a server by their keys. Its other labels stay as they are.

Inputs

Serverserver_idtextRequired
The server. Pick one, or give its id from an earlier step.
Label keyskeyslistRequired
The keys of the labels to remove, such as env.

Outputs

removedlist
The keys removed; empty if the server had none of them
serverobject
A server
Example output
{
  "removed": [
    "env"
  ],
  "server": {
    "backup_window": "",
    "city": "Falkenstein",
    "cores": 2,
    "country": "DE",
    "created": "2026-10-01T09:00:00+00:00",
    "delete_protection": false,
    "disk_gb": 40,
    "id": 42,
    "image": "ubuntu-24.04",
    "labels": {},
    "location": "fsn1",
    "locked": false,
    "memory_gb": 4,
    "name": "web-1",
    "private_ips": [
      "10.0.0.2"
    ],
    "public_ipv4": "203.0.113.10",
    "public_ipv6": "2001:db8::/64",
    "rescue_enabled": false,
    "server_type": "cx22",
    "status": "running",
    "volume_ids": []
  }
}

Shut down server

Ask a server's operating system to shut down, which takes it and what runs on it offline. A system that ignores the request keeps running: check with 'Get server', and use 'Power off server' if it is still on. A server that is off is still billed.

Inputs

Serverserver_idtextRequired
The server. Pick one, or give its id from an earlier step.

Outputs

actionobject
A Hetzner action: work Hetzner does in the background
server_idnumber
The server it acts on
Example output
{
  "action": {
    "command": "shutdown_server",
    "error_code": "",
    "error_message": "",
    "finished": "",
    "id": 13,
    "progress": 0,
    "resources": [
      {
        "id": 42,
        "type": "server"
      }
    ],
    "started": "2026-10-15T09:00:00+00:00",
    "status": "running"
  },
  "server_id": 42
}

On this page