freebox_dhcp_lease (Data Source)

Get a DHCP static lease by MAC address.

Example

data "freebox_dhcp_lease" "example" {
  mac = "00:11:22:33:44:55"
}

output "ip" {
  value = data.freebox_dhcp_lease.example.ip
}

Schema

Required

  • mac (String) MAC address of the target device

Read-Only

  • comment (String) Comment of the DHCP lease
  • hostname (String) Hostname of the target device
  • id (String) Unique identifier of the DHCP lease
  • ip (String) IP address to assign to the target device