Skip to content

Releases: hetznercloud/hcloud-go

v2.39.0

28 Apr 11:49
c2ce46a

Choose a tag to compare

Primary IPs assignee_type behavior change

As of 1 August 2026, the behavior of the Primary IP assignee_type property will change, and will return unassigned when the Primary IP is not assigned (when assignee_id is null). The goal is to eventually assign Primary IPs to other resource types, not only to server.

See the changelog for more details.

In addition, the Primary IP request body assignee_type property of the operation POST /v1/primary_ips is now optional. Primary IPs created without assignee_type return server until 1 August 2026, after this date, its value will be unassigned.

See the changelog for more details.

Features

  • primary-ip: assignee_type is optional when creating a primary ip (#840)

v2.38.0

23 Apr 09:18
eafab24

Choose a tag to compare

Available and recommended Server Types have been moved

Datacenter.ServerTypes has been deprecated in favor of the new ServerType.Locations[].Available and ServerType.Locations[].Recommended fields.

See the changelog for more details.

Features

  • datacenter, server_type: move available and recommended to server_type (#835)

v2.37.0

26 Mar 19:24
b708fe4

Choose a tag to compare

Features

  • exp: transform hcloud.Error to slog.Value using errutil.LogValue (#826)
  • drop support for go1.24 (#829)
  • add support for go1.26 (#829)

v2.36.0

22 Jan 15:42
219a5d1

Choose a tag to compare

Storage Boxes support is now generally available

The experimental phase for Storage Boxes is over, and Storage Boxes support is now generally available.

Features

  • Storage Box support no longer experimental (#811)
  • server: allow specifying user-data for rebuild (#813)

v2.35.0

16 Jan 10:19
8a968c5

Choose a tag to compare

StorageBoxClient.GetSubaccount no longer gets a subaccount by username

StorageBoxClient.GetSubaccount no longer tries to get a subaccount by username, instead it tries to get it by name.

To get a subaccount by username please use StorageBoxClient.GetSubaccountByUsername.

See the changelog for more details.

Features

  • add name to Storage Box Subaccount (#806)

Bug Fixes

  • do not ignore action error when the error message is empty (#801)

v2.34.0

08 Jan 13:36
edaa297

Choose a tag to compare

ResourceActionClient now has a generic type parameter

The ResourceActionClient struct now has a generic type parameter. The type parameter is used to describe the API resource of the Actions client.

The IResourceActionClient interface that is generated from the ResourceActionClient struct, is also affected by this change.

This API was never intended to be used directly and we did not find any usage of it in public code. So while potentially breaking, the benefits of this change out weighted the risks of doing it.

Features

  • retry request on API timeout error (#797)
  • list actions for a given resource (#791)

v2.33.0

19 Dec 15:36
6684746

Choose a tag to compare

Phasing out datacenters in Primary IPs and Servers

We added a new location property to the request body and response of Servers and Primary IPs. The same data was previously present under datacenter.location.

We deprecated the datacenter property in the request body and response of Servers and Primary IPs. The removal will happen after 1 July 2026.

See our changelog for more details.

Features

  • add update rrset records action to zone client (#773)
  • deprecate datacenter in primary ips and servers (#793)
  • default to max per page value in AllWithOpts (#794)

v2.32.0

25 Nov 14:00
91b5dd3

Choose a tag to compare

Features

  • error helper to remove correlation ID (#775)

v2.31.0

18 Nov 11:15
60d5032

Choose a tag to compare

Features

  • add running actions ids to done context error (#765)

Bug Fixes

  • exp: support text/plain content type with mockutil (#771)

v2.30.0

10 Nov 10:50
19defdf

Choose a tag to compare

DNS API is now generally available

The DNS API is now generally available, as well as support for features in this project that are related to the DNS API.

To migrate existing zones to the new DNS API, see the DNS migration guide.

See the changelog for more details.

Features

  • DNS support is now generally available (#763)