Releases: hetznercloud/hcloud-go
v2.39.0
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_typeis optional when creating a primary ip (#840)
v2.38.0
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
v2.36.0
v2.35.0
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
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
v2.33.0
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
v2.32.0
v2.31.0
v2.30.0
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)