FloatingIp
Source:
src/Hetzner/FloatingIp.ts
An unassigned Hetzner Cloud Floating IP. Provide type and a
homeLocation; Alchemy generates a unique name unless you set name.
Assignment to a Server is a separate FloatingIpAssignment resource.
type and homeLocation are immutable — changing either replaces the
Floating IP (new address). name, description, labels, and
deleteProtection update in place.
Creating a Floating IP
Section titled “Creating a Floating IP”Unassigned IPv4 in nbg1
const ip = yield* Hetzner.FloatingIp("public-ip", { type: "ipv4", homeLocation: "nbg1",});IPv6 with description and labels
const ip = yield* Hetzner.FloatingIp("v6", { type: "ipv6", homeLocation: "nbg1", description: "edge anycast", labels: { role: "edge" },});Updating a Floating IP
Section titled “Updating a Floating IP”const ip = yield* Hetzner.FloatingIp("public-ip", { type: "ipv4", homeLocation: "nbg1", name: "public-ip-prod", description: "production frontend", labels: { env: "prod" },});