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);
}
}
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}
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 string
- The unique name of the resource.
- args ApplianceFirewallPortForwardingRulesArgs
- 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 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 string
- The unique name of the resource.
- args ApplianceFirewallPortForwardingRulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplianceFirewallPortForwardingRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
},
});
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"),
},
},
})
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());
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",
}])
const applianceFirewallPortForwardingRulesResource = new meraki.networks.ApplianceFirewallPortForwardingRules("applianceFirewallPortForwardingRulesResource", {
networkId: "string",
rules: [{
allowedIps: ["string"],
lanIp: "string",
localPort: "string",
name: "string",
protocol: "string",
publicPort: "string",
uplink: "string",
}],
});
type: meraki:networks:ApplianceFirewallPortForwardingRules
properties:
networkId: string
rules:
- allowedIps:
- string
lanIp: string
localPort: string
name: string
protocol: string
publicPort: string
uplink: string
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:
- Network
Id string - networkId path parameter. Network ID
- Rules
List<Appliance
Firewall Port Forwarding Rules Rule> - An array of port forwarding params
- Network
Id string - networkId path parameter. Network ID
- Rules
[]Appliance
Firewall Port Forwarding Rules Rule Args - An array of port forwarding params
- network
Id String - networkId path parameter. Network ID
- rules
List<Appliance
Firewall Port Forwarding Rules Rule> - An array of port forwarding params
- network
Id string - networkId path parameter. Network ID
- rules
Appliance
Firewall Port Forwarding Rules Rule[] - An array of port forwarding params
- network_
id str - networkId path parameter. Network ID
- rules
Sequence[Appliance
Firewall Port Forwarding Rules Rule Args] - An array of port forwarding params
- network
Id 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Network
Id string - networkId path parameter. Network ID
- Rules
List<Appliance
Firewall Port Forwarding Rules Rule> - An array of port forwarding params
- Network
Id string - networkId path parameter. Network ID
- Rules
[]Appliance
Firewall Port Forwarding Rules Rule Args - An array of port forwarding params
- network
Id String - networkId path parameter. Network ID
- rules
List<Appliance
Firewall Port Forwarding Rules Rule> - An array of port forwarding params
- network
Id string - networkId path parameter. Network ID
- rules
Appliance
Firewall Port Forwarding Rules Rule[] - An array of port forwarding params
- network_
id str - networkId path parameter. Network ID
- rules
Sequence[Appliance
Firewall Port Forwarding Rules Rule Args] - An array of port forwarding params
- network
Id String - networkId path parameter. Network ID
- rules List<Property Map>
- An array of port forwarding params
Supporting Types
ApplianceFirewallPortForwardingRulesRule, ApplianceFirewallPortForwardingRulesRuleArgs
- Allowed
Ips 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)
- Lan
Ip string - The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
- Local
Port 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
- Public
Port 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 []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)
- Lan
Ip string - The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
- Local
Port 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
- Public
Port 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 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)
- lan
Ip String - The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
- local
Port 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
- public
Port 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 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)
- lan
Ip string - The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
- local
Port 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
- public
Port 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')
- allowed
Ips 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)
- lan
Ip String - The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
- local
Port 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
- public
Port 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"
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.