Skip to content

feat: deprecate datacenters resource#867

Merged
jooola merged 2 commits into
mainfrom
datacenters-deprecated
Jun 18, 2026
Merged

feat: deprecate datacenters resource#867
jooola merged 2 commits into
mainfrom
datacenters-deprecated

Conversation

@jooola

@jooola jooola commented Jun 4, 2026

Copy link
Copy Markdown
Member

The API 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.

See https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated.

@jooola jooola requested a review from a team as a code owner June 4, 2026 08:15
@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.41%. Comparing base (c08c265) to head (3a1b991).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #867   +/-   ##
=======================================
  Coverage   78.41%   78.41%           
=======================================
  Files          59       59           
  Lines        4368     4368           
=======================================
  Hits         3425     3425           
  Misses        640      640           
  Partials      303      303           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jooola jooola force-pushed the datacenters-deprecated branch from 9782736 to 47f9127 Compare June 4, 2026 08:32

@apricote apricote left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also want to deprecate the Datacenter field in the hcloud.Client struct?

@jooola

jooola commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

Do we also want to deprecate the Datacenter field in the hcloud.Client struct?

Yes indeed.

jooola added 2 commits June 18, 2026 10:30
The API 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`.

See https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated.
@jooola jooola force-pushed the datacenters-deprecated branch from 47f9127 to 3a1b991 Compare June 18, 2026 08:32
@jooola jooola changed the title feat: deprecate datacenters feat: deprecate datacenters resource Jun 18, 2026
@jooola jooola merged commit 00c25bf into main Jun 18, 2026
5 checks passed
@jooola jooola deleted the datacenters-deprecated branch June 18, 2026 08:34
jooola pushed a commit that referenced this pull request Jun 18, 2026
<!-- section-start changelog -->
### 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
[DatacenterClient](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#DatacenterClient),
[Datacenter](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#Datacenter)
and related structs are now deprecated.

See the
[changelog](https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated)
for more details.

### Features

- deprecate datacenters resource (#867)

<!-- section-end changelog -->

---

<details>
<summary><h4>PR by <a
href="https://github.com/apricote/releaser-pleaser">releaser-pleaser</a>
🤖</h4></summary>

If you want to modify the proposed release, add you overrides here. You
can learn more about the options in the docs.

## Release Notes

### Prefix / Start

This will be added to the start of the release notes.

~~~~rp-prefix
### 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
[DatacenterClient](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#DatacenterClient),
[Datacenter](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#Datacenter)
and related structs are now deprecated.

See the
[changelog](https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated)
for more details.
~~~~

### Suffix / End

This will be added to the end of the release notes.

~~~~rp-suffix
~~~~

</details>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants