feat(primary-ip): assignee_type behavior changed when creating a primary ip#647
Merged
lukasmetzner merged 1 commit intomainfrom Apr 28, 2026
Merged
feat(primary-ip): assignee_type behavior changed when creating a primary ip#647lukasmetzner merged 1 commit intomainfrom
assignee_type behavior changed when creating a primary ip#647lukasmetzner merged 1 commit intomainfrom
Conversation
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #647 +/- ##
=======================================
Coverage 96.76% 96.76%
=======================================
Files 76 76
Lines 4046 4050 +4
=======================================
+ Hits 3915 3919 +4
Misses 131 131 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
assignee_type is optional when creating a primary ipassignee_type behavior changed when creating a primary ip
jooola
approved these changes
Apr 28, 2026
lukasmetzner
pushed a commit
that referenced
this pull request
Apr 28, 2026
### 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](https://docs.hetzner.cloud/changelog#2026-04-27-primary-ips-will-return-unassigned) for more details. In addition, the Primary IP request body `assignee_type` property of the operation [`POST /v1/primary_ips`](https://docs.hetzner.cloud/reference/cloud#tag/primary-ips/create_primary_ip) 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](https://docs.hetzner.cloud/changelog#2026-04-27-primary-ips-make-assignee_type-optional) for more details. ### Features - **primary-ip**: `assignee_type` behavior changed when creating a primary ip (#647)
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
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.
In the create Primary IP call, the
assignee_typeargument is now only send when theassignee_idargument is set. Theassignee_typeargument will stop defaulting to 'server' in the near future, consider explicitly setting this argument when needed.Primary IPs
assignee_typebehavior changeAs of 1 August 2026, the behavior of the Primary IP
assignee_typeproperty will change, and will returnunassignedwhen the Primary IP is not assigned (whenassignee_idisnull). The goal is to eventually assign Primary IPs to other resource types, not only toserver.See the changelog for more details.
In addition, the Primary IP request body
assignee_typeproperty of the operationPOST /v1/primary_ipsis now optional. Primary IPs created withoutassignee_typereturnserveruntil 1 August 2026, after this date, its value will beunassigned.See the changelog for more details.