Skip to content

Releases: hetznercloud/hcloud-python

v2.25.1

Choose a tag to compare

@hcloud-bot hcloud-bot released this 17 Sep 07:46
61d7bcc

Bug Fixes

  • only send load balancer service health_check properties when defined (#691) (e3bf6f2)

v2.25.0

Choose a tag to compare

@hcloud-bot hcloud-bot released this 17 Sep 07:23
f7b8a31

Features

Bug Fixes

  • only send load balancer service certificates when defined (#690) (c6bc24a)

v2.24.0

Choose a tag to compare

@hcloud-bot hcloud-bot released this 11 Sep 11:14
ca4efb8

Features

v2.23.0

Choose a tag to compare

@hcloud-bot hcloud-bot released this 21 Jul 12:30
48f3424

Removed deprecated Datacenter property from Server and PrimaryIP

Removed the deprecated Datacenter property from the Server and PrimaryIP resources. Since the property was already removed from the Hetzner Cloud API, we do not consider this a breaking change (see changelog entry).

Important

Action required: Please update all code that accesses server.datacenter or primary_ip.datacenter to use the location property instead, as shown below.

Before:

server = client.server.get_by_id(5)
print(server.datacenter)

primary_ip = client.primary_ip.get_by_id(5)
print(primary_ip.datacenter)

After:

server = client.server.get_by_id(5)
print(server.location)

primary_ip = client.primary_ip.get_by_id(5)
print(primary_ip.location)

Features

  • remove datacenter property from server and primary_ip (#668) (abdadf3)
  • add deprecation info to load balancer type (#674) (aeebcf8)

v2.22.0

Choose a tag to compare

@hcloud-bot hcloud-bot released this 18 Jun 15:33
6fdc2d7

Datacenters resource is now deprecated

The endpoints GET /v1/datacenters and GET /v1/datacenters/{id} are now deprecated and will be removed after 1 Oct. 2026. After this date, requests to these endpoints will return HTTP 410 Gone.

The DatacentersClient, Datacenter and related classes are now deprecated.

See the changelog for more details.

Features

  • deprecate datacenters (#656)

v2.21.0

Choose a tag to compare

@hcloud-bot hcloud-bot released this 12 Jun 12:38
32ea380

Features

  • retry requests on api bad_gateway error (#658)

v2.20.0

Choose a tag to compare

@hcloud-bot hcloud-bot released this 07 May 14:27
0bbc9dd

Load Balancer HTTP Services now support timeout_idle

HTTP Services now support the field timeout_idle, which controls the time a HTTP connection is allowed to idle before it is being dropped.

See the changelog for more information.

Features

  • load-balancer: support timeout_idle http service field (#649)

v2.19.0

Choose a tag to compare

@hcloud-bot hcloud-bot released this 28 Apr 12:01
5dd14c4

Primary IPs assignee_type behavior change

In the create Primary IP call, the assignee_type argument is now only send when the assignee_id argument is set. The assignee_type argument will stop defaulting to server in the near future, consider explicitly setting this argument when needed.

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 behavior changed when creating a primary ip (#647)

v2.18.0

Choose a tag to compare

@hcloud-bot hcloud-bot released this 23 Apr 10:02
b309d97

Available and recommended Server Types have been moved

Datacenter.server_types has been deprecated in favor of the new ServerType.locations[].available and ServerType.locations[].recommended properties.

See the changelog for more details.

Features

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

v2.17.1

Choose a tag to compare

@hcloud-bot hcloud-bot released this 23 Mar 10:50
335d766

Bug Fixes

  • missing __api_properties__ on LoadBalancerService (#639)