Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien
Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien
Create PortForwarding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PortForwarding(name: string, args: PortForwardingArgs, opts?: CustomResourceOptions);@overload
def PortForwarding(resource_name: str,
args: PortForwardingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PortForwarding(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
ip_protocol: Optional[str] = None,
port_range_start: Optional[int] = None,
target_ip: Optional[str] = None,
comment: Optional[str] = None,
port_range_end: Optional[int] = None,
source_ip: Optional[str] = None,
target_port: Optional[int] = None)func NewPortForwarding(ctx *Context, name string, args PortForwardingArgs, opts ...ResourceOption) (*PortForwarding, error)public PortForwarding(string name, PortForwardingArgs args, CustomResourceOptions? opts = null)
public PortForwarding(String name, PortForwardingArgs args)
public PortForwarding(String name, PortForwardingArgs args, CustomResourceOptions options)
type: freebox:fw:PortForwarding
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "freebox_fw_portforwarding" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PortForwardingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PortForwardingArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PortForwardingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PortForwardingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PortForwardingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var portForwardingResource = new Freebox.Fw.PortForwarding("portForwardingResource", new()
{
Enabled = false,
IpProtocol = "string",
PortRangeStart = 0,
TargetIp = "string",
Comment = "string",
PortRangeEnd = 0,
SourceIp = "string",
TargetPort = 0,
});
example, err := fw.NewPortForwarding(ctx, "portForwardingResource", &fw.PortForwardingArgs{
Enabled: pulumi.Bool(false),
IpProtocol: pulumi.String("string"),
PortRangeStart: pulumi.Int(0),
TargetIp: pulumi.String("string"),
Comment: pulumi.String("string"),
PortRangeEnd: pulumi.Int(0),
SourceIp: pulumi.String("string"),
TargetPort: pulumi.Int(0),
})
resource "freebox_fw_portforwarding" "portForwardingResource" {
enabled = false
ip_protocol = "string"
port_range_start = 0
target_ip = "string"
comment = "string"
port_range_end = 0
source_ip = "string"
target_port = 0
}
var portForwardingResource = new PortForwarding("portForwardingResource", PortForwardingArgs.builder()
.enabled(false)
.ipProtocol("string")
.portRangeStart(0)
.targetIp("string")
.comment("string")
.portRangeEnd(0)
.sourceIp("string")
.targetPort(0)
.build());
port_forwarding_resource = freebox.fw.PortForwarding("portForwardingResource",
enabled=False,
ip_protocol="string",
port_range_start=0,
target_ip="string",
comment="string",
port_range_end=0,
source_ip="string",
target_port=0)
const portForwardingResource = new freebox.fw.PortForwarding("portForwardingResource", {
enabled: false,
ipProtocol: "string",
portRangeStart: 0,
targetIp: "string",
comment: "string",
portRangeEnd: 0,
sourceIp: "string",
targetPort: 0,
});
type: freebox:fw:PortForwarding
properties:
comment: string
enabled: false
ipProtocol: string
portRangeEnd: 0
portRangeStart: 0
sourceIp: string
targetIp: string
targetPort: 0
PortForwarding Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PortForwarding resource accepts the following input properties:
- Enabled bool
- Whether the forwarding is enabled.
- Ip
Protocol string - Protocol: tcp or udp.
- Port
Range intStart - Start of the WAN port range (inclusive).
- Target
Ip string - Local IP of the port forwarding target.
- Comment string
- Optional comment for the rule.
- Port
Range intEnd - End of the WAN port range (defaults to portRangeStart).
- Source
Ip string - Source IP filter (0.0.0.0 = any).
- Target
Port int - Target LAN port (defaults to portRangeStart when range is a single port).
- Enabled bool
- Whether the forwarding is enabled.
- Ip
Protocol string - Protocol: tcp or udp.
- Port
Range intStart - Start of the WAN port range (inclusive).
- Target
Ip string - Local IP of the port forwarding target.
- Comment string
- Optional comment for the rule.
- Port
Range intEnd - End of the WAN port range (defaults to portRangeStart).
- Source
Ip string - Source IP filter (0.0.0.0 = any).
- Target
Port int - Target LAN port (defaults to portRangeStart when range is a single port).
- enabled bool
- Whether the forwarding is enabled.
- ip_
protocol string - Protocol: tcp or udp.
- port_
range_ numberstart - Start of the WAN port range (inclusive).
- target_
ip string - Local IP of the port forwarding target.
- comment string
- Optional comment for the rule.
- port_
range_ numberend - End of the WAN port range (defaults to portRangeStart).
- source_
ip string - Source IP filter (0.0.0.0 = any).
- target_
port number - Target LAN port (defaults to portRangeStart when range is a single port).
- enabled Boolean
- Whether the forwarding is enabled.
- ip
Protocol String - Protocol: tcp or udp.
- port
Range IntegerStart - Start of the WAN port range (inclusive).
- target
Ip String - Local IP of the port forwarding target.
- comment String
- Optional comment for the rule.
- port
Range IntegerEnd - End of the WAN port range (defaults to portRangeStart).
- source
Ip String - Source IP filter (0.0.0.0 = any).
- target
Port Integer - Target LAN port (defaults to portRangeStart when range is a single port).
- enabled boolean
- Whether the forwarding is enabled.
- ip
Protocol string - Protocol: tcp or udp.
- port
Range numberStart - Start of the WAN port range (inclusive).
- target
Ip string - Local IP of the port forwarding target.
- comment string
- Optional comment for the rule.
- port
Range numberEnd - End of the WAN port range (defaults to portRangeStart).
- source
Ip string - Source IP filter (0.0.0.0 = any).
- target
Port number - Target LAN port (defaults to portRangeStart when range is a single port).
- enabled bool
- Whether the forwarding is enabled.
- ip_
protocol str - Protocol: tcp or udp.
- port_
range_ intstart - Start of the WAN port range (inclusive).
- target_
ip str - Local IP of the port forwarding target.
- comment str
- Optional comment for the rule.
- port_
range_ intend - End of the WAN port range (defaults to portRangeStart).
- source_
ip str - Source IP filter (0.0.0.0 = any).
- target_
port int - Target LAN port (defaults to portRangeStart when range is a single port).
- enabled Boolean
- Whether the forwarding is enabled.
- ip
Protocol String - Protocol: tcp or udp.
- port
Range NumberStart - Start of the WAN port range (inclusive).
- target
Ip String - Local IP of the port forwarding target.
- comment String
- Optional comment for the rule.
- port
Range NumberEnd - End of the WAN port range (defaults to portRangeStart).
- source
Ip String - Source IP filter (0.0.0.0 = any).
- target
Port Number - Target LAN port (defaults to portRangeStart when range is a single port).
Outputs
All input properties are implicitly available as output properties. Additionally, the PortForwarding resource produces the following output properties:
- Hostname string
- Hostname reported by the Freebox for this rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Rule
Id int - Freebox API rule ID.
- Host
Olivier
Paquien. Pulumi. Freebox. Outputs. Lan Host - LAN host information for the target.
- hostname str
- Hostname reported by the Freebox for this rule.
- id str
- The provider-assigned unique ID for this managed resource.
- rule_
id int - Freebox API rule ID.
- host
root_Lan
Host - LAN host information for the target.
- hostname String
- Hostname reported by the Freebox for this rule.
- id String
- The provider-assigned unique ID for this managed resource.
- rule
Id Number - Freebox API rule ID.
- host Property Map
- LAN host information for the target.
Supporting Types
LanHost, LanHostArgs
- Active bool
- Default
Name string - Host
Id string - Host
Type string - Interface string
- L2ident
Olivier
Paquien. Pulumi. Freebox. Inputs. Lan Host L2Ident - L3connectivities
List<Olivier
Paquien. Pulumi. Freebox. Inputs. Lan Host L3Connectivity> - Names
List<Olivier
Paquien. Pulumi. Freebox. Inputs. Lan Host Name> - Persistent bool
- Primary
Name string - Primary
Name boolManual - Reachable bool
- Vendor
Name string - First
Activity doubleSeconds - Network
Control OlivierPaquien. Pulumi. Freebox. Inputs. Lan Host Network Control
- Active bool
- Default
Name string - Host
Id string - Host
Type string - Interface string
- L2ident
Lan
Host L2Ident - L3connectivities
Lan
Host L3Connectivity - Names
Lan
Host Name - Persistent bool
- Primary
Name string - Primary
Name boolManual - Reachable bool
- Vendor
Name string - First
Activity float64Seconds - Network
Control LanHost Network Control
- active bool
- default_
name string - host_
id string - host_
type string - interface string
- l2ident object
- l3connectivities list(object)
- names list(object)
- persistent bool
- primary_
name string - primary_
name_ boolmanual - reachable bool
- vendor_
name string - first_
activity_ numberseconds - network_
control object
- active Boolean
- default
Name String - host
Id String - host
Type String - interface_ String
- l2ident
Lan
Host L2Ident - l3connectivities
List<Lan
Host L3Connectivity> - names
List<Lan
Host Name> - persistent Boolean
- primary
Name String - primary
Name BooleanManual - reachable Boolean
- vendor
Name String - first
Activity DoubleSeconds - network
Control LanHost Network Control
- active boolean
- default
Name string - host
Id string - host
Type string - interface string
- l2ident
Lan
Host L2Ident - l3connectivities
Lan
Host L3Connectivity[] - names
Lan
Host Name[] - persistent boolean
- primary
Name string - primary
Name booleanManual - reachable boolean
- vendor
Name string - first
Activity numberSeconds - network
Control LanHost Network Control
- active bool
- default_
name str - host_
id str - host_
type str - interface str
- l2ident
Lan
Host L2Ident - l3connectivities
Sequence[Lan
Host L3Connectivity] - names
Sequence[Lan
Host Name] - persistent bool
- primary_
name str - primary_
name_ boolmanual - reachable bool
- vendor_
name str - first_
activity_ floatseconds - network_
control LanHost Network Control
- active Boolean
- default
Name String - host
Id String - host
Type String - interface String
- l2ident Property Map
- l3connectivities List<Property Map>
- names List<Property Map>
- persistent Boolean
- primary
Name String - primary
Name BooleanManual - reachable Boolean
- vendor
Name String - first
Activity NumberSeconds - network
Control Property Map
LanHostL2Ident, LanHostL2IdentArgs
LanHostL3Connectivity, LanHostL3ConnectivityArgs
LanHostName, LanHostNameArgs
LanHostNetworkControl, LanHostNetworkControlArgs
- Current
Mode string - Name string
- Profile
Id int
- Current
Mode string - Name string
- Profile
Id int
- current_
mode string - name string
- profile_
id number
- current
Mode String - name String
- profile
Id Integer
- current
Mode string - name string
- profile
Id number
- current_
mode str - name str
- profile_
id int
- current
Mode String - name String
- profile
Id Number
Package Details
- Repository
- freebox
- License
Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien