Create a cloud server
cloud_create_serverCreate a Hetzner Cloud server with optional SSH keys, private network, firewalls, and cloud-init data. Requires confirmation and shows live pricing.
Instructions
Create a Hetzner Cloud server. This is billed. It requires confirm true and shows the live hourly and monthly price first. Optionally attach SSH keys, a private network, firewalls, cloud-init user_data, and labels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Server name. | |
| image | Yes | For example ubuntu-24.04. List options with cloud_list_images. | |
| labels | No | Key value labels. | |
| confirm | No | Must be true. Creating a server costs money. | |
| location | No | For example nbg1, fsn1, hel1. | |
| networks | No | Private network ids to attach. | |
| ssh_keys | No | SSH key ids or names. | |
| firewalls | No | Firewall ids to apply. | |
| user_data | No | cloud-init user data run at first boot. | |
| server_type | Yes | For example cx23 or cax21. List options with cloud_list_server_types. | |
| start_after_create | No | Start the server after creation. Default true. |