Create Server
hetzner_create_serverCreate a Hetzner Cloud server by specifying type, image, location, SSH keys, and optional networks, firewalls, and user data.
Instructions
Create a new server with the specified type, image, and configuration options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the server | |
| server_type | Yes | Server type name or ID (e.g. "cx22", "cpx11") | |
| image | Yes | Image name or ID to use (e.g. "ubuntu-22.04", "debian-12") | |
| location | No | Location name (e.g. "fsn1", "nbg1", "hel1") | |
| ssh_keys | No | SSH key names or IDs to inject | |
| networks | No | Network IDs to attach the server to | |
| firewalls | No | Firewalls to apply to the server | |
| user_data | No | Cloud-init user data (base64 or plain text) | |
| labels | No | Labels as key-value pairs | |
| placement_group | No | Placement group ID | |
| public_net | No | Public network configuration | |
| automount | No | Auto-mount volumes after attach | |
| start_after_create | No | Start server after creation (default: true) |