» Data Source: hcloud_floating_ip

Provides details about a Hetzner Cloud Floating IP.

This resource can be useful when you need to determine a Floating IP ID based on the IP address.

» Example Usage

» Data Source: hcloud_floating_ip

Provides details about a Hetzner Cloud Floating IP. This resource can be useful when you need to determine a Floating IP ID based on the IP address.

» Example Usage

data "hcloud_floating_ip" "ip_1" {
  ip_address = "1.2.3.4"
}
data "hcloud_floating_ip" "image_2" {
  with_selector = "key=value"
}
resource "hcloud_floating_ip_assignment" "main" {
  count          = "${var.counter}"
  floating_ip_id = "${data.hcloud_floating_ip.ip_1.id}"
  server_id      = "${hcloud_server.main.id}"
}

» Argument Reference

» Attributes Reference

  • id - (int) Unique ID of the Floating IP.
  • ip_address - (string) IP address of the Floating IP.