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 leasehostname(String) Hostname of the target deviceid(String) Unique identifier of the DHCP leaseip(String) IP address to assign to the target device