hetzner
v4.1.0MCP server for the Hetzner Cloud API — servers, networks, volumes, firewalls, and more.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hetzner_list_servers List Servers
List all servers in the project, with optional filtering by name, label, or status.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by server name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | string | Filter by server status |
hetzner_get_server Get Server
Get details of a specific server by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_create_server Create Server
Create a new server with the specified type, image, and configuration options.
| Parameter | Type | Description |
|---|---|---|
image * | string | Image name or ID to use (e.g. "ubuntu-22.04", "debian-12") |
name * | string | Name of the server |
server_type * | string | Server type name or ID (e.g. "cx22", "cpx11") |
automount | boolean | Auto-mount the volumes passed in "volumes" after attach |
firewalls | array | Firewalls to apply to the server |
labels | object | Labels as key-value pairs |
location | string | Location name (e.g. "fsn1", "nbg1", "hel1") |
networks | array | Network IDs to attach the server to |
placement_group | number | Placement group ID |
public_net | object | Public network configuration |
ssh_keys | array | SSH key names or IDs to inject |
start_after_create | boolean | Start server after creation (default: true) |
user_data | string | Cloud-init user data (base64 or plain text) |
volumes | array | Volume IDs to attach at creation |
hetzner_update_server Update Server
Update a server's name or labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
labels | object | Labels as key-value pairs |
name | string | New server name |
hetzner_delete_server Delete Server
Permanently delete a server. This destroys the server and all associated data.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_power_on Power On Server
Start a stopped server by powering it on.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_power_off Power Off Server
Force power off a server immediately. This is like pulling the power cord.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_reboot Reboot Server
Send an ACPI reboot signal to the server for a soft reboot.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_reset Reset Server
Perform a hard reset on the server, equivalent to pressing the reset button.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_shutdown Shutdown Server
Send an ACPI shutdown signal for a graceful OS shutdown.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_rebuild_server Rebuild Server
Rebuild a server from an image, wiping all data on the server.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
image * | string | Image name or ID to rebuild from |
user_data | string | Cloud-init user data to apply to the rebuilt server. Overrides the value set at creation. |
hetzner_resize_server Resize Server
Change the server type. The server will be stopped and migrated if needed.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
server_type * | string | Target server type name (e.g. "cx22") |
upgrade_disk * | boolean | Whether to upgrade the disk size (cannot be downgraded later) |
hetzner_enable_rescue Enable Rescue Mode
Enable rescue mode on a server. The server must be rebooted to enter rescue mode.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
ssh_keys | array | SSH key IDs to inject into rescue system |
type | string | Rescue system type |
hetzner_disable_rescue Disable Rescue Mode
Disable rescue mode on a server. The next reboot will boot normally.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_get_server_metrics Get Server Metrics
Retrieve time series metrics (CPU, disk, network) for a server over a time range.
| Parameter | Type | Description |
|---|---|---|
end * | string | End of period, ISO 8601 timestamp (e.g. "2025-01-02T00:00:00Z") |
id * | integer | Server ID |
start * | string | Start of period, ISO 8601 timestamp (e.g. "2025-01-01T00:00:00Z") |
type * | string | Comma-separated metric types: "cpu", "disk", "network" |
step | number | Resolution of metric samples in seconds, e.g. 60 |
hetzner_list_server_actions List Server Actions
List all actions for a specific server, such as power changes and rebuilds.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | Filter by action status: "running", "success", or "error"; pass an array for multiple statuses |
hetzner_change_server_protection Change Server Protection
Enable or disable delete and rebuild protection on a server to guard against accidental destruction.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
delete | boolean | If true, prevents the server from being deleted |
rebuild | boolean | If true, prevents the server from being rebuilt |
hetzner_request_console Request Server Console
Request a noVNC WebSocket URL and credentials to access the server console. The URL is valid for a limited time.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_enable_backup Enable Server Backup
Enable automatic daily backups for a server. Backups increase the server price by 20 percent. The backup window is chosen automatically.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_disable_backup Disable Server Backup
Disable automatic backups for a server and remove all existing backup snapshots.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_change_alias_ips Change Server Alias IPs
Replace the alias IPs that a server has on a private network. The list overrides any existing alias IPs for that network.
| Parameter | Type | Description |
|---|---|---|
alias_ips * | array | Full list of alias IPs to set on the network (replaces existing). Pass [] to clear. |
id * | integer | Server ID |
network * | integer | ID of the network the server is attached to |
hetzner_change_dns_ptr Change Server Reverse DNS
Change the reverse DNS entry for one of a server's public IPv4 or IPv6 addresses. Set dns_ptr to null to reset to the default.
| Parameter | Type | Description |
|---|---|---|
dns_ptr * | string | null | Reverse DNS PTR record value, or null to reset to the default |
id * | integer | Server ID |
ip * | string | Public IPv4 or IPv6 address of the server to set the reverse DNS entry for |
hetzner_attach_server_to_network Attach Server to Network
Attach a server to a private network, optionally assigning a specific IP, alias IPs, or IP range.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
network * | integer | ID of the network to attach the server to |
alias_ips | array | Additional alias IPs to assign the server on the network |
ip | string | Private IP to assign the server in the network (within the network IP range) |
ip_range | string | Subnet IP range (CIDR) to attach to, e.g. "10.0.1.0/24" |
hetzner_detach_server_from_network Detach Server from Network
Detach a server from a private network, removing its private connectivity on that network.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
network * | integer | ID of the network to detach the server from |
hetzner_add_server_to_placement_group Add Server to Placement Group
Add a server to a placement group. The server must be powered off before it can be added.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
placement_group * | integer | ID of the placement group to add the server to |
hetzner_remove_server_from_placement_group Remove Server from Placement Group
Remove a server from its placement group.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_reset_server_password Reset Server Root Password
Reset the root password of a server. The server is rebooted and a new root password is returned in the result.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
hetzner_list_locations List Locations
List all available Hetzner Cloud locations (regions).
| Parameter | Type | Description |
|---|---|---|
name | string | Filter by location name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
hetzner_get_location Get Location
Get details of a specific location by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Location ID |
hetzner_list_server_types List Server Types
List server types with specs, pricing, and per-location availability and recommendations.
| Parameter | Type | Description |
|---|---|---|
name | string | Filter by server type name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
hetzner_get_server_type Get Server Type
Get details of a specific server type, including specs and pricing.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server type ID |
hetzner_get_pricing Get Pricing
Get current Hetzner Cloud prices, optionally selecting one resource category or traffic prices. Currency and VAT rate are included with filtered results.
| Parameter | Type | Description |
|---|---|---|
resource | string | Resource category to return; omit for all prices |
hetzner_wait_for_action Wait for Action
Wait for a resource action to reach success or error and return its full details. The timeout includes API requests and rate-limit delays.
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | Action ID to wait for |
domain * | string | Resource domain owning the action |
resource_id * | integer | Resource ID owning the action |
timeout | number | Maximum wait in seconds, including requests and rate-limit delays (default 300, max 3600) |
hetzner_list_networks List Networks
List all networks in the project, with optional filtering by name or labels.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields |
hetzner_list_network_members List Network Members
List resources attached to a network, with their subnet, IP addresses, and attachment status. Filter by resource type, subnet, or status.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Network ID |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort by id, type, status, or ip, e.g. "id:asc"; pass an array for multiple fields | |
status | Attachment status filter; pass an array for multiple statuses | |
subnet | Subnet IP range in CIDR notation; pass an array for multiple subnets | |
type | Resource type filter; pass an array for multiple types |
hetzner_get_network Get Network
Get details of a specific network by its ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
hetzner_create_network Create Network
Create a new network with the specified IP range, and optionally subnets and routes.
| Parameter | Type | Description |
|---|---|---|
ip_range * | string | IP range of the whole network, e.g. "10.0.0.0/8" |
name * | string | Name of the network |
expose_routes_to_vswitch | boolean | Whether to expose routes to the vSwitch |
labels | object | Labels as key-value pairs |
routes | array | Array of routes to create |
subnets | array | Array of subnets to create |
hetzner_update_network Update Network
Update properties of a network such as name, labels, or vSwitch route exposure.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
expose_routes_to_vswitch | boolean | Whether to expose routes to the vSwitch |
labels | object | Labels as key-value pairs |
name | string | New name for the network |
hetzner_delete_network Delete Network
Delete a network. All subnets and routes within it will also be deleted.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
hetzner_add_subnet Add Subnet to Network
Add a subnet to an existing network.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
network_zone * | string | Name of the network zone, e.g. "eu-central" |
type * | string | Subnet type: cloud or vswitch; server is a deprecated alias normalized to cloud (upstream removal 2027-04-15) |
ip_range | string | IP range of the subnet |
vswitch_id | integer | ID of the vSwitch (required for vswitch type) |
hetzner_delete_subnet Delete Subnet from Network
Remove a subnet from an existing network by its IP range.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
ip_range * | string | IP range of the subnet to delete |
hetzner_add_route Add Route to Network
Add a route to an existing network.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Destination network of the route |
gateway * | string | Gateway for the route |
id * | integer | Resource ID |
hetzner_delete_route Delete Route from Network
Remove a route from an existing network.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Destination network of the route to delete |
gateway * | string | Gateway of the route to delete |
id * | integer | Resource ID |
hetzner_change_ip_range Change Network IP Range
Expand the IP range of an existing network. The new CIDR range must contain the current range; shrinking is not supported.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Network ID |
ip_range * | string | New IP range in CIDR notation (e.g. "10.0.0.0/8"). Must be a superset of the current range. |
hetzner_change_network_protection Change Network Protection
Enable or disable delete protection on a network to guard against accidental destruction.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Network ID |
delete | boolean | If true, prevents the network from being deleted |
hetzner_list_network_actions List Network Actions
List all actions performed on a specific network, such as subnet and route changes.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Network ID |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | Filter by action status: "running", "success", or "error"; pass an array for multiple statuses |
hetzner_list_firewalls List Firewalls
List all firewalls in the project, with optional filtering by name or labels.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields |
hetzner_get_firewall Get Firewall
Get details of a specific firewall by its ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
hetzner_create_firewall Create Firewall
Create a new firewall with optional rules and resource assignments.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the firewall |
apply_to | array | Resources to apply the firewall to |
labels | object | Labels as key-value pairs |
rules | array | Array of firewall rules |
hetzner_update_firewall Update Firewall
Update a firewall name or labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
labels | object | Labels as key-value pairs |
name | string | New name for the firewall |
hetzner_delete_firewall Delete Firewall
Delete a firewall. It must be removed from all resources first.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
hetzner_set_firewall_rules Set Firewall Rules
Replace all rules of a firewall with a new set of rules.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
rules * | array | New set of firewall rules (replaces all existing) |
hetzner_apply_firewall Apply Firewall to Resources
Apply a firewall to one or more servers or label selectors.
| Parameter | Type | Description |
|---|---|---|
apply_to * | array | Resources to apply the firewall to |
id * | integer | Resource ID |
hetzner_remove_firewall Remove Firewall from Resources
Remove a firewall from one or more servers or label selectors.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
remove_from * | array | Resources to remove the firewall from |
hetzner_list_firewall_actions List Firewall Actions
List all actions performed on a specific firewall, such as rule and resource attachment changes.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Firewall ID |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | Filter by action status: "running", "success", or "error"; pass an array for multiple statuses |
hetzner_list_load_balancers List Load Balancers
List all load balancers in the project, with optional filtering by name or labels.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields |
hetzner_get_load_balancer Get Load Balancer
Get details of a specific load balancer by its ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
hetzner_create_load_balancer Create Load Balancer
Create a new load balancer with the specified type, location, and optional targets and services.
| Parameter | Type | Description |
|---|---|---|
load_balancer_type * | string | Load balancer type name or ID |
name * | string | Name of the load balancer |
algorithm | object | Load balancing algorithm |
labels | object | Labels as key-value pairs |
location | string | Location name (e.g. "fsn1"), mutually exclusive with network_zone |
network | integer | Network ID to attach to |
network_zone | string | Network zone (e.g. "eu-central"), mutually exclusive with location |
public_interface | boolean | Enable the public interface |
public_net | object | Existing Primary IPs to assign at creation; assignments cannot be changed later |
services | array | Array of services |
targets | array | Array of targets |
hetzner_update_load_balancer Update Load Balancer
Update a load balancer name or labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
labels | object | Labels as key-value pairs |
name | string | New name for the load balancer |
hetzner_delete_load_balancer Delete Load Balancer
Permanently delete a load balancer.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
hetzner_add_lb_target Add Load Balancer Target
Add a target (server, label selector, or IP) to a load balancer.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
type * | string | Target type |
ip | object | IP target |
label_selector | object | Label selector target |
server | object | Server target |
use_private_ip | boolean | Use private IP for the target |
hetzner_remove_lb_target Remove Load Balancer Target
Remove a target from a load balancer.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
type * | string | Target type |
ip | object | IP target |
label_selector | object | Label selector target |
server | object | Server target |
hetzner_add_lb_service Add Load Balancer Service
Add a service (port listener with forwarding rules) to a load balancer.
| Parameter | Type | Description |
|---|---|---|
destination_port * | integer | Port traffic is forwarded to |
id * | integer | Resource ID |
listen_port * | integer | Port the load balancer listens on |
protocol * | string | Service protocol: tcp, http, or https |
health_check | object | Health check configuration |
http | object | HTTP-specific service settings |
proxyprotocol | boolean | Enable PROXY protocol |
hetzner_update_lb_service Update Load Balancer Service
Update an existing service on a load balancer.
| Parameter | Type | Description |
|---|---|---|
destination_port * | integer | Port traffic is forwarded to |
id * | integer | Resource ID |
listen_port * | integer | Port the load balancer listens on |
protocol * | string | Service protocol: tcp, http, or https |
health_check | object | Health check configuration |
http | object | HTTP-specific service settings |
proxyprotocol | boolean | Enable PROXY protocol |
hetzner_delete_lb_service Delete Load Balancer Service
Remove a service from a load balancer by its listen port.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
listen_port * | integer | Listen port of the service to delete |
hetzner_change_lb_algorithm Change Load Balancer Algorithm
Change the balancing algorithm of a load balancer.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
type * | string | Algorithm type |
hetzner_change_lb_type Change Load Balancer Type
Change the type (plan) of a load balancer.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
load_balancer_type * | string | New load balancer type name or ID |
hetzner_attach_lb_to_network Attach Load Balancer to Network
Attach a load balancer to a network.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
network * | integer | Network ID to attach to |
ip | string | IP address to assign in the network |
ip_range | string | Subnet IP range (CIDR) to attach to, e.g. "10.0.1.0/24" |
hetzner_detach_lb_from_network Detach Load Balancer from Network
Detach a load balancer from a network.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
network * | integer | Network ID to detach from |
hetzner_get_lb_metrics Get Load Balancer Metrics
Get metrics for a load balancer over a specified time range.
| Parameter | Type | Description |
|---|---|---|
end * | string | End of the time range in ISO 8601 format |
id * | integer | Resource ID |
start * | string | Start of the time range in ISO 8601 format |
type * | string | Metric type, e.g. "open_connections", "connections_per_second", "requests_per_second", "bandwidth.in", "bandwidth.out" |
step | number | Resolution of metric samples in seconds, e.g. 60 |
hetzner_list_lb_types List Load Balancer Types
List all available load balancer types with pricing and limits.
| Parameter | Type | Description |
|---|---|---|
name | string | Filter by type name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
hetzner_change_load_balancer_protection Change Load Balancer Protection
Enable or disable delete protection on a load balancer to guard against accidental destruction.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Load Balancer ID |
delete | boolean | If true, prevents the load balancer from being deleted |
hetzner_list_load_balancer_actions List Load Balancer Actions
List all actions performed on a specific load balancer, such as service changes and target attachments.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Load Balancer ID |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | Filter by action status: "running", "success", or "error"; pass an array for multiple statuses |
hetzner_enable_lb_public_interface Enable Load Balancer Public Interface
Enable the public network interface of a load balancer so it can be reached over public IPs.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Load Balancer ID |
hetzner_disable_lb_public_interface Disable Load Balancer Public Interface
Disable the public network interface of a load balancer, removing its public connectivity.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Load Balancer ID |
hetzner_change_lb_dns_ptr Change Load Balancer Reverse DNS
Change the reverse DNS entry for one of a load balancer's public IP addresses. Set dns_ptr to null to reset to the default.
| Parameter | Type | Description |
|---|---|---|
dns_ptr * | string | null | Reverse DNS PTR record value, or null to reset to the default |
id * | integer | Load Balancer ID |
ip * | string | Public IPv4 or IPv6 address of the load balancer to set the reverse DNS entry for |
hetzner_list_certificates List Certificates
List all SSL/TLS certificates in the project, with optional filtering.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
type | string | Filter by certificate type |
hetzner_get_certificate Get Certificate
Get details of a specific certificate by its ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
hetzner_create_certificate Create Certificate
Create an uploaded certificate (provide PEM data) or a managed certificate (provide domain names).
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the certificate |
certificate | string | PEM-encoded certificate (required for uploaded type) |
domain_names | array | Domain names (required for managed type) |
labels | object | Labels as key-value pairs |
private_key | string | PEM-encoded private key (required for uploaded type) |
type | string | Certificate type (default: uploaded) |
hetzner_update_certificate Update Certificate
Update a certificate name or labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
labels | object | Labels as key-value pairs |
name | string | New name for the certificate |
hetzner_delete_certificate Delete Certificate
Delete a certificate. It must not be in use by any load balancer.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
hetzner_retry_certificate Retry Certificate Issuance
Retry issuance or renewal of a managed certificate that has failed.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Resource ID |
hetzner_list_certificate_actions List Certificate Actions
List all actions performed on a specific certificate, such as issuance and renewal retries.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Certificate ID |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | Filter by action status: "running", "success", or "error"; pass an array for multiple statuses |
hetzner_list_floating_ips List Floating IPs
List all floating IPs in the project, with optional filtering by name or label.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by floating IP name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields |
hetzner_get_floating_ip Get Floating IP
Get details of a specific floating IP by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Floating IP ID |
hetzner_create_floating_ip Create Floating IP
Create a new floating IP. Either home_location or server must be provided.
| Parameter | Type | Description |
|---|---|---|
type * | string | IP type |
description | string | Description of the floating IP |
home_location | string | Home location name (e.g. "fsn1"). Required if server is not set |
labels | object | Labels as key-value pairs |
name | string | Name of the floating IP |
server | integer | Server ID to assign the floating IP to. Required if home_location is not set |
hetzner_update_floating_ip Update Floating IP
Update a floating IP's name, description, or labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Floating IP ID |
description | string | New description |
labels | object | Labels as key-value pairs |
name | string | New name |
hetzner_delete_floating_ip Delete Floating IP
Delete a floating IP permanently. Since 2026-05-01 the floating IP must be unassigned first; otherwise the API returns the must_be_unassigned error code.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Floating IP ID |
hetzner_assign_floating_ip Assign Floating IP
Assign a floating IP to a server in the same location.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Floating IP ID |
server * | integer | Server ID to assign the floating IP to |
hetzner_unassign_floating_ip Unassign Floating IP
Unassign a floating IP from the server it is currently assigned to.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Floating IP ID |
hetzner_change_floating_ip_rdns Change Floating IP Reverse DNS
Change the reverse DNS entry for a floating IP. Set dns_ptr to null to reset.
| Parameter | Type | Description |
|---|---|---|
dns_ptr * | string | null | Reverse DNS PTR record value, or null to reset |
id * | integer | Floating IP ID |
ip * | string | IP address to set the reverse DNS entry for |
hetzner_change_floating_ip_protection Change Floating IP Protection
Enable or disable delete protection on a floating IP to guard against accidental destruction.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Floating IP ID |
delete | boolean | If true, prevents the floating IP from being deleted |
hetzner_list_floating_ip_actions List Floating IP Actions
List all actions performed on a specific floating IP, such as assign, unassign, and rDNS changes.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Floating IP ID |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | Filter by action status: "running", "success", or "error"; pass an array for multiple statuses |
hetzner_list_primary_ips List Primary IPs
List all primary IPs in the project, with optional filtering by name, label, or IP address.
| Parameter | Type | Description |
|---|---|---|
ip | string | Filter by IP address |
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by primary IP name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields |
hetzner_get_primary_ip Get Primary IP
Get details of a specific primary IP by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Primary IP ID |
hetzner_create_primary_ip Create Primary IP
Create a new primary IP with the specified type, optional location, and optional assignee type.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the primary IP |
type * | string | IP type |
assignee_id | integer | Server ID to assign the primary IP to (create-and-assign in one call) |
assignee_type | string | Assignee type. Optional since 2026-04-27; defaults to "server" until 2026-08-01, then to "unassigned". |
auto_delete | boolean | Delete the primary IP when the assignee is deleted |
labels | object | Labels as key-value pairs |
location | string | Location name (e.g. "fsn1", "nbg1", "hel1") |
hetzner_update_primary_ip Update Primary IP
Update a primary IP's name, auto_delete setting, or labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Primary IP ID |
auto_delete | boolean | Delete the primary IP when the assignee is deleted |
labels | object | Labels as key-value pairs |
name | string | New name |
hetzner_delete_primary_ip Delete Primary IP
Delete a primary IP permanently. Since 2026-05-01 the primary IP must be unassigned first; otherwise the API returns the must_be_unassigned error code.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Primary IP ID |
hetzner_assign_primary_ip Assign Primary IP
Assign a primary IP to a server.
| Parameter | Type | Description |
|---|---|---|
assignee_id * | integer | Server ID to assign the primary IP to |
assignee_type * | string | Assignee type (must be "server") |
id * | integer | Primary IP ID |
hetzner_unassign_primary_ip Unassign Primary IP
Unassign a primary IP from the server it is currently assigned to.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Primary IP ID |
hetzner_change_primary_ip_rdns Change Primary IP Reverse DNS
Change the reverse DNS entry for a primary IP. Set dns_ptr to null to reset.
| Parameter | Type | Description |
|---|---|---|
dns_ptr * | string | null | Reverse DNS PTR record value, or null to reset |
id * | integer | Primary IP ID |
ip * | string | IP address to set the reverse DNS entry for |
hetzner_change_primary_ip_protection Change Primary IP Protection
Enable or disable delete protection on a primary IP to guard against accidental destruction.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Primary IP ID |
delete | boolean | If true, prevents the primary IP from being deleted |
hetzner_list_primary_ip_actions List Primary IP Actions
List all actions performed on a specific primary IP, such as assign, unassign, and rDNS changes.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Primary IP ID |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | Filter by action status: "running", "success", or "error"; pass an array for multiple statuses |
hetzner_list_volumes List Volumes
List all volumes in the project, with optional filtering by name, label, or status.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by volume name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | string | Filter by volume status |
hetzner_get_volume Get Volume
Get details of a specific volume by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Volume ID |
hetzner_create_volume Create Volume
Create a new volume. Either location or assignee must be provided to determine placement.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the volume |
size * | integer | Size of the volume in GB |
assignee | object | Resource to attach the volume to once created; the volume is created in its location |
automount | boolean | Auto-mount the volume after attaching it to the assignee |
format | string | Filesystem format for the volume |
labels | object | Labels as key-value pairs |
location | string | Location name (e.g. "fsn1"). Required if no assignee is set |
server | integer | Deprecated alias for assignee {id: server, type: "server"}; do not combine with assignee |
hetzner_update_volume Update Volume
Update a volume's name or labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Volume ID |
labels | object | Labels as key-value pairs |
name | string | New volume name |
hetzner_delete_volume Delete Volume
Delete a volume permanently. The volume must be detached from any server.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Volume ID |
hetzner_attach_volume Attach Volume
Attach a volume to a resource such as a server. The resource and volume must be in the same location.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Volume ID |
assignee | object | Resource to attach the volume to; required unless the deprecated server is set |
automount | boolean | Auto-mount the volume after attaching |
server | integer | Deprecated alias for assignee {id: server, type: "server"}; do not combine with assignee |
hetzner_detach_volume Detach Volume
Detach a volume from the server it is attached to.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Volume ID |
hetzner_resize_volume Resize Volume
Increase the size of a volume. Volumes can only be made larger, not smaller.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Volume ID |
size * | integer | New size of the volume in GB (must be larger than current size) |
hetzner_change_volume_protection Change Volume Protection
Enable or disable delete protection on a volume to guard against accidental destruction.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Volume ID |
delete | boolean | If true, prevents the volume from being deleted |
hetzner_list_volume_actions List Volume Actions
List all actions performed on a specific volume, such as attach, detach, and resize operations.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Volume ID |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | Filter by action status: "running", "success", or "error"; pass an array for multiple statuses |
hetzner_list_images List Images
List all available images, including system, snapshot, and backup images.
| Parameter | Type | Description |
|---|---|---|
architecture | string | Filter by CPU architecture |
bound_to | Filter backup images by linked server ID; pass an array for multiple servers | |
include_deprecated | boolean | Whether to include deprecated images |
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by image name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | string | Filter by image status |
type | string | Filter by image type |
hetzner_get_image Get Image
Get details of a specific image by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Image ID |
hetzner_update_image Update Image
Update an image's description, type, or labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Image ID |
description | string | New image description |
labels | object | Labels as key-value pairs |
type | string | Image type (only snapshot allowed for conversion) |
hetzner_delete_image Delete Image
Permanently delete a snapshot or backup image.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Image ID |
hetzner_create_image Create Image
Create a snapshot image from an existing server.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | Server ID to create the image from |
description | string | Image description |
labels | object | Labels as key-value pairs |
type | string | Image type (default: snapshot) |
hetzner_change_image_protection Change Image Protection
Enable or disable delete protection on a snapshot or backup image to guard against accidental destruction.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Image ID |
delete | boolean | If true, prevents the image from being deleted |
hetzner_list_image_actions List Image Actions
List all actions performed on a specific image, such as snapshot creation and protection changes.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Image ID |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | Filter by action status: "running", "success", or "error"; pass an array for multiple statuses |
hetzner_list_storage_boxes List Storage Boxes
List all Storage Boxes in the project, with optional filtering by name or labels.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields |
hetzner_create_storage_box Create Storage Box
Create a new Storage Box in the given location and type. Billing applies for the provisioned resource.
| Parameter | Type | Description |
|---|---|---|
location * | string | ID or name of the location, e.g. "fsn1" |
name * | string | Name of the Storage Box |
password * | string | Password for the Storage Box main account |
storage_box_type * | string | ID or name of the Storage Box type, e.g. "bx20" |
access_settings | object | Initial access settings for the Storage Box |
labels | object | Labels as key-value pairs |
ssh_keys | array | SSH public keys in OpenSSH format to inject into the Storage Box |
hetzner_get_storage_box Get Storage Box
Get details of a specific Storage Box by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
hetzner_update_storage_box Update Storage Box
Update the name and/or labels of a Storage Box.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
labels | object | Labels as key-value pairs |
name | string | New name for the Storage Box |
hetzner_delete_storage_box Delete Storage Box
Delete a Storage Box and all of its data permanently. The Storage Box must not be delete-protected.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
hetzner_list_storage_box_folders List Storage Box Folders
List the folders inside a Storage Box, optionally under a given path.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
path | string | Directory path to list folders under (defaults to the root) |
hetzner_list_storage_box_actions List Storage Box Actions
List all actions performed on a specific Storage Box, such as type changes and password resets.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | Filter by action status: "running", "success", or "error"; pass an array for multiple statuses |
hetzner_change_storage_box_protection Change Storage Box Protection
Enable or disable delete protection on a Storage Box to guard against accidental destruction.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
delete | boolean | If true, prevents the Storage Box from being deleted |
hetzner_change_storage_box_type Change Storage Box Type
Change the type (capacity tier) of a Storage Box. The new type must have at least the current usage capacity.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
storage_box_type * | string | ID or name of the target Storage Box type, e.g. "bx30" |
hetzner_reset_storage_box_password Reset Storage Box Password
Reset the password of a Storage Box main account to the supplied value.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
password * | string | New password for the Storage Box main account |
hetzner_update_storage_box_access_settings Update Storage Box Access Settings
Update which access protocols (SSH, Samba, WebDAV, ZFS, external reachability) are enabled on a Storage Box.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
reachable_externally | boolean | Whether the Storage Box is reachable from outside the Hetzner network |
samba_enabled | boolean | Whether Samba/CIFS access is enabled |
ssh_enabled | boolean | Whether SSH/SFTP/SCP access is enabled |
webdav_enabled | boolean | Whether WebDAV access is enabled |
zfs_enabled | boolean | Whether the ZFS snapshot directory is exposed |
hetzner_rollback_storage_box_snapshot Rollback Storage Box Snapshot
Roll a Storage Box back to a snapshot. This overwrites current data with the snapshot contents.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
snapshot * | string | Name of the snapshot to roll back to |
hetzner_enable_storage_box_snapshot_plan Enable Storage Box Snapshot Plan
Enable or update the automatic snapshot plan for a Storage Box (schedule and retention).
| Parameter | Type | Description |
|---|---|---|
hour * | integer | Hour of the day to run the snapshot (0-23, UTC) |
id * | integer | Storage Box ID |
max_snapshots * | integer | Maximum number of automatic snapshots to retain |
minute * | integer | Minute of the hour to run the snapshot (0-59) |
day_of_month | Day of month to run monthly (1-31), or null | |
day_of_week | Day of week to run weekly (1=Monday .. 7=Sunday), or null |
hetzner_disable_storage_box_snapshot_plan Disable Storage Box Snapshot Plan
Disable the automatic snapshot plan for a Storage Box. Existing snapshots are kept.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
hetzner_list_storage_box_types List Storage Box Types
List all available Storage Box types with their capacity, limits, and pricing.
| Parameter | Type | Description |
|---|---|---|
name | string | Filter by name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
hetzner_get_storage_box_type Get Storage Box Type
Get details of a specific Storage Box type by ID, including capacity and pricing.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box type ID |
hetzner_list_storage_box_snapshots List Storage Box Snapshots
List the snapshots of a Storage Box, with optional filtering by name, labels, or automatic-vs-manual.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
is_automatic | boolean | Filter by whether the snapshot was created by the snapshot plan |
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by name |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields |
hetzner_create_storage_box_snapshot Create Storage Box Snapshot
Create a manual snapshot of a Storage Box, optionally with a description and labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
description | string | Human-readable description for the snapshot |
labels | object | Labels as key-value pairs |
hetzner_get_storage_box_snapshot Get Storage Box Snapshot
Get details of a specific Storage Box snapshot by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
snapshot_id * | integer | Snapshot ID |
hetzner_update_storage_box_snapshot Update Storage Box Snapshot
Update the description and/or labels of a Storage Box snapshot.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
snapshot_id * | integer | Snapshot ID |
description | string | New description for the snapshot |
labels | object | Labels as key-value pairs |
hetzner_delete_storage_box_snapshot Delete Storage Box Snapshot
Delete a Storage Box snapshot permanently.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
snapshot_id * | integer | Snapshot ID |
hetzner_list_storage_box_subaccounts List Storage Box Subaccounts
List the subaccounts of a Storage Box, with optional filtering by name, username, or labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by name |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
username | string | Filter by subaccount username |
hetzner_create_storage_box_subaccount Create Storage Box Subaccount
Create a subaccount on a Storage Box, scoped to a home directory with its own password and access settings.
| Parameter | Type | Description |
|---|---|---|
home_directory * | string | Home directory the subaccount is scoped to, e.g. "/backups/web" |
id * | integer | Storage Box ID |
password * | string | Password for the subaccount |
access_settings | object | Initial access settings for the subaccount |
description | string | Human-readable description for the subaccount |
labels | object | Labels as key-value pairs |
name | string | Optional display name for the subaccount |
hetzner_get_storage_box_subaccount Get Storage Box Subaccount
Get details of a specific Storage Box subaccount by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
subaccount_id * | integer | Subaccount ID |
hetzner_update_storage_box_subaccount Update Storage Box Subaccount
Update the name, description, and/or labels of a Storage Box subaccount.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
subaccount_id * | integer | Subaccount ID |
description | string | New description for the subaccount |
labels | object | Labels as key-value pairs |
name | string | New display name for the subaccount |
hetzner_delete_storage_box_subaccount Delete Storage Box Subaccount
Delete a Storage Box subaccount permanently. Its home directory contents are not removed.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
subaccount_id * | integer | Subaccount ID |
hetzner_change_storage_box_subaccount_home_directory Change Storage Box Subaccount Home Directory
Change the home directory a Storage Box subaccount is scoped to.
| Parameter | Type | Description |
|---|---|---|
home_directory * | string | New home directory for the subaccount, e.g. "/backups/db" |
id * | integer | Storage Box ID |
subaccount_id * | integer | Subaccount ID |
hetzner_reset_storage_box_subaccount_password Reset Storage Box Subaccount Password
Reset the password of a Storage Box subaccount to the supplied value.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
password * | string | New password for the subaccount |
subaccount_id * | integer | Subaccount ID |
hetzner_update_storage_box_subaccount_access_settings Update Storage Box Subaccount Access Settings
Update the access settings (read-only, SSH, Samba, WebDAV, external reachability) of a Storage Box subaccount.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Storage Box ID |
subaccount_id * | integer | Subaccount ID |
reachable_externally | boolean | Whether the subaccount is reachable from outside the Hetzner network |
readonly | boolean | Whether the subaccount has read-only access |
samba_enabled | boolean | Whether Samba/CIFS access is enabled for the subaccount |
ssh_enabled | boolean | Whether SSH/SFTP/SCP access is enabled for the subaccount |
webdav_enabled | boolean | Whether WebDAV access is enabled for the subaccount |
hetzner_list_ssh_keys List SSH Keys
List all SSH keys in the project, with optional filtering by name, label, or fingerprint.
| Parameter | Type | Description |
|---|---|---|
fingerprint | string | Filter by SSH key fingerprint |
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by SSH key name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields |
hetzner_get_ssh_key Get SSH Key
Get details of a specific SSH key by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | SSH key ID |
hetzner_create_ssh_key Create SSH Key
Add a new SSH public key to the project for use when creating servers.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the SSH key |
public_key * | string | SSH public key content (e.g. "ssh-rsa AAAA...") |
labels | object | Labels as key-value pairs |
hetzner_update_ssh_key Update SSH Key
Update an SSH key's name or labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | SSH key ID |
labels | object | Labels as key-value pairs |
name | string | New SSH key name |
hetzner_delete_ssh_key Delete SSH Key
Delete an SSH key from the project permanently.
| Parameter | Type | Description |
|---|---|---|
id * | integer | SSH key ID |
hetzner_list_isos List ISOs
List all available ISO images for mounting on servers.
| Parameter | Type | Description |
|---|---|---|
architecture | string | Filter by CPU architecture |
name | string | Filter by ISO name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
hetzner_get_iso Get ISO
Get details of a specific ISO image by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ISO ID |
hetzner_attach_iso Attach ISO to Server
Attach an ISO image to a server. The server must be rebooted to boot from the ISO.
| Parameter | Type | Description |
|---|---|---|
iso * | string | ISO name or ID to attach |
server_id * | integer | Server ID to attach the ISO to |
hetzner_detach_iso Detach ISO from Server
Detach an ISO image from a server. The server must be rebooted for the change to take effect.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | Server ID to detach the ISO from |
hetzner_list_placement_groups List Placement Groups
List all placement groups in the project.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by placement group name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields |
hetzner_get_placement_group Get Placement Group
Get details of a specific placement group by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Placement group ID |
hetzner_create_placement_group Create Placement Group
Create a new placement group to control server distribution across hosts.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the placement group |
type * | string | Placement group type |
labels | object | Labels as key-value pairs |
hetzner_update_placement_group Update Placement Group
Update a placement group's name or labels.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Placement group ID |
labels | object | Labels as key-value pairs |
name | string | New placement group name |
hetzner_delete_placement_group Delete Placement Group
Delete a placement group. All servers must be removed from it first.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Placement group ID |
hetzner_list_zones List DNS Zones
List all DNS zones in the project, with optional filtering by name, mode (primary/secondary), or labels.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
mode | string | Filter by zone mode |
name | string | Filter by name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields |
hetzner_get_zone Get DNS Zone
Get details of a specific DNS zone by its numeric ID or zone name (e.g. "example.com").
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name |
hetzner_create_zone Create DNS Zone
Create a new DNS zone in primary or secondary mode. Optionally provide TTL, primary nameservers (for secondary), initial RRSets, or a zonefile.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Zone mode: "primary" (managed here) or "secondary" (transferred from external primary) |
name * | string | Fully qualified domain name of the zone, e.g. "example.com" |
labels | object | Labels as key-value pairs |
primary_nameservers | array | Primary nameservers (required for secondary zones) |
rrsets | array | Initial RRSets to create with the zone |
ttl | integer | Default TTL in seconds for records in this zone |
zonefile | string | Initial zone content in RFC 1035 zonefile format (alternative to rrsets) |
hetzner_update_zone Update DNS Zone
Update a DNS zone's labels. Other zone properties are managed via dedicated change_* action tools.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
labels | object | Labels as key-value pairs |
hetzner_delete_zone Delete DNS Zone
Delete a DNS zone and all of its RRSets permanently. The zone must not be delete-protected.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name |
hetzner_export_zonefile Export DNS Zonefile
Export the current contents of a DNS zone as an RFC 1035 zonefile string.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name |
hetzner_import_zonefile Import DNS Zonefile
Replace the contents of a DNS zone with the given RFC 1035 zonefile. This overwrites all existing RRSets.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
zonefile * | string | Full zone content in RFC 1035 zonefile format |
hetzner_change_zone_protection Change DNS Zone Protection
Enable or disable delete protection on a DNS zone to guard against accidental destruction.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
delete | boolean | If true, prevents the zone from being deleted |
hetzner_change_zone_ttl Change DNS Zone Default TTL
Change the default TTL applied to records in a DNS zone that do not have an explicit TTL.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
ttl * | integer | New default TTL in seconds |
hetzner_change_zone_primary_nameservers Change DNS Zone Primary Nameservers
Replace the list of primary nameservers used by a secondary DNS zone for AXFR/IXFR transfers.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
primary_nameservers * | array | New full list of primary nameservers |
hetzner_list_zone_actions List DNS Zone Actions
List all actions performed on a specific DNS zone, such as imports, TTL changes, and protection toggles.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
status | Filter by action status: "running", "success", or "error"; pass an array for multiple statuses |
hetzner_list_zone_rrsets List DNS Zone RRSets
List all RRSets in a DNS zone, with optional filtering by name, type, or labels.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
label_selector | string | Label filter, e.g. "env=prod,tier=web" |
name | string | Filter by name |
page | integer | Page number |
per_page | integer | Results per page (max 50) |
sort | Sort field, e.g. "id:asc" or "name:desc"; pass an array for multiple sort fields | |
type | array | Filter by one or more record types |
hetzner_get_zone_rrset Get DNS Zone RRSet
Get a specific RRSet by zone, name, and record type.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
name * | string | RRSet name (e.g. "@", "www", "_acme-challenge") |
type * | string | DNS record type (A, AAAA, CNAME, MX, NS, TXT, etc.) |
hetzner_create_zone_rrset Create DNS Zone RRSet
Create a new RRSet (record set) inside a DNS zone.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
name * | string | RRSet name (e.g. "@", "www", "_acme-challenge") |
type * | string | DNS record type (A, AAAA, CNAME, MX, NS, TXT, etc.) |
labels | object | Labels as key-value pairs |
records | array | Records belonging to this RRSet |
ttl | integer | TTL in seconds for records in this RRSet |
hetzner_update_zone_rrset Update DNS Zone RRSet
Update an RRSet's labels. Records and TTL are managed via dedicated action tools.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
name * | string | RRSet name |
type * | string | DNS record type (A, AAAA, CNAME, MX, NS, TXT, etc.) |
labels | object | Labels as key-value pairs |
hetzner_delete_zone_rrset Delete DNS Zone RRSet
Delete an RRSet from a DNS zone permanently. The RRSet must not be change-protected.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
name * | string | RRSet name |
type * | string | DNS record type (A, AAAA, CNAME, MX, NS, TXT, etc.) |
hetzner_change_zone_rrset_protection Change DNS Zone RRSet Protection
Enable or disable change protection on an RRSet to guard against accidental modification or deletion.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
name * | string | RRSet name |
type * | string | DNS record type (A, AAAA, CNAME, MX, NS, TXT, etc.) |
change | boolean | If true, prevents the RRSet from being modified or deleted |
hetzner_change_zone_rrset_ttl Change DNS Zone RRSet TTL
Change the TTL of an RRSet. Pass ttl=null to fall back to the zone default TTL.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
name * | string | RRSet name |
ttl * | New TTL in seconds, or null to fall back to the zone default | |
type * | string | DNS record type (A, AAAA, CNAME, MX, NS, TXT, etc.) |
hetzner_set_zone_rrset_records Set DNS Zone RRSet Records
Replace the full list of records in an RRSet. Existing records not in the payload are removed.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
name * | string | RRSet name |
records * | array | Full replacement list of records for this RRSet |
type * | string | DNS record type (A, AAAA, CNAME, MX, NS, TXT, etc.) |
hetzner_add_zone_rrset_records Add Records to DNS Zone RRSet
Add new records to an existing RRSet without removing existing ones. Optionally update the RRSet TTL.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
name * | string | RRSet name |
records * | array | Records to add to the RRSet |
type * | string | DNS record type (A, AAAA, CNAME, MX, NS, TXT, etc.) |
ttl | integer | Optional new TTL applied alongside the addition |
hetzner_update_zone_rrset_records Update DNS Zone RRSet Record Comments
Update the comment on existing records in an RRSet (matched by value). The comment field is always sent — use an empty string to clear.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
name * | string | RRSet name |
records * | array | Records to update |
type * | string | DNS record type (A, AAAA, CNAME, MX, NS, TXT, etc.) |
hetzner_remove_zone_rrset_records Remove Records from DNS Zone RRSet
Remove specific records from an RRSet (matched by value) without deleting the RRSet itself.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | Zone ID or name | |
name * | string | RRSet name |
records * | array | Records to remove (matched by value) |
type * | string | DNS record type (A, AAAA, CNAME, MX, NS, TXT, etc.) |