Skip to content

feat: deprecate datacenters#867

Open
jooola wants to merge 1 commit into
mainfrom
datacenters-deprecated
Open

feat: deprecate datacenters#867
jooola wants to merge 1 commit 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.40%. Comparing base (692e551) to head (47f9127).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #867   +/-   ##
=======================================
  Coverage   78.40%   78.40%           
=======================================
  Files          59       59           
  Lines        4366     4366           
=======================================
  Hits         3423     3423           
  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.

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

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