freebox_network_control (Data Source)

Get the network control (parental control / scheduled access) settings of a Freebox profile.

Example

data "freebox_profiles" "all" {}

data "freebox_network_control" "example" {
  profile_id = data.freebox_profiles.all.profiles[0].id
}

output "current_mode" {
  value = data.freebox_network_control.example.current_mode
}

Schema

Required

  • profile_id (Number) Id of the profile this network control is associated with.

Read-Only

  • current_mode (String) Mode in use. If override is true, it will be override_mode, otherwise it’s the mode from the rules attached to this NetworkControl.
  • custom_day_ranges (List of String) List of custom day range, each custom day range represents a group of days for which you want to use a different planning than other week days.
  • hosts (List of Object) List of Lan Host objects associated with this profile’s network control. Derived from the macs array. (see below for nested schema)
  • macs (List of String) List of mac adresses associated with this profile’s network control.
  • next_change (String) UNIX timestamp of next rule change in seconds.
  • override (Boolean) Whether there’s an override at the moment.
  • override_mode (String) Mode of current override.
  • override_until (Number) Unix timestamp in seconds when override ends. Relevant when override is true. Set at 0 for unlimited.
  • resolution (Number) Control resolution per day of this network control.
  • rule_mode (String) Mode that would be in use if there was no override. Depends only on rules, and is useful to determine what will happen when override is lifted.

Nested Schema for hosts

Read-Only:

Nested Schema for hosts.l2ident

Read-Only:

  • id (String)
  • type (String)

Nested Schema for hosts.l3connectivities

Read-Only:

  • active (Boolean)
  • address (String)
  • reachable (Boolean)
  • type (String)

Nested Schema for hosts.names

Read-Only:

  • name (String)
  • source (String)

Nested Schema for hosts.network_control

Read-Only:

  • current_mode (String)
  • name (String)
  • profile_id (Number)