Hetzner Cloud
Create and delete Hetzner Cloud servers/load balancers and create/delete server snapshots
Actions
Section titled “Actions”Instructions
Section titled “Instructions”API Token: Create a token in Hetzner Cloud Console → Project → Security → API Tokens. Use Read & Write scope.
Create Load Balancer
Section titled “Create Load Balancer”The Create Load Balancer component creates a load balancer in Hetzner Cloud.
How It Works
Section titled “How It Works”- Creates a load balancer with the specified name, type, location, and algorithm via the Hetzner API
- Emits the created load balancer details on the default output channel
Configuration
Section titled “Configuration”- Name: The name for the new load balancer (supports expressions)
- Type: The load balancer type (e.g. lb11, lb21, lb31)
- Location: The location where the load balancer will be created
- Algorithm: The load balancing algorithm — Round Robin (default) or Least Connections
Example Output
Section titled “Example Output”{ "data": { "id": "12345", "name": "my-load-balancer", "status": "running" }, "timestamp": "2024-01-15T10:30:00Z", "type": "hetzner.load_balancer.created"}Create Server
Section titled “Create Server”The Create Server component creates a new server in Hetzner Cloud and waits for the create action to complete.
How It Works
Section titled “How It Works”- Creates a server with the given name, server type, image (system image or snapshot), and optional location/SSH keys/user data
- Polls the Hetzner API until the create action finishes
- Emits the server details on the default output when ready. If creation fails, the execution errors.
Configuration
Section titled “Configuration”- Name: Server name (supports expressions)
- Server type: e.g. cx11, cpx11, cax11
- Image: System image or snapshot image ID
- Location (optional): e.g. fsn1, nbg1, hel1
- SSH keys (optional): List of SSH key names or IDs
- Firewall (optional): Attach an existing firewall to the server
- User data (optional): Cloud-init user data
Example Output
Section titled “Example Output”{ "data": { "created": "2024-01-15T10:30:00+00:00", "id": 42, "name": "my-server", "publicIp": "1.2.3.4", "status": "running" }, "timestamp": "2024-01-15T10:30:00Z", "type": "hetzner.server.created"}Create Snapshot
Section titled “Create Snapshot”The Create Snapshot component creates a snapshot image from an existing Hetzner Cloud server and waits for completion.
How It Works
Section titled “How It Works”- Calls the Hetzner API to create a snapshot from the selected server
- Polls the action until snapshot creation finishes
- Emits snapshot details (including image ID) on success. If creation fails, the execution errors.
Configuration
Section titled “Configuration”- Server: Existing server to snapshot
- Snapshot name (optional): Snapshot description/name in Hetzner Cloud
Example Output
Section titled “Example Output”{ "data": { "actionId": "12345", "imageId": 67890, "imageType": "snapshot", "serverId": "42", "snapshotName": "workflow-snapshot" }, "timestamp": "2024-01-15T10:30:00Z", "type": "hetzner.snapshot.created"}Delete Load Balancer
Section titled “Delete Load Balancer”The Delete Load Balancer component deletes a load balancer in Hetzner Cloud.
How It Works
Section titled “How It Works”- Deletes the selected load balancer via the Hetzner API
- Emits on the default output when the load balancer is deleted. If deletion fails, the execution errors.
Example Output
Section titled “Example Output”{ "data": { "loadBalancerId": "12345" }, "timestamp": "2024-01-15T10:30:00Z", "type": "hetzner.load_balancer.deleted"}Delete Server
Section titled “Delete Server”The Delete Server component deletes a server in Hetzner Cloud and waits for the delete action to complete.
How It Works
Section titled “How It Works”- Deletes the selected server via the Hetzner API
- Polls the API until the delete action finishes
- Emits on the default output when the server is deleted. If deletion fails, the execution errors.
Example Output
Section titled “Example Output”{ "data": { "actionId": 123, "serverId": 42 }, "timestamp": "2024-01-15T10:30:00Z", "type": "hetzner.server.deleted"}Delete Snapshot
Section titled “Delete Snapshot”The Delete Snapshot component deletes a snapshot image in Hetzner Cloud.
How It Works
Section titled “How It Works”- Deletes the selected snapshot via the Hetzner API
- Emits on the default output when the snapshot is deleted. If deletion fails, the execution errors.
Example Output
Section titled “Example Output”{ "data": { "imageId": "67890" }, "timestamp": "2024-01-15T10:30:00Z", "type": "hetzner.snapshot.deleted"}