# Hetzner Cloud

> 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.

App · 12 actions. Web page: https://docs.lodol.com/docs/integrations/hetzner-cloud

## Actions

### 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**

- Server (`server_id`, text, required): The server. Pick one, or give its id from an earlier step.
- Labels (`labels`, object, required): Each label's key and value, for example {"env": "production"}. Keys and values are up to 63 letters, digits, '-', '_' and '.'.

**Outputs**

- `changed` (true/false): False if the server already had these labels
- `server` (object): A server

**Example output**

```json
{
  "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**

- Server (`server_id`, text, required): The server. Pick one, or give its id from an earlier step.
- Description (`description`, text): A description to find the snapshot by later.
- Labels (`labels`, object): Labels to put on the snapshot, for example {"reason": "upgrade"}.

**Outputs**

- `action` (object): A Hetzner action: work Hetzner does in the background
- `image` (object): A snapshot or backup

**Example output**

```json
{
  "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**

- Snapshot (`image_id`, text, required): The snapshot. Pick one, or give its id from an earlier step.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `image` (object): A snapshot or backup
- `image_id` (number): The snapshot deleted

**Example output**

```json
{
  "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 ID (`action_id`, text, required): The action's id, from the step that started it.

**Outputs**

- `action` (object): A Hetzner action: work Hetzner does in the background

**Example output**

```json
{
  "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**

- Server (`server_id`, text, required): The server. Pick one, or give its id from an earlier step.

**Outputs**

- `server` (object): A server

**Example output**

```json
{
  "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**

- Name (`name`, text): Only the server with exactly this name.
- Label selector (`label_selector`, text): Only those whose labels match, for example env=production. Combine with commas: env=production,team!=web.
- Status (`status`, list): Only servers in one of these states. One or more of: `running`, `off`, `starting`, `stopping`, `initializing`, `rebuilding`, `migrating`, `deleting`, `unknown`.
- Page (`page`, number): Which page to get, starting at 1. Defaults to the first. At least 1.
- Page size (`per_page`, number): How many to return, 1 to 50. Hetzner's default is 25. From 1 to 50.

**Outputs**

- `count` (number): How many servers are on this page
- `next_page` (number): The next page's number, 0 when this is the last page
- `page` (number): This page's number
- `servers` (list): The servers
- `total` (number): How many servers match in all

**Example output**

```json
{
  "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**

- Type (`image_type`, list): Snapshots, backups or both. Leave empty for both. One or more of: `snapshot` (Snapshots), `backup` (Backups).
- Label selector (`label_selector`, text): Only those whose labels match, for example env=production. Combine with commas: env=production,team!=web.
- Page (`page`, number): Which page to get, starting at 1. Defaults to the first. At least 1.
- Page size (`per_page`, number): How many to return, 1 to 50. Hetzner's default is 25. From 1 to 50.

**Outputs**

- `count` (number): How many images are on this page
- `images` (list): The snapshots and backups
- `next_page` (number): The next page's number, 0 when this is the last page
- `page` (number): This page's number
- `total` (number): How many images match in all

**Example output**

```json
{
  "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**

- Server (`server_id`, text, required): The server. Pick one, or give its id from an earlier step.

**Outputs**

- `action` (object): A Hetzner action: work Hetzner does in the background
- `server_id` (number): The server it acts on

**Example output**

```json
{
  "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**

- Server (`server_id`, text, required): The server. Pick one, or give its id from an earlier step.

**Outputs**

- `action` (object): A Hetzner action: work Hetzner does in the background
- `server_id` (number): The server it acts on

**Example output**

```json
{
  "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**

- Server (`server_id`, text, required): The server. Pick one, or give its id from an earlier step.
- Force (`force`, true/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**

- `action` (object): A Hetzner action: work Hetzner does in the background
- `server_id` (number): The server it acts on

**Example output**

```json
{
  "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**

- Server (`server_id`, text, required): The server. Pick one, or give its id from an earlier step.
- Label keys (`keys`, list, required): The keys of the labels to remove, such as env.

**Outputs**

- `removed` (list): The keys removed; empty if the server had none of them
- `server` (object): A server

**Example output**

```json
{
  "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**

- Server (`server_id`, text, required): The server. Pick one, or give its id from an earlier step.

**Outputs**

- `action` (object): A Hetzner action: work Hetzner does in the background
- `server_id` (number): The server it acts on

**Example output**

```json
{
  "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
}
```
