Hetzner Cloud (unofficial)
v0.2.0Unofficial MCP server for the Hetzner Cloud API: one typed tool per operation, read and write.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hcloud_apply_firewall_to_server
Apply a firewall (by id or by name) to a server. Hand-tuned wrapper around POST /firewalls/{id}/actions/apply_to_resources.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | |
firewall_id | integer | |
firewall_name | string |
hcloud_certificate_retry_action
Retry Issuance or Renewal Retry a failed Certificate issuance or renewal. Only applicable if the type of the Certificate is `managed` and the issuance or renewal status is `failed`. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | | `caa_record_does_not_allow_ca` | CAA record does not allow certificate authority | | | `ca_dns_validation_failed` | Certificate Authority: DNS validation failed | | | `ca_too_many_authorizations_failed_recently` | Certificate Authority: Too many authorizations failed recently | | | `ca_too_many_certificates_issued_for_reg…
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Certificate. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_create_certificate
Create a Certificate Creates a new Certificate. The default type **uploaded** allows for uploading your existing `certificate` and `private_key` in PEM format. You have to monitor its expiration date and handle renewal yourself. In contrast, type **managed** requests a new Certificate from *Let's Encrypt* for the specified `domain_names`. Only domains managed by *Hetzner DNS* are supported. We handle renewal and timely alert the project owner via email if problems occur. For type `managed` Certificates the `action` key of the response contains the Action that allows for tracking the issuan…
| Parameter | Type | Description |
|---|---|---|
body * | object | |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_create_firewall
Create a Firewall Create a [Firewall](#tag/firewalls). #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `server_already_added` | The [Server](#tag/servers) was applied more than once. | | `422` | `incompatible_network_type` | The resources network type is not supported by [Firewalls](#tag/firewalls). | | `422` | `firewall_resource_not_found` | The resource the [Firewall](#tag/firewalls) should be attached to was not found. |
| Parameter | Type | Description |
|---|---|---|
body * | object |
hcloud_create_floating_ip
Create a Floating IP Create a [Floating IP](#tag/floating-ips). Provide the `server` attribute to assign the [Floating IP](#tag/floating-ips) to that server or provide a `home_location` to locate the [Floating IP](#tag/floating-ips) at. Note that the [Floating IP](#tag/floating-ips) can be assigned to a [Server](#tag/servers) in any [Location](#tag/locations) later on. For optimal routing it is advised to use the [Floating IP](#tag/floating-ips) in the same [Location](#tag/locations) it was created in.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_create_load_balancer
Create a Load Balancer Creates a Load Balancer. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `412` | `source_port_already_used` | The source port you are trying to add is already in use | | `412` | `primary_ip_version_mismatch` | The specified Primary IP has the wrong IP version | | `422` | `ip_not_owned` | The IP is not owned by the owner of the project of the Load Balancer | | `422` | `load_balancer_not_attached_to_network` | The Load Balancer is not attached to a network | | `422` | `resolve_cloud_private_targets_error` | The server you are trying…
hcloud_create_network
Create a Network Creates a [Network](#tag/networks). The provided `ip_range` can only be extended later on, but not reduced. Subnets can be added now or later on using the [add subnet action](#tag/network-actions/add_network_subnet). If you do not specify an `ip_range` for the subnet the first available /24 range will be used. Routes can be added now or later by using the [add route action](#tag/network-actions/add_network_route).
| Parameter | Type | Description |
|---|---|---|
body * | object |
hcloud_create_placement_group
Create a PlacementGroup Creates a new Placement Group.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_create_primary_ip
Create a Primary IP Create a new [Primary IP](#tag/primary-ips). Can optionally be assigned to a resource by providing an `assignee_id` and `assignee_type`. If not assigned to a resource the `location` key needs to be provided. This can be either the ID or the name of the [Location](#tag/locations) this [Primary IP](#tag/primary-ips) shall be created in. A [Primary IP](#tag/primary-ips) can only be assigned to resource in the same [Location](#tag/locations) later on. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `server_not_stopped` | The sp…
| Parameter | Type | Description |
|---|---|---|
body * | object | |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_create_server
Create a Server Creates a new Server. Returns preliminary information about the Server as well as an Action that covers progress of creation. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `412` | `primary_ip_version_mismatch` | The specified Primary IP has the wrong IP Version | | `422` | `placement_error` | An error during the placement occurred | | `422` | `primary_ip_assigned` | The specified Primary IP is already assigned to a server | | `422` | `primary_ip_datacenter_mismatch` | The specified Primary IP is in a different location |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_create_ssh_key
Create an SSH key Creates a new SSH key with the given `name` and `public_key`. Once an SSH key is created, it can be used in other calls such as creating Servers.
| Parameter | Type | Description |
|---|---|---|
body * | object |
hcloud_create_volume
Create a Volume Creates a new Volume attached to a Server. If you want to create a Volume that is not attached to a Server, you need to provide the `location` key instead of `server`. This can be either the ID or the name of the Location this Volume will be created in. Note that a Volume can be attached to a Server only in the same Location as the Volume itself. Specifying the Server during Volume creation will automatically attach the Volume to that Server after it has been initialized. In that case, the `next_actions` key in the response is an array which contains a single `attach_volume`…
| Parameter | Type | Description |
|---|---|---|
body * | object | |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_create_zone
Create a Zone Creates a [Zone](#tag/zones). A default `SOA` and three `NS` resource records with the assigned Hetzner nameservers are created automatically.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_delete_certificate
Delete a Certificate Deletes a Certificate.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Certificate. |
hcloud_delete_firewall
Delete a Firewall Deletes the [Firewall](#tag/firewalls). #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `resource_in_use` | [Firewall](#tag/firewalls) still applied to a resource |
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Firewall. |
hcloud_delete_floating_ip
Delete a Floating IP Deletes a [Floating IP](#tag/floating-ips). If assigned to a [Server](#tag/servers) the [Floating IP](#tag/floating-ips) will be unassigned automatically until 1 May 2026. After this date, the [Floating IP](#tag/floating-ips) needs to be unassigned before it can be deleted. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `must_be_unassigned` | Error when IP is still assigned to a Resource. This error will appear as of 1 May 2026. |
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Floating IP. |
hcloud_delete_image
Delete an Image Deletes an Image. Only Images of type `snapshot` and `backup` can be deleted.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Image. |
hcloud_delete_load_balancer
Delete a Load Balancer Deletes a Load Balancer.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_delete_network
Delete a Network Deletes a [Network](#tag/networks). Attached resources will be detached automatically.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Network. |
hcloud_delete_placement_group
Delete a PlacementGroup Deletes a Placement Group.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Placement Group. |
hcloud_delete_primary_ip
Delete a Primary IP Deletes a [Primary IP](#tag/primary-ips). The [Server](#tag/servers) must be powered off (status `off`) in order for this operation to succeed. If assigned to a [Server](#tag/servers) the [Primary IP](#tag/primary-ips) will be unassigned automatically until 1 May 2026. After this date, the [Primary IP](#tag/primary-ips) needs to be unassigned before it can be deleted. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `must_be_unassigned` | Error when IP is still assigned to a Resource. This error will appear as of 1 May 2026. |…
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Primary IP. |
hcloud_delete_server
Delete a Server Deletes a Server. This immediately removes the Server from your account, and it is no longer accessible. Any resources attached to the server (like Volumes, Primary IPs, Floating IPs, Firewalls, Placement Groups) are detached while the server is deleted.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_delete_ssh_key
Delete an SSH key Deletes an SSH key. It cannot be used anymore.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the SSH Key. |
hcloud_delete_volume
Delete a Volume Deletes a volume. All Volume data is irreversibly destroyed. The Volume must not be attached to a Server and it must not have delete protection enabled.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Volume. |
hcloud_delete_zone
Delete a Zone Deletes a [Zone](#tag/zones).
| Parameter | Type | Description |
|---|---|---|
id_or_name * | string | ID or Name of the Zone. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_delete_zone_rrset
Delete an RRSet Deletes an [RRSet](#tag/zone-rrsets) from the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
id_or_name * | string | ID or Name of the Zone. |
rr_name * | string | Name of the [RRSet](#tag/zone-rrsets). The name must be in lower case, and must not end with a dot or the [Zone](#tag/zones) name. Names containing non-ASCII characters must be transcribed to [Punyco… |
rr_type * | string | Type of the [RRSet](#tag/zone-rrsets). |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_firewall_apply_to_resources_action
Apply to Resources Applies a [Firewall](#tag/firewalls) to multiple resources. Supported resources: - [Servers](#tag/servers) (with a public network interface) - [Label Selectors](#description/label-selector) A [Server](#tag/servers) can be applied to [a maximum of 5 Firewalls](https://docs.hetzner.com/cloud/firewalls/overview#limits). This limit applies to [Servers](#tag/servers) applied via a matching [Label Selector](#description/label-selector) as well. Updates to resources matching or no longer matching a [Label Selector](#description/label-selector) can take up to a few seconds to be…
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Firewall. |
hcloud_firewall_remove_from_resources_action
Remove from Resources Removes a [Firewall](#tag/firewalls) from multiple resources. Supported resources: - [Servers](#tag/servers) (with a public network interface) A [Firewall](#tag/firewalls) is removed from a resource once the related [Action](#tag/actions) with command `remove_firewall` successfully finished. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `404` | `firewall_resource_not_found` | The resource the [Firewall](#tag/firewalls) should be removed from was not found | | `422` | `firewall_managed_by_label_selector` | [Firewall](#tag/firewal…
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Firewall. |
hcloud_firewall_set_rules_action
Set Rules Set the rules of a [Firewall](#tag/firewalls). Overwrites the existing rules with the given ones. Pass an empty array to remove all rules. Rules are limited to 50 entries per [Firewall](#tag/firewalls) and [500 effective rules](https://docs.hetzner.com/cloud/firewalls/overview#limits).
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Firewall. |
hcloud_floating_ip_assign_action
Assign a Floating IP to a Server Assigns a [Floating IP](#tag/floating-ips) to a [Server](#tag/servers). #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `floating_ip_assigned` | The [Floating IP](#tag/floating-ips) is already assigned |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Floating IP. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_floating_ip_change_dns_ptr_action
Change reverse DNS records for a Floating IP Change the reverse DNS records for this [Floating IP](#tag/floating-ips). Allows to modify the PTR records set for the IP address.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Floating IP. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_floating_ip_change_protection_action
Change Floating IP Protection Changes the protection settings configured for the [Floating IP](#tag/floating-ips).
| Parameter | Type | Description |
|---|---|---|
body * | object | Protection configuration for the Resource. |
id * | integer | ID of the Floating IP. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_floating_ip_unassign_action
Unassign a Floating IP Unassigns a [Floating IP](#tag/floating-ips). Results in the IP being unreachable. Can be assigned to another resource again.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Floating IP. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_action
Get an Action Returns a specific Action object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Action. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_certificate
Get a Certificate Gets a specific Certificate object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Certificate. |
hcloud_get_certificate_action
Get an Action for a Certificate **Deprecated**: This operation is deprecated, see our [changelog](https://docs.hetzner.cloud/changelog#2026-04-30-deprecate-get-resource-action-endpoints) for more details. Returns a specific Action for a Certificate. Only type `managed` Certificates have Actions.
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | ID of the Action. |
id * | integer | ID of the Certificate. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_certificates_actions
List Actions Returns all Action objects. You can `sort` the results by using the sort URI parameter, and filter them with the `status` and `id` parameter.
| Parameter | Type | Description |
|---|---|---|
id | array | Filter the actions by ID. May be used multiple times. The response will only contain actions matching the specified IDs. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_get_certificates_actions_id
Get an Action Returns a specific Action object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Action. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_datacenter
Get a Data Center **Deprecated:** This endpoint is deprecated as of 01 June 2026 and will be removed after 01 October 2026. Returns a single [Data Center](#tag/data-centers).
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Data Center. |
hcloud_get_firewall
Get a Firewall Returns a single [Firewall](#tag/firewalls).
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Firewall. |
hcloud_get_firewall_action
Get an Action for a Firewall **Deprecated**: This operation is deprecated, see our [changelog](https://docs.hetzner.cloud/changelog#2026-04-30-deprecate-get-resource-action-endpoints) for more details. Returns a specific [Action](#tag/actions) for a [Firewall](#tag/firewalls).
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | ID of the Action. |
id * | integer | ID of the Firewall. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_firewalls_actions
List Actions Returns all [Actions](#tag/actions) for [Firewalls](#tag/firewalls). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
id | array | Filter the actions by ID. May be used multiple times. The response will only contain actions matching the specified IDs. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_get_firewalls_actions_id
Get an Action Returns the specific [Action](#tag/actions).
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Action. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_floating_ip
Get a Floating IP Returns a single [Floating IP](#tag/floating-ips).
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Floating IP. |
hcloud_get_floating_ip_action
Get an Action for a Floating IP **Deprecated**: This operation is deprecated, see our [changelog](https://docs.hetzner.cloud/changelog#2026-04-30-deprecate-get-resource-action-endpoints) for more details. Returns a specific [Action](#tag/actions) for a [Floating IP](#tag/floating-ips).
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | ID of the Action. |
id * | integer | ID of the Floating IP. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_floating_ips_actions
List Actions Lists multiple [Actions](#tag/actions). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
id | array | Filter the actions by ID. May be used multiple times. The response will only contain actions matching the specified IDs. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_get_floating_ips_actions_id
Get an Action Returns a single [Action](#tag/actions).
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Action. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_image
Get an Image Returns a specific Image object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Image. |
hcloud_get_image_action
Get an Action for an Image **Deprecated**: This operation is deprecated, see our [changelog](https://docs.hetzner.cloud/changelog#2026-04-30-deprecate-get-resource-action-endpoints) for more details. Returns a specific Action for an Image.
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | ID of the Action. |
id * | integer | ID of the Image. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_images_actions
List Actions Returns all Action objects. You can `sort` the results by using the sort URI parameter, and filter them with the `status` and `id` parameter.
| Parameter | Type | Description |
|---|---|---|
id | array | Filter the actions by ID. May be used multiple times. The response will only contain actions matching the specified IDs. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_get_images_actions_id
Get an Action Returns a specific Action object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Action. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_iso
Get an ISO Returns a specific ISO object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the ISO. |
hcloud_get_load_balancer
Get a Load Balancer Gets a specific Load Balancer object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Load Balancer. |
hcloud_get_load_balancer_action
Get an Action for a Load Balancer **Deprecated**: This operation is deprecated, see our [changelog](https://docs.hetzner.cloud/changelog#2026-04-30-deprecate-get-resource-action-endpoints) for more details. Returns a specific Action for a Load Balancer.
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | ID of the Action. |
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_load_balancer_metrics
Get Metrics for a LoadBalancer You must specify the type of metric to get: `open_connections`, `connections_per_second`, `requests_per_second` or `bandwidth`. You can also specify more than one type by comma separation, e.g. `requests_per_second,bandwidth`. Depending on the type you will get different time series data: |Type | Timeseries | Unit | Description | |---- |------------|------|-------------| | open_connections | open_connections | number | Open connections | | connections_per_second | connections_per_second | connections/s | Connections per second | | requests_per_second | request…
| Parameter | Type | Description |
|---|---|---|
end * | string | End of period to get Metrics for (must be in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). |
id * | integer | ID of the Load Balancer. |
start * | string | Start of period to get Metrics for (must be in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). |
type * | array | Type of metrics to get. |
step | string | Resolution of results in seconds. |
hcloud_get_load_balancer_type
Get a Load Balancer Type Gets a specific Load Balancer type object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Load Balancer Type. |
hcloud_get_load_balancers_actions
List Actions Returns all Action objects. You can `sort` the results by using the sort URI parameter, and filter them with the `status` and `id` parameter.
| Parameter | Type | Description |
|---|---|---|
id | array | Filter the actions by ID. May be used multiple times. The response will only contain actions matching the specified IDs. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_get_load_balancers_actions_id
Get an Action Returns a specific Action object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Action. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_location
Get a Location Returns a [Location](#tag/locations).
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Location. |
hcloud_get_network
Get a Network Get a specific [Network](#tag/networks).
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Network. |
hcloud_get_network_action
Get an Action for a Network **Deprecated**: This operation is deprecated, see our [changelog](https://docs.hetzner.cloud/changelog#2026-04-30-deprecate-get-resource-action-endpoints) for more details. Returns a specific [Action](#tag/actions) for a [Network](#tag/networks).
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | ID of the Action. |
id * | integer | ID of the Network. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_network_members
List Members of a Network List the resources attached to a specific [Network](#tag/networks). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Network. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter members by status. May be used multiple times. The response will only contain members matching the specified statuses. |
subnet | array | Filter members by the subnet they are attached to. May be used multiple times. The response will only contain members attached to the subnets with the specified IP ranges. Uses CIDR notation. |
type | array | Filter members by type. May be used multiple times. The response will only contain members matching the specified types. |
hcloud_get_networks_actions
List Actions Lists multiple [Actions](#tag/actions). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
id | array | Filter the actions by ID. May be used multiple times. The response will only contain actions matching the specified IDs. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_get_networks_actions_id
Get an Action Returns a single [Action](#tag/actions).
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Action. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_placement_group
Get a PlacementGroup Gets a specific Placement Group object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Placement Group. |
hcloud_get_pricing
Get all prices Returns prices for all resources available on the platform. VAT and currency of the Project owner are used for calculations. Both net and gross prices are included in the response.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
hcloud_get_primary_ip
Get a Primary IP Returns a [Primary IP](#tag/primary-ips).
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Primary IP. |
hcloud_get_primary_ip_action
Get an Action for a Primary IP **Deprecated**: This operation is deprecated, see our [changelog](https://docs.hetzner.cloud/changelog#2026-04-30-deprecate-get-resource-action-endpoints) for more details. Returns a specific [Action](#tag/actions) for a [Primary IP](#tag/primary-ips).
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | ID of the Action. |
id * | integer | ID of the Primary IP. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_primary_ips_actions
List Actions Lists multiple [Actions](#tag/actions). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
id | array | Filter the actions by ID. May be used multiple times. The response will only contain actions matching the specified IDs. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_get_primary_ips_actions_id
Get an Action Returns a single [Action](#tag/actions).
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Action. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_server
Fetch a single Hetzner Cloud server by numeric id OR by exact name. Hand-tuned wrapper; use hcloud_get_server_raw for the id-only generated tool.
| Parameter | Type | Description |
|---|---|---|
id | integer | |
name | string |
hcloud_get_server_action
Get an Action for a Server **Deprecated**: This operation is deprecated, see our [changelog](https://docs.hetzner.cloud/changelog#2026-04-30-deprecate-get-resource-action-endpoints) for more details. Returns a specific Action object for a Server.
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | ID of the Action. |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_server_metrics
Fetch a server's metrics (cpu / disk / network). Accept id OR name. Defaults to the last hour with step=60s. Hand-tuned wrapper.
| Parameter | Type | Description |
|---|---|---|
type * | string | |
end | string | ISO-8601 timestamp; default: now |
id | integer | |
name | string | |
start | string | ISO-8601 timestamp; default: now - 1 hour |
step | integer |
hcloud_get_server_metrics_raw
Get Metrics for a Server Get Metrics for specified Server. You must specify the type of metric to get: cpu, disk or network. You can also specify more than one type by comma separation, e.g. cpu,disk. Depending on the type you will get different time series data | Type | Timeseries | Unit | Description | |---------|-------------------------|-----------|------------------------------------------------------| | cpu | cpu | percent | Percent CPU usage | | disk | disk.0…
| Parameter | Type | Description |
|---|---|---|
end * | string | End of period to get Metrics for (must be in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). |
id * | integer | ID of the Server. |
start * | string | Start of period to get Metrics for (must be in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). |
type * | array | Type of metrics to get. |
step | string | Resolution of results in seconds. |
hcloud_get_server_raw
Get a Server Returns a specific Server object. The Server must exist inside the Project.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
hcloud_get_server_type
Get a Server Type Gets a specific Server type object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server Type. |
hcloud_get_servers_actions
List Actions Returns all Action objects. You can `sort` the results by using the sort URI parameter, and filter them with the `status` and `id` parameter.
| Parameter | Type | Description |
|---|---|---|
id | array | Filter the actions by ID. May be used multiple times. The response will only contain actions matching the specified IDs. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_get_servers_actions_id
Get an Action Returns a specific Action object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Action. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_ssh_key
Get a SSH key Returns a specific SSH key object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the SSH Key. |
hcloud_get_volume
Get a Volume Gets a specific Volume object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Volume. |
hcloud_get_volume_action
Get an Action for a Volume **Deprecated**: This operation is deprecated, see our [changelog](https://docs.hetzner.cloud/changelog#2026-04-30-deprecate-get-resource-action-endpoints) for more details. Returns a specific Action for a Volume.
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | ID of the Action. |
id * | integer | ID of the Volume. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_volumes_actions
List Actions Returns all Action objects. You can `sort` the results by using the sort URI parameter, and filter them with the `status` and `id` parameter.
| Parameter | Type | Description |
|---|---|---|
id | array | Filter the actions by ID. May be used multiple times. The response will only contain actions matching the specified IDs. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_get_volumes_actions_id
Get an Action Returns a specific Action object.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Action. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_zone
Get a Zone Returns a single [Zone](#tag/zones).
| Parameter | Type | Description |
|---|---|---|
id_or_name * | string | ID or Name of the Zone. |
hcloud_get_zone_action
Get an Action for a Zone **Deprecated**: This operation is deprecated, see our [changelog](https://docs.hetzner.cloud/changelog#2026-04-30-deprecate-get-resource-action-endpoints) for more details. Returns a specific [Action](#tag/actions) for a [Zone](#tag/zones).
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | ID of the Action. |
id_or_name * | string | ID or Name of the Zone. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_get_zone_rrset
Get an RRSet Returns a single [RRSet](#tag/zone-rrsets) from the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
id_or_name * | string | ID or Name of the Zone. |
rr_name * | string | Name of the [RRSet](#tag/zone-rrsets). The name must be in lower case, and must not end with a dot or the [Zone](#tag/zones) name. Names containing non-ASCII characters must be transcribed to [Punyco… |
rr_type * | string | Type of the [RRSet](#tag/zone-rrsets). |
hcloud_get_zone_rrsets
List RRSets Returns all [RRSets](#tag/zone-rrsets) in the [Zone](#tag/zones). Use the provided URI parameters to modify the result. Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
id_or_name * | string | ID or Name of the Zone. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
type | array | Filter resources by their type. May be used multiple times. The response will only contain resources matching the specified types. |
hcloud_get_zone_zonefile
Export a Zone file Returns a generated [Zone](#tag/zones) file in BIND (RFC [1034](https://datatracker.ietf.org/doc/html/rfc1034)/[1035](https://datatracker.ietf.org/doc/html/rfc1035)) format. Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
id_or_name * | string | ID or Name of the Zone. |
hcloud_get_zones_actions
List Actions Returns all [Zone](#tag/zones) [Actions](#tag/actions). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
id | array | Filter the actions by ID. May be used multiple times. The response will only contain actions matching the specified IDs. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_get_zones_actions_id
Get an Action Returns a specific [Action](#tag/actions).
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Action. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_image_change_protection_action
Change Image Protection Changes the protection configuration of the Image. Can only be used on snapshots.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Image. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_list_actions
Get multiple Actions Returns multiple Action objects specified by the `id` parameter. **Note**: This endpoint previously allowed listing all actions in the project. This functionality was deprecated in July 2023 and removed on 30 January 2025. - Announcement: https://docs.hetzner.cloud/changelog#2023-07-20-actions-list-endpoint-is-deprecated - Removal: https://docs.hetzner.cloud/changelog#2025-01-30-listing-arbitrary-actions-in-the-actions-list-endpoint-is-removed
| Parameter | Type | Description |
|---|---|---|
id * | array | Filter the actions by ID. May be used multiple times. The response will only contain actions matching the specified IDs. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
hcloud_list_certificate_actions
List Actions for a Certificate Returns all Action objects for a Certificate. You can sort the results by using the `sort` URI parameter, and filter them with the `status` parameter. Only type `managed` Certificates can have Actions. For type `uploaded` Certificates the `actions` key will always contain an empty array.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Certificate. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_list_certificates
List Certificates Returns all Certificate objects.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
type | array | Filter resources by type. May be used multiple times. The response will only contain the resources with the specified type. |
hcloud_list_datacenters
List Data Centers **Deprecated:** This endpoint is deprecated as of 01 June 2026 and will be removed after 01 October 2026. Returns all [Data Centers](#tag/data-centers).
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
hcloud_list_firewall_actions
List Actions for a Firewall Returns all [Actions](#tag/actions) for the [Firewall](#tag/firewalls). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Firewall. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_list_firewalls
List Firewalls Returns all [Firewalls](#tag/firewalls). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
hcloud_list_floating_ip_actions
List Actions for a Floating IP Lists [Actions](#tag/actions) for a [Floating IP](#tag/floating-ips). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Floating IP. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_list_floating_ips
List Floating IPs List multiple [Floating IPs](#tag/floating-ips). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
hcloud_list_image_actions
List Actions for an Image Returns all Action objects for an Image. You can sort the results by using the `sort` URI parameter, and filter them with the `status` parameter.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Image. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_list_images
List Images Returns all Image objects. You can select specific Image types only and sort the results by using URI parameters.
| Parameter | Type | Description |
|---|---|---|
architecture | string | Filter resources by cpu architecture. The response will only contain the resources with the specified cpu architecture. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
bound_to | array | Filter Images by their linked Server ID. May be used multiple times. Only available for Images of type `backup`. |
include_deprecated | boolean | Include deprecated Images. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter resources by status. May be used multiple times. The response will only contain the resources with the specified status. |
type | array | Filter resources by type. May be used multiple times. The response will only contain the resources with the specified type. |
hcloud_list_isos
List ISOs Returns all available ISO objects.
| Parameter | Type | Description |
|---|---|---|
architecture | string | Filter resources by cpu architecture. The response will only contain the resources with the specified cpu architecture. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
include_architecture_wildcard | boolean | Include Images with wildcard architecture (architecture is null). Architecture filter must be specified. |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
hcloud_list_load_balancer_actions
List Actions for a Load Balancer Returns all Action objects for a Load Balancer. You can sort the results by using the `sort` URI parameter, and filter them with the `status` parameter.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Load Balancer. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_list_load_balancer_types
List Load Balancer Types Gets all Load Balancer type objects.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
hcloud_list_load_balancers
List Load Balancers Gets all existing Load Balancers that you have available.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
hcloud_list_locations
List Locations Returns all [Locations](#tag/locations).
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
hcloud_list_network_actions
List Actions for a Network Lists [Actions](#tag/actions) for a [Network](#tag/networks). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Network. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_list_networks
List Networks List multiple [Networks](#tag/networks). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
hcloud_list_placement_groups
List Placement Groups Returns all Placement Group objects.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
type | array | Filter resources by type. May be used multiple times. The response will only contain the resources with the specified type. |
hcloud_list_primary_ip_actions
List Actions for a Primary IP Returns all [Actions](#tag/actions) for a [Primary IP](#tag/primary-ips). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Primary IP. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_list_primary_ips
List Primary IPs List multiple [Primary IPs](#tag/primary-ips). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
ip | string | Filter results by IP address. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
hcloud_list_server_actions
List Actions for a Server Returns all Action objects for a Server. You can `sort` the results by using the sort URI parameter, and filter them with the `status` parameter.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_list_server_types
List Server Types Gets all Server type objects.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
hcloud_list_servers
List Hetzner Cloud servers. Hand-tuned wrapper around GET /servers with an optional client-side name_contains filter and a default sort of 'name'. Use hcloud_list_servers_raw for the unfiltered, generator-built tool.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Hetzner label selector, forwarded as query parameter. |
name_contains | string | Case-insensitive substring filter applied after fetching. |
page | integer | |
per_page | integer | |
sort | string |
hcloud_list_servers_raw
List Servers Returns all existing Server objects.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter resources by status. May be used multiple times. The response will only contain the resources with the specified status. |
hcloud_list_ssh_keys
List SSH keys Returns all SSH key objects.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
fingerprint | string | May be used to filter SSH keys by their fingerprint. The response will only contain the SSH key matching the specified fingerprint. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
hcloud_list_volume_actions
List Actions for a Volume Returns all Action objects for a Volume. You can `sort` the results by using the sort URI parameter, and filter them with the `status` parameter.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Volume. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_list_volumes
List Volumes Gets all existing Volumes that you have available.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter resources by status. May be used multiple times. The response will only contain the resources with the specified status. |
hcloud_list_zone_actions
List Actions for a Zone Returns all [Actions](#tag/actions) for a [Zone](#tag/zones). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
id_or_name * | string | ID or Name of the Zone. |
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort actions by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
status | array | Filter the actions by status. May be used multiple times. The response will only contain actions matching the specified statuses. |
hcloud_list_zones
List Zones Returns all [Zones](#tag/zones). Use the provided URI parameters to modify the result.
| Parameter | Type | Description |
|---|---|---|
auto_paginate | boolean | Auto-merge all pages up to the soft-cap. Set false to use raw page/per_page. |
label_selector | string | Filter resources by labels. The response will only contain resources matching the label selector. For more information, see "[Label Selector](#description/label-selector)". |
mode | string | Filter resources by their mode. The response will only contain the resources matching exactly the specified mode. |
name | string | Filter resources by their name. The response will only contain the resources matching exactly the specified name. |
page | integer | Page number to return. For more information, see "[Pagination](#description/pagination)". |
per_page | integer | Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". |
sort | array | Sort resources by field and direction. May be used multiple times. For more information, see "[Sorting](#description/sorting)". |
hcloud_load_balancer_add_service_action
Add Service Adds a service to a Load Balancer. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `412` | `source_port_already_used` | The source port you are trying to add is already in use |
| Parameter | Type | Description |
|---|---|---|
body * | ||
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_add_target_action
Add Target Adds a target to a Load Balancer. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `ip_not_in_vswitch_subnet` | The IP you are trying to add does not belong to the vswitch subnet of the attached network | | `422` | `ip_not_owned` | The IP you are trying to add as a target is not owned by the Project owner | | `422` | `ip_not_assigned_to_server` | The specified IP is neither the Primary IPv4 address nor in the IPv6 subnet of the given Server | | `422` | `load_balancer_public_interface_disabled` | The Load Balancer's public network interf…
| Parameter | Type | Description |
|---|---|---|
body * | ||
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_attach_to_network_action
Attach a Load Balancer to a Network Attach a Load Balancer to a Network. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `load_balancer_already_attached` | The Load Balancer is already attached to a network | | `422` | `ip_not_available` | The provided Network IP is not available | | `422` | `no_subnet_available` | No Subnet or IP is available for the Load Balancer within the network |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_change_algorithm_action
Change Algorithm Change the algorithm that determines to which target new requests are sent.
| Parameter | Type | Description |
|---|---|---|
body * | object | Algorithm of the Load Balancer. |
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_change_dns_ptr_action
Change reverse DNS entry for this Load Balancer Changes the hostname that will appear when getting the hostname belonging to the public IPs (IPv4 and IPv6) of this Load Balancer. Floating IPs assigned to the Server are not affected by this.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_change_protection_action
Change Load Balancer Protection Changes the protection configuration of a Load Balancer.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_change_type_action
Change the Type of a Load Balancer Changes the type (Max Services, Max Targets and Max Connections) of a Load Balancer. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `invalid_load_balancer_type` | The Load Balancer type does not fit for the given Load Balancer |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_delete_service_action
Delete Service Delete a service of a Load Balancer.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_detach_from_network_action
Detach a Load Balancer from a Network Detaches a Load Balancer from a network.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_disable_public_interface_action
Disable the public interface of a Load Balancer Disable the public interface of a Load Balancer. The Load Balancer will be not accessible from the internet via its public IPs. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `load_balancer_not_attached_to_network` | The Load Balancer is not attached to a network | | `422` | `targets_without_use_private_ip` | The Load Balancer has targets that use the public IP instead of the private IP |
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_enable_public_interface_action
Enable the public interface of a Load Balancer Enable the public interface of a Load Balancer. The Load Balancer will be accessible from the internet via its public IPs.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_remove_target_action
Remove Target Removes a target from a Load Balancer.
| Parameter | Type | Description |
|---|---|---|
body * | object | Configuration of a Load Balancer target. |
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_load_balancer_update_service_action
Update Service Updates a Load Balancer Service. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `source_port_already_used` | The source port you are trying to add is already in use |
| Parameter | Type | Description |
|---|---|---|
body * | ||
id * | integer | ID of the Load Balancer. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_network_add_route_action
Add a route to a Network Adds a route entry to a [Network](#tag/networks). If a change is currently being performed on this [Network](#tag/networks), a error response with code `conflict` will be returned.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Network. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_network_add_subnet_action
Add a subnet to a Network Adds a new subnet to the [Network](#tag/networks). If the subnet `ip_range` is not provided, the first available `/24` IP range will be used. If a change is currently being performed on this [Network](#tag/networks), a error response with code `conflict` will be returned.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Network. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_network_change_ip_range_action
Change IP range of a Network Changes the IP range of a [Network](#tag/networks). The following restrictions apply to changing the IP range: - IP ranges can only be extended and never shrunk. - IPs can only be added to the end of the existing range, therefore only the netmask is allowed to be changed. To update the routes on the connected [Servers](#tag/servers), they need to be rebooted or the routes to be updated manually. For example if the [Network](#tag/networks) has a range of `10.0.0.0/16` to extend it the new range has to start with the IP `10.0.0.0` as well. The netmask `/16` can b…
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Network. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_network_change_protection_action
Change Network Protection Changes the protection settings of a [Network](#tag/networks). If a change is currently being performed on this [Network](#tag/networks), a error response with code `conflict` will be returned.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Network. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_network_delete_route_action
Delete a route from a Network Delete a route entry from a [Network](#tag/networks). If a change is currently being performed on this [Network](#tag/networks), a error response with code `conflict` will be returned.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Network. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_network_delete_subnet_action
Delete a subnet from a Network Deletes a single subnet entry from a [Network](#tag/networks). Subnets containing attached resources can not be deleted, they must be detached beforehand. If a change is currently being performed on this [Network](#tag/networks), a error response with code `conflict` will be returned.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Network. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_post_zone_rrsets
Create an RRSet Create an [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_primary_ip_assign_action
Assign a Primary IP to a resource Assign a [Primary IP](#tag/primary-ips) to a resource. A [Server](#tag/servers) can only have one [Primary IP](#tag/primary-ips) of type `ipv4` and one of type `ipv6` assigned. If you need more IPs use [Floating IPs](#tag/floating-ips). A [Server](#tag/servers) must be powered off (status `off`) in order for this operation to succeed. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `server_not_stopped` | The [Server](#tag/servers) is running, but needs to be powered off | | `422` | `primary_ip_already_assigned`…
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Primary IP. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_primary_ip_change_dns_ptr_action
Change reverse DNS records for a Primary IP Change the reverse DNS records for this [Primary IP](#tag/primary-ips). Allows to modify the PTR records set for the IP address.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Primary IP. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_primary_ip_change_protection_action
Change Primary IP Protection Changes the protection configuration of a [Primary IP](#tag/primary-ips). A [Primary IPs](#tag/primary-ips) deletion protection can only be enabled if its `auto_delete` property is set to `false`.
| Parameter | Type | Description |
|---|---|---|
body * | object | Protection configuration for the Resource. |
id * | integer | ID of the Primary IP. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_primary_ip_unassign_action
Unassign a Primary IP from a resource Unassign a [Primary IP](#tag/primary-ips) from a resource. A [Server](#tag/servers) must be powered off (status `off`) in order for this operation to succeed. A [Server](#tag/servers) requires at least one network interface (public or private) to be powered on. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `server_not_stopped` | The [Server](#tag/servers) is running, but needs to be powered off | | `422` | `server_is_load_balancer_target` | The [Server](#tag/servers) IPv4 address is a loadbalancer target…
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Primary IP. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_raw_request
Escape hatch: issue an arbitrary request against the Hetzner Cloud API. The configured API token is sent and the client retries a 429, and a 5xx on methods other than POST, like every other tool. Pagination and action polling are not applied, and an HTTP error comes back as { status, body } instead of an error result. Use only when no dedicated tool fits.
| Parameter | Type | Description |
|---|---|---|
method * | string | |
path * | string | Path beginning with '/', e.g. '/servers/42/actions/poweron'. |
body | object | array | string | number | boolean | null | Request body, JSON-serialised when sent. |
confirm | string | Required when HETZNER_CONFIRM_WRITES=true and method is not GET. Set to "YES" to actually execute; without it the tool returns a preview only. Ignored for GET and when confirm mode is disabled. |
query | object |
hcloud_server_add_to_placement_group_action
Add a Server to a Placement Group Adds a Server to a Placement Group. Server must be powered off for this command to succeed. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `server_not_stopped` | The action requires a stopped server | | `422` | `already_in_placement_group` | The server is already part of a placement group |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_attach_iso_action
Attach an ISO to a Server Attaches an ISO to a Server. The Server will immediately see it as a new disk. An already attached ISO will automatically be detached before the new ISO is attached. Servers with attached ISOs have a modified boot order: They will try to boot from the ISO first before falling back to hard disk.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_attach_to_network_action
Attach a Server to a Network Attaches a Server to a network. This will complement the fixed public Server interface by adding an additional ethernet interface to the Server which is connected to the specified network. The Server will get an IP auto assigned from a subnet of type `server` in the same `network_zone`. Using the `alias_ips` attribute you can also define one or more additional IPs to the Servers. Please note that you will have to configure these IPs by hand on your Server since only the primary IP will be given out by DHCP. #### Operation specific errors | Status | Code | Desc…
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_backup
Toggle Hetzner-managed automatic backups on a server. Hand-tuned wrapper around enable_backup / disable_backup actions.
| Parameter | Type | Description |
|---|---|---|
enable * | boolean | true to turn backups on, false to turn them off. |
id * | integer | |
wait | boolean |
hcloud_server_change_alias_ips_action
Change alias IPs of a Network Changes the alias IPs of an already attached Network. Note that the existing aliases for the specified Network will be replaced with these provided in the request body. So if you want to add an alias IP, you have to provide the existing ones from the Network plus the new alias IP in the request body.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_change_dns_ptr_action
Change reverse DNS entry for this Server Changes the hostname that will appear when getting the hostname belonging to the primary IPs (IPv4 and IPv6) of this Server. Floating IPs assigned to the Server are not affected by this.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_change_protection_action
Change Server Protection Changes the protection configuration of the Server.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_change_type
Change a server's hardware type. Defaults upgrade_disk to false (disk size kept; safer to downgrade later). Hand-tuned wrapper; polls the resulting action by default.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
server_type * | string | |
upgrade_disk | boolean | |
wait | boolean |
hcloud_server_change_type_action
Change the Type of a Server Changes the type (Cores, RAM and disk sizes) of a Server. Server must be powered off for this command to succeed. This copies the content of its disk, and starts it again. You can only migrate to Server types with the same `storage_type` and equal or bigger disks. Shrinking disks is not possible as it might destroy data. If the disk gets upgraded, the Server type can not be downgraded any more. If you plan to downgrade the Server type, set `upgrade_disk` to `false`. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `…
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_create_image_action
Create Image from a Server Creates an Image (snapshot) from a Server by copying the contents of its disks. This creates a snapshot of the current state of the disk and copies it into an Image. If the Server is currently running you must make sure that its disk content is consistent. Otherwise, the created Image may not be readable. To make sure disk content is consistent, we recommend to shut down the Server prior to creating an Image. You can either create a `backup` Image that is bound to the Server and therefore will be deleted when the Server is deleted, or you can create a `snapshot` I…
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_detach_from_network_action
Detach a Server from a Network Detaches a Server from a network. The interface for this network will vanish.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_detach_iso_action
Detach an ISO from a Server Detaches an ISO from a Server. In case no ISO Image is attached to the Server, the status of the returned Action is immediately set to `success`.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_disable_backup_action
Disable Backups for a Server Disables the automatic backup option and deletes all existing Backups for a Server. No more additional charges for backups will be made. Caution: This immediately removes all existing backups for the Server!
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_disable_rescue_action
Disable Rescue Mode for a Server Disables the Hetzner Rescue System for a Server. This makes a Server start from its disks on next reboot. Rescue Mode is automatically disabled when you first boot into it or if you do not use it for 60 minutes. Disabling rescue mode will not reboot your Server - you will have to do this yourself.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_enable_backup_action
Enable and Configure Backups for a Server Enables and configures the automatic daily backup option for the Server. Enabling automatic backups will increase the price of the Server by 20%. In return, you will get seven slots where Images of type backup can be stored. Backups are automatically created daily.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_enable_rescue_action
Enable Rescue Mode for a Server Enable the Hetzner Rescue System for this Server. The next time a Server with enabled rescue mode boots it will start a special minimal Linux distribution designed for repair and reinstall. In case a Server cannot boot on its own you can use this to access a Server’s disks. Rescue Mode is automatically disabled when you first boot into it or if you do not use it for 60 minutes. Enabling rescue mode will not [reboot](https://docs.hetzner.cloud/#server-actions-soft-reboot-a-server) your Server - you will have to do this yourself.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_power
Run a power operation on a server (poweron / poweroff / reboot / shutdown / reset). Hand-tuned wrapper that polls the resulting action by default.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
op * | string | |
wait | boolean |
hcloud_server_poweroff_action
Power off a Server Cuts power to the Server. This forcefully stops it without giving the Server operating system time to gracefully stop. May lead to data loss, equivalent to pulling the power cord. Power off should only be used when shutdown does not work.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_poweron_action
Power on a Server Starts a Server by turning its power on.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_reboot_action
Soft-reboot a Server Reboots a Server gracefully by sending an ACPI request. The Server operating system must support ACPI and react to the request, otherwise the Server will not reboot.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_rebuild
Rebuild a server from an image. Accept image_id (integer) OR image_name (string). Hand-tuned wrapper; polls the resulting action by default.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
image_id | integer | |
image_name | string | |
wait | boolean |
hcloud_server_rebuild_action
Rebuild a Server from an Image Rebuilds a Server overwriting its disk with the content of an Image, thereby **destroying all data** on the target Server The Image can either be one you have created earlier (`backup` or `snapshot` Image) or it can be a completely fresh `system` Image provided by us. You can get a list of all available Images with `GET /images`. Your Server will automatically be powered off before the rebuild command executes.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_remove_from_placement_group_action
Remove from Placement Group Removes a Server from a Placement Group.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_request_console_action
Request Console for a Server Requests credentials for remote access via VNC over websocket to keyboard, monitor, and mouse for a Server. The provided URL is valid for 1 minute, after this period a new url needs to be created to connect to the Server. How long the connection is open after the initial connect is not subject to this timeout.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_rescue
Toggle Hetzner rescue mode on a server. When enabling, defaults type to 'linux64' and accepts ssh_keys (array of SSH-key ids). Hand-tuned wrapper.
| Parameter | Type | Description |
|---|---|---|
enable * | boolean | true to enter rescue, false to leave. |
id * | integer | |
ssh_keys | array | |
type | string | |
wait | boolean |
hcloud_server_reset_action
Reset a Server Cuts power to a Server and starts it again. This forcefully stops it without giving the Server operating system time to gracefully stop. This may lead to data loss, it’s equivalent to pulling the power cord and plugging it in again. Reset should only be used when reboot does not work.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_reset_password_action
Reset root Password of a Server Resets the root password. Only works for Linux systems that are running the qemu guest agent. Server must be powered on (status `running`) in order for this operation to succeed. This will generate a new password for this Server and return it. If this does not succeed you can use the rescue system to netboot the Server and manually change your Server password by hand.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_shutdown_action
Shutdown a Server Shuts down a Server gracefully by sending an ACPI shutdown request. The Server operating system must support ACPI and react to the request, otherwise the Server will not shut down. Please note that the `action` status in this case only reflects whether the action was sent to the server. It does not mean that the server actually shut down successfully. If you need to ensure that the server is off, use the `poweroff` action.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Server. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_server_snapshot
Create an image (snapshot or backup) of a server. Default type is 'snapshot'. Hand-tuned wrapper that polls the resulting action.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
description | string | |
labels | object | |
type | string | |
wait | boolean |
hcloud_update_certificate
Update a Certificate Updates the Certificate properties. Note: if the Certificate object changes during the request, the response will be a “conflict” error.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Certificate. |
hcloud_update_firewall
Update a Firewall Update a [Firewall](#tag/firewalls). In case of a parallel running change on the [Firewall](#tag/firewalls) a `conflict` error will be returned.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Firewall. |
hcloud_update_floating_ip
Update a Floating IP Update a [Floating IP](#tag/floating-ips).
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Floating IP. |
hcloud_update_image
Update an Image Updates the Image. You may change the description, convert a Backup Image to a Snapshot Image or change the Image labels. Only Images of type `snapshot` and `backup` can be updated.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Image. |
hcloud_update_load_balancer
Update a Load Balancer Updates a Load Balancer. You can update a Load Balancer’s name and a Load Balancer’s labels. Note: if the Load Balancer object changes during the request, the response will be a “conflict” error.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Load Balancer. |
hcloud_update_network
Update a Network Update a [Network](#tag/networks). If a change is currently being performed on this [Network](#tag/networks), a error response with code `conflict` will be returned.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Network. |
hcloud_update_placement_group
Update a PlacementGroup Updates the Placement Group properties. Note: if the Placement Group object changes during the request, the response will be a “conflict” error.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Placement Group. |
hcloud_update_primary_ip
Update a Primary IP Update a [Primary IP](#tag/primary-ips). If another change is concurrently performed on this [Primary IP](#tag/primary-ips), a error response with code `conflict` will be returned.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Primary IP. |
hcloud_update_server
Update a Server Updates a Server. You can update a Server’s name and a Server’s labels. Please note that Server names must be unique per Project and valid hostnames as per RFC 1123 (i.e. may only contain letters, digits, periods, and dashes).
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Server. |
hcloud_update_ssh_key
Update an SSH key Updates an SSH key. You can update an SSH key name and an SSH key labels.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the SSH Key. |
hcloud_update_volume
Update a Volume Updates the Volume properties.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Volume. |
hcloud_update_zone
Update a Zone Updates a [Zone](#tag/zones). To modify resource record sets ([RRSets](#tag/zone-rrsets)), use the [RRSet Actions endpoints](#tag/zone-rrset-actions).
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
hcloud_update_zone_rrset
Update an RRSet Updates an [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
rr_name * | string | Name of the [RRSet](#tag/zone-rrsets). The name must be in lower case, and must not end with a dot or the [Zone](#tag/zones) name. Names containing non-ASCII characters must be transcribed to [Punyco… |
rr_type * | string | Type of the [RRSet](#tag/zone-rrsets). |
hcloud_volume_attach_action
Attach Volume to a Server Attaches a Volume to a Server. Works only if the Server is in the same Location as the Volume.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Volume. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_volume_change_protection_action
Change Volume Protection Changes the protection configuration of a Volume.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Volume. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_volume_detach_action
Detach Volume Detaches a Volume from the Server it’s attached to. You may attach it to a Server again at a later time.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the Volume. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_volume_resize_action
Resize Volume Changes the size of a Volume. Note that downsizing a Volume is not possible.
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id * | integer | ID of the Volume. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_wait_action
Poll an existing Hetzner Cloud action until it reaches terminal status (success/error) or the timeout elapses. Returns the final action plus a polling_timed_out flag.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
interval_ms | integer | Override the default poll interval for this call. |
timeout_ms | integer | Override the default poll timeout for this call. |
hcloud_zone_change_primary_nameservers_action
Change a Zone's Primary Nameservers Overwrites the primary nameservers of a [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in secondary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_zone_change_protection_action
Change a Zone's Protection Changes the protection configuration of a [Zone](#tag/zones).
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_zone_change_ttl_action
Change a Zone's Default TTL Changes the default Time To Live (TTL) of a [Zone](#tag/zones). This TTL is used for [RRSets](#tag/zone-rrsets) that do not explicitly define a TTL. Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_zone_import_zonefile_action
Import a Zone file Imports a zone file, replacing all resource record sets ([RRSets](#tag/zone-rrsets)). The import will fail if existing [RRSet](#tag/zone-rrsets) are `change` protected. See [Zone file import](#tag/zones/zone-file-import) for more details. Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_zone_rrset_add_records_action
Add Records to an RRSet Adds resource records (RRs) to an [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). For convenience, the [RRSet](#tag/zone-rrsets) will be automatically created if it doesn't exist. Otherwise, the new records are appended to the existing [RRSet](#tag/zone-rrsets). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
rr_name * | string | Name of the [RRSet](#tag/zone-rrsets). The name must be in lower case, and must not end with a dot or the [Zone](#tag/zones) name. Names containing non-ASCII characters must be transcribed to [Punyco… |
rr_type * | string | Type of the [RRSet](#tag/zone-rrsets). |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_zone_rrset_change_protection_action
Change an RRSet's Protection Changes the protection of an [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
body * | object | Protection of the [RRSet](#tag/zone-rrsets). |
id_or_name * | string | ID or Name of the Zone. |
rr_name * | string | Name of the [RRSet](#tag/zone-rrsets). The name must be in lower case, and must not end with a dot or the [Zone](#tag/zones) name. Names containing non-ASCII characters must be transcribed to [Punyco… |
rr_type * | string | Type of the [RRSet](#tag/zone-rrsets). |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_zone_rrset_change_ttl_action
Change an RRSet's TTL Changes the Time To Live (TTL) of an [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
rr_name * | string | Name of the [RRSet](#tag/zone-rrsets). The name must be in lower case, and must not end with a dot or the [Zone](#tag/zones) name. Names containing non-ASCII characters must be transcribed to [Punyco… |
rr_type * | string | Type of the [RRSet](#tag/zone-rrsets). |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_zone_rrset_remove_records_action
Remove Records from an RRSet Removes resource records (RRs) from an existing [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). For convenience, the [RRSet](#tag/zone-rrsets) will be automatically deleted if it doesn't contain any RRs afterwards. Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
rr_name * | string | Name of the [RRSet](#tag/zone-rrsets). The name must be in lower case, and must not end with a dot or the [Zone](#tag/zones) name. Names containing non-ASCII characters must be transcribed to [Punyco… |
rr_type * | string | Type of the [RRSet](#tag/zone-rrsets). |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_zone_rrset_set_records_action
Set Records of an RRSet Overwrites the resource records (RRs) of an existing [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
rr_name * | string | Name of the [RRSet](#tag/zone-rrsets). The name must be in lower case, and must not end with a dot or the [Zone](#tag/zones) name. Names containing non-ASCII characters must be transcribed to [Punyco… |
rr_type * | string | Type of the [RRSet](#tag/zone-rrsets). |
wait | boolean | Poll the resulting action until success/error or timeout. |
hcloud_zone_rrset_update_records_action
Update Records of an RRSet Updates resource records' (RRs) comments of an existing [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | `422` | `incorrect_zone_mode` | This operation is not supported for this Zone's `mode`. |
| Parameter | Type | Description |
|---|---|---|
body * | object | |
id_or_name * | string | ID or Name of the Zone. |
rr_name * | string | Name of the [RRSet](#tag/zone-rrsets). The name must be in lower case, and must not end with a dot or the [Zone](#tag/zones) name. Names containing non-ASCII characters must be transcribed to [Punyco… |
rr_type * | string | Type of the [RRSet](#tag/zone-rrsets). |
wait | boolean | Poll the resulting action until success/error or timeout. |