Create Primary IP
hetzner_create_primary_ipCreate a new primary IP address, specifying type (IPv4 or IPv6), name, and optional assignee, datacenter, auto-delete, and labels.
Instructions
Create a new primary IP with the specified type and optional assignee type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | IP type | |
| assignee_type | No | Assignee type. Optional since 2026-04-27; defaults to "server" until 2026-08-01, then to "unassigned". | |
| name | Yes | Name of the primary IP | |
| datacenter | No | Datacenter name (e.g. "fsn1-dc14") | |
| auto_delete | No | Delete the primary IP when the assignee is deleted | |
| labels | No | Labels as key-value pairs |