Create Primary IP
hetzner_create_primary_ipCreate a new primary IP (IPv4 or IPv6) in a chosen location, optionally assign it to a server, and set auto-deletion to manage lifecycle.
Instructions
Create a new primary IP with the specified type, optional location, and optional assignee type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the primary IP | |
| type | Yes | IP type | |
| labels | No | Labels as key-value pairs | |
| location | No | Location name (e.g. "fsn1", "nbg1", "hel1") | |
| assignee_id | No | Server ID to assign the primary IP to (create-and-assign in one call) | |
| auto_delete | No | Delete the primary IP when the assignee is deleted | |
| assignee_type | No | Assignee type. Optional since 2026-04-27; defaults to "server" until 2026-08-01, then to "unassigned". |