1. Packages
  2. Cisco Meraki Provider
  3. API Docs
  4. networks
  5. ApplianceFirewallPortForwardingRules
Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi

meraki.networks.ApplianceFirewallPortForwardingRules

Explore with Pulumi AI

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.ApplianceFirewallPortForwardingRules;
import com.pulumi.meraki.networks.ApplianceFirewallPortForwardingRulesArgs;
import com.pulumi.meraki.networks.inputs.ApplianceFirewallPortForwardingRulesRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ApplianceFirewallPortForwardingRules("example", ApplianceFirewallPortForwardingRulesArgs.builder()
            .networkId("string")
            .rules(ApplianceFirewallPortForwardingRulesRuleArgs.builder()
                .allowed_ips("any")
                .lan_ip("192.168.128.1")
                .local_port("442-443")
                .name("Description of Port Forwarding Rule")
                .protocol("tcp")
                .public_port("8100-8101")
                .uplink("both")
                .build())
            .build());

        ctx.export("merakiNetworksApplianceFirewallPortForwardingRulesExample", example);
    }
}
Copy
resources:
  example:
    type: meraki:networks:ApplianceFirewallPortForwardingRules
    properties:
      networkId: string
      rules:
        - allowed_ips:
            - any
          lan_ip: 192.168.128.1
          local_port: 442-443
          name: Description of Port Forwarding Rule
          protocol: tcp
          public_port: 8100-8101
          uplink: both
outputs:
  merakiNetworksApplianceFirewallPortForwardingRulesExample: ${example}
Copy

Create ApplianceFirewallPortForwardingRules Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ApplianceFirewallPortForwardingRules(name: string, args: ApplianceFirewallPortForwardingRulesArgs, opts?: CustomResourceOptions);
@overload
def ApplianceFirewallPortForwardingRules(resource_name: str,
                                         args: ApplianceFirewallPortForwardingRulesArgs,
                                         opts: Optional[ResourceOptions] = None)

@overload
def ApplianceFirewallPortForwardingRules(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         network_id: Optional[str] = None,
                                         rules: Optional[Sequence[ApplianceFirewallPortForwardingRulesRuleArgs]] = None)
func NewApplianceFirewallPortForwardingRules(ctx *Context, name string, args ApplianceFirewallPortForwardingRulesArgs, opts ...ResourceOption) (*ApplianceFirewallPortForwardingRules, error)
public ApplianceFirewallPortForwardingRules(string name, ApplianceFirewallPortForwardingRulesArgs args, CustomResourceOptions? opts = null)
public ApplianceFirewallPortForwardingRules(String name, ApplianceFirewallPortForwardingRulesArgs args)
public ApplianceFirewallPortForwardingRules(String name, ApplianceFirewallPortForwardingRulesArgs args, CustomResourceOptions options)
type: meraki:networks:ApplianceFirewallPortForwardingRules
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ApplianceFirewallPortForwardingRulesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ApplianceFirewallPortForwardingRulesArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ApplianceFirewallPortForwardingRulesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ApplianceFirewallPortForwardingRulesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ApplianceFirewallPortForwardingRulesArgs
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 applianceFirewallPortForwardingRulesResource = new Meraki.Networks.ApplianceFirewallPortForwardingRules("applianceFirewallPortForwardingRulesResource", new()
{
    NetworkId = "string",
    Rules = new[]
    {
        new Meraki.Networks.Inputs.ApplianceFirewallPortForwardingRulesRuleArgs
        {
            AllowedIps = new[]
            {
                "string",
            },
            LanIp = "string",
            LocalPort = "string",
            Name = "string",
            Protocol = "string",
            PublicPort = "string",
            Uplink = "string",
        },
    },
});
Copy
example, err := networks.NewApplianceFirewallPortForwardingRules(ctx, "applianceFirewallPortForwardingRulesResource", &networks.ApplianceFirewallPortForwardingRulesArgs{
	NetworkId: pulumi.String("string"),
	Rules: networks.ApplianceFirewallPortForwardingRulesRuleArray{
		&networks.ApplianceFirewallPortForwardingRulesRuleArgs{
			AllowedIps: pulumi.StringArray{
				pulumi.String("string"),
			},
			LanIp:      pulumi.String("string"),
			LocalPort:  pulumi.String("string"),
			Name:       pulumi.String("string"),
			Protocol:   pulumi.String("string"),
			PublicPort: pulumi.String("string"),
			Uplink:     pulumi.String("string"),
		},
	},
})
Copy
var applianceFirewallPortForwardingRulesResource = new ApplianceFirewallPortForwardingRules("applianceFirewallPortForwardingRulesResource", ApplianceFirewallPortForwardingRulesArgs.builder()
    .networkId("string")
    .rules(ApplianceFirewallPortForwardingRulesRuleArgs.builder()
        .allowedIps("string")
        .lanIp("string")
        .localPort("string")
        .name("string")
        .protocol("string")
        .publicPort("string")
        .uplink("string")
        .build())
    .build());
Copy
appliance_firewall_port_forwarding_rules_resource = meraki.networks.ApplianceFirewallPortForwardingRules("applianceFirewallPortForwardingRulesResource",
    network_id="string",
    rules=[{
        "allowed_ips": ["string"],
        "lan_ip": "string",
        "local_port": "string",
        "name": "string",
        "protocol": "string",
        "public_port": "string",
        "uplink": "string",
    }])
Copy
const applianceFirewallPortForwardingRulesResource = new meraki.networks.ApplianceFirewallPortForwardingRules("applianceFirewallPortForwardingRulesResource", {
    networkId: "string",
    rules: [{
        allowedIps: ["string"],
        lanIp: "string",
        localPort: "string",
        name: "string",
        protocol: "string",
        publicPort: "string",
        uplink: "string",
    }],
});
Copy
type: meraki:networks:ApplianceFirewallPortForwardingRules
properties:
    networkId: string
    rules:
        - allowedIps:
            - string
          lanIp: string
          localPort: string
          name: string
          protocol: string
          publicPort: string
          uplink: string
Copy

ApplianceFirewallPortForwardingRules 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 ApplianceFirewallPortForwardingRules resource accepts the following input properties:

NetworkId This property is required. string
networkId path parameter. Network ID
Rules List<ApplianceFirewallPortForwardingRulesRule>
An array of port forwarding params
NetworkId This property is required. string
networkId path parameter. Network ID
Rules []ApplianceFirewallPortForwardingRulesRuleArgs
An array of port forwarding params
networkId This property is required. String
networkId path parameter. Network ID
rules List<ApplianceFirewallPortForwardingRulesRule>
An array of port forwarding params
networkId This property is required. string
networkId path parameter. Network ID
rules ApplianceFirewallPortForwardingRulesRule[]
An array of port forwarding params
network_id This property is required. str
networkId path parameter. Network ID
rules Sequence[ApplianceFirewallPortForwardingRulesRuleArgs]
An array of port forwarding params
networkId This property is required. String
networkId path parameter. Network ID
rules List<Property Map>
An array of port forwarding params

Outputs

All input properties are implicitly available as output properties. Additionally, the ApplianceFirewallPortForwardingRules resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ApplianceFirewallPortForwardingRules Resource

Get an existing ApplianceFirewallPortForwardingRules resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ApplianceFirewallPortForwardingRulesState, opts?: CustomResourceOptions): ApplianceFirewallPortForwardingRules
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        network_id: Optional[str] = None,
        rules: Optional[Sequence[ApplianceFirewallPortForwardingRulesRuleArgs]] = None) -> ApplianceFirewallPortForwardingRules
func GetApplianceFirewallPortForwardingRules(ctx *Context, name string, id IDInput, state *ApplianceFirewallPortForwardingRulesState, opts ...ResourceOption) (*ApplianceFirewallPortForwardingRules, error)
public static ApplianceFirewallPortForwardingRules Get(string name, Input<string> id, ApplianceFirewallPortForwardingRulesState? state, CustomResourceOptions? opts = null)
public static ApplianceFirewallPortForwardingRules get(String name, Output<String> id, ApplianceFirewallPortForwardingRulesState state, CustomResourceOptions options)
resources:  _:    type: meraki:networks:ApplianceFirewallPortForwardingRules    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
NetworkId string
networkId path parameter. Network ID
Rules List<ApplianceFirewallPortForwardingRulesRule>
An array of port forwarding params
NetworkId string
networkId path parameter. Network ID
Rules []ApplianceFirewallPortForwardingRulesRuleArgs
An array of port forwarding params
networkId String
networkId path parameter. Network ID
rules List<ApplianceFirewallPortForwardingRulesRule>
An array of port forwarding params
networkId string
networkId path parameter. Network ID
rules ApplianceFirewallPortForwardingRulesRule[]
An array of port forwarding params
network_id str
networkId path parameter. Network ID
rules Sequence[ApplianceFirewallPortForwardingRulesRuleArgs]
An array of port forwarding params
networkId String
networkId path parameter. Network ID
rules List<Property Map>
An array of port forwarding params

Supporting Types

ApplianceFirewallPortForwardingRulesRule
, ApplianceFirewallPortForwardingRulesRuleArgs

AllowedIps List<string>
An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges (or any)
LanIp string
The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
LocalPort string
A port or port ranges that will receive the forwarded traffic from the WAN
Name string
A descriptive name for the rule
Protocol string
TCP or UDP
PublicPort string
A port or port ranges that will be forwarded to the host on the LAN
Uplink string
The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2' or 'both')
AllowedIps []string
An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges (or any)
LanIp string
The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
LocalPort string
A port or port ranges that will receive the forwarded traffic from the WAN
Name string
A descriptive name for the rule
Protocol string
TCP or UDP
PublicPort string
A port or port ranges that will be forwarded to the host on the LAN
Uplink string
The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2' or 'both')
allowedIps List<String>
An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges (or any)
lanIp String
The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
localPort String
A port or port ranges that will receive the forwarded traffic from the WAN
name String
A descriptive name for the rule
protocol String
TCP or UDP
publicPort String
A port or port ranges that will be forwarded to the host on the LAN
uplink String
The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2' or 'both')
allowedIps string[]
An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges (or any)
lanIp string
The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
localPort string
A port or port ranges that will receive the forwarded traffic from the WAN
name string
A descriptive name for the rule
protocol string
TCP or UDP
publicPort string
A port or port ranges that will be forwarded to the host on the LAN
uplink string
The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2' or 'both')
allowed_ips Sequence[str]
An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges (or any)
lan_ip str
The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
local_port str
A port or port ranges that will receive the forwarded traffic from the WAN
name str
A descriptive name for the rule
protocol str
TCP or UDP
public_port str
A port or port ranges that will be forwarded to the host on the LAN
uplink str
The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2' or 'both')
allowedIps List<String>
An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges (or any)
lanIp String
The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
localPort String
A port or port ranges that will receive the forwarded traffic from the WAN
name String
A descriptive name for the rule
protocol String
TCP or UDP
publicPort String
A port or port ranges that will be forwarded to the host on the LAN
uplink String
The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2' or 'both')

Import

$ pulumi import meraki:networks/applianceFirewallPortForwardingRules:ApplianceFirewallPortForwardingRules example "network_id"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
meraki pulumi/pulumi-meraki
License
Apache-2.0
Notes
This Pulumi package is based on the meraki Terraform Provider.