Skip to content

feat(primary-ip): assignee_type behavior changed when creating a primary ip#647

Merged
lukasmetzner merged 1 commit intomainfrom
optional-assignee-type
Apr 28, 2026
Merged

feat(primary-ip): assignee_type behavior changed when creating a primary ip#647
lukasmetzner merged 1 commit intomainfrom
optional-assignee-type

Conversation

@lukasmetzner
Copy link
Copy Markdown
Contributor

@lukasmetzner lukasmetzner commented Apr 28, 2026

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.

Primary IPs assignee_type behavior change

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.

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
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

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

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.
📢 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 changed the title feat(primary-ip): assignee_type is optional when creating a primary ip feat(primary-ip): assignee_type behavior changed when creating a primary ip Apr 28, 2026
@lukasmetzner lukasmetzner merged commit 09b3dcd into main Apr 28, 2026
14 checks passed
@lukasmetzner lukasmetzner deleted the optional-assignee-type branch April 28, 2026 11:51
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)
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