-
Notifications
You must be signed in to change notification settings - Fork 92
feat(server,primary-ip): deprecate datacenter #1278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1278 +/- ##
==========================================
- Coverage 72.67% 72.50% -0.18%
==========================================
Files 302 302
Lines 10954 10995 +41
==========================================
+ Hits 7961 7972 +11
- Misses 2125 2150 +25
- Partials 868 873 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
apricote
requested changes
Dec 22, 2025
f0fd735 to
be26110
Compare
jooola
reviewed
Jan 5, 2026
jooola
reviewed
Jan 5, 2026
jooola
approved these changes
Jan 5, 2026
772b152 to
868e633
Compare
apricote
approved these changes
Jan 5, 2026
jooola
pushed a commit
that referenced
this pull request
Jan 5, 2026
<!-- section-start changelog --> ### Deprecation of `datacenter` attribute for Primary IPs and Servers The `datacenter` attribute is deprecated in the `Primary IPs` and `Servers` API resources and will be removed after 1 July 2026. See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters for more details. The `location` attribute already exists for Servers, and was added for Primary IPs. Therefor the `datacenter` attribute is deprecated in favor of the `location` attribute in the following commands: - `hcloud server create` - `hcloud server describe` - `hcloud server list` - `hcloud primary-ip create` - `hcloud primary-ip describe` - `hcloud primary-ip list` In list commands, the `datacenter` columns is not longer shown by default, and is replaced with the `location` column. ### Features - **server,primary-ip**: deprecate datacenter (#1278) <!-- 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 ### Deprecation of `datacenter` attribute for Primary IPs and Servers The `datacenter` attribute is deprecated in the `Primary IPs` and `Servers` API resources and will be removed after 1 July 2026. See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters for more details. The `location` attribute already exists for Servers, and was added for Primary IPs. Therefor the `datacenter` attribute is deprecated in favor of the `location` attribute in the following commands: - `hcloud server create` - `hcloud server describe` - `hcloud server list` - `hcloud primary-ip create` - `hcloud primary-ip describe` - `hcloud primary-ip list` In list commands, the `datacenter` columns is not longer shown by default, and is replaced with the `location` column. ~~~~ ### Suffix / End This will be added to the end of the release notes. ~~~~rp-suffix ~~~~ </details> Co-authored-by: Hetzner Cloud Bot <>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
datacenterattribute is deprecated in thePrimary IPsandServersAPI resources and will be removed after 1 July 2026. See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters for more details.The
locationattribute already exists for Servers, and was added for Primary IPs.Therefor the
datacenterattribute is deprecated in favor of thelocationattribute in the following commands:hcloud server createhcloud server describehcloud server listhcloud primary-ip createhcloud primary-ip describehcloud primary-ip listIn list commands, the
datacentercolumns is not longer shown by default, and is replaced with thelocationcolumn.