1. Packages
  2. Cisco Meraki
  3. API Docs
  4. networks
  5. ApplianceFirewallOneToManyNatRules
Cisco Meraki v0.2.6 published on Friday, Jul 12, 2024 by Pulumi

meraki.networks.ApplianceFirewallOneToManyNatRules

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.6 published on Friday, Jul 12, 2024 by Pulumi

    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.ApplianceFirewallOneToManyNatRules;
    import com.pulumi.meraki.networks.ApplianceFirewallOneToManyNatRulesArgs;
    import com.pulumi.meraki.networks.inputs.ApplianceFirewallOneToManyNatRulesRuleArgs;
    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 ApplianceFirewallOneToManyNatRules("example", ApplianceFirewallOneToManyNatRulesArgs.builder()
                .networkId("string")
                .rules(ApplianceFirewallOneToManyNatRulesRuleArgs.builder()
                    .port_rules(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                    .public_ip("146.11.11.13")
                    .uplink("internet1")
                    .build())
                .build());
    
            ctx.export("merakiNetworksApplianceFirewallOneToManyNatRulesExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:ApplianceFirewallOneToManyNatRules
        properties:
          networkId: string
          rules:
            - port_rules:
                - allowedIps:
                    - any
                  localIp: 192.168.128.1
                  localPort: '443'
                  name: Rule 1
                  protocol: tcp
                  publicPort: '9443'
              public_ip: 146.11.11.13
              uplink: internet1
    outputs:
      merakiNetworksApplianceFirewallOneToManyNatRulesExample: ${example}
    

    Create ApplianceFirewallOneToManyNatRules Resource

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

    Constructor syntax

    new ApplianceFirewallOneToManyNatRules(name: string, args: ApplianceFirewallOneToManyNatRulesArgs, opts?: CustomResourceOptions);
    @overload
    def ApplianceFirewallOneToManyNatRules(resource_name: str,
                                           args: ApplianceFirewallOneToManyNatRulesArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApplianceFirewallOneToManyNatRules(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           network_id: Optional[str] = None,
                                           rules: Optional[Sequence[ApplianceFirewallOneToManyNatRulesRuleArgs]] = None)
    func NewApplianceFirewallOneToManyNatRules(ctx *Context, name string, args ApplianceFirewallOneToManyNatRulesArgs, opts ...ResourceOption) (*ApplianceFirewallOneToManyNatRules, error)
    public ApplianceFirewallOneToManyNatRules(string name, ApplianceFirewallOneToManyNatRulesArgs args, CustomResourceOptions? opts = null)
    public ApplianceFirewallOneToManyNatRules(String name, ApplianceFirewallOneToManyNatRulesArgs args)
    public ApplianceFirewallOneToManyNatRules(String name, ApplianceFirewallOneToManyNatRulesArgs args, CustomResourceOptions options)
    
    type: meraki:networks:ApplianceFirewallOneToManyNatRules
    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 ApplianceFirewallOneToManyNatRulesArgs
    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 ApplianceFirewallOneToManyNatRulesArgs
    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 ApplianceFirewallOneToManyNatRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApplianceFirewallOneToManyNatRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApplianceFirewallOneToManyNatRulesArgs
    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 applianceFirewallOneToManyNatRulesResource = new Meraki.Networks.ApplianceFirewallOneToManyNatRules("applianceFirewallOneToManyNatRulesResource", new()
    {
        NetworkId = "string",
        Rules = new[]
        {
            new Meraki.Networks.Inputs.ApplianceFirewallOneToManyNatRulesRuleArgs
            {
                PortRules = new[]
                {
                    new Meraki.Networks.Inputs.ApplianceFirewallOneToManyNatRulesRulePortRuleArgs
                    {
                        AllowedIps = new[]
                        {
                            "string",
                        },
                        LocalIp = "string",
                        LocalPort = "string",
                        Name = "string",
                        Protocol = "string",
                        PublicPort = "string",
                    },
                },
                PublicIp = "string",
                Uplink = "string",
            },
        },
    });
    
    example, err := networks.NewApplianceFirewallOneToManyNatRules(ctx, "applianceFirewallOneToManyNatRulesResource", &networks.ApplianceFirewallOneToManyNatRulesArgs{
    	NetworkId: pulumi.String("string"),
    	Rules: networks.ApplianceFirewallOneToManyNatRulesRuleArray{
    		&networks.ApplianceFirewallOneToManyNatRulesRuleArgs{
    			PortRules: networks.ApplianceFirewallOneToManyNatRulesRulePortRuleArray{
    				&networks.ApplianceFirewallOneToManyNatRulesRulePortRuleArgs{
    					AllowedIps: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					LocalIp:    pulumi.String("string"),
    					LocalPort:  pulumi.String("string"),
    					Name:       pulumi.String("string"),
    					Protocol:   pulumi.String("string"),
    					PublicPort: pulumi.String("string"),
    				},
    			},
    			PublicIp: pulumi.String("string"),
    			Uplink:   pulumi.String("string"),
    		},
    	},
    })
    
    var applianceFirewallOneToManyNatRulesResource = new ApplianceFirewallOneToManyNatRules("applianceFirewallOneToManyNatRulesResource", ApplianceFirewallOneToManyNatRulesArgs.builder()
        .networkId("string")
        .rules(ApplianceFirewallOneToManyNatRulesRuleArgs.builder()
            .portRules(ApplianceFirewallOneToManyNatRulesRulePortRuleArgs.builder()
                .allowedIps("string")
                .localIp("string")
                .localPort("string")
                .name("string")
                .protocol("string")
                .publicPort("string")
                .build())
            .publicIp("string")
            .uplink("string")
            .build())
        .build());
    
    appliance_firewall_one_to_many_nat_rules_resource = meraki.networks.ApplianceFirewallOneToManyNatRules("applianceFirewallOneToManyNatRulesResource",
        network_id="string",
        rules=[meraki.networks.ApplianceFirewallOneToManyNatRulesRuleArgs(
            port_rules=[meraki.networks.ApplianceFirewallOneToManyNatRulesRulePortRuleArgs(
                allowed_ips=["string"],
                local_ip="string",
                local_port="string",
                name="string",
                protocol="string",
                public_port="string",
            )],
            public_ip="string",
            uplink="string",
        )])
    
    const applianceFirewallOneToManyNatRulesResource = new meraki.networks.ApplianceFirewallOneToManyNatRules("applianceFirewallOneToManyNatRulesResource", {
        networkId: "string",
        rules: [{
            portRules: [{
                allowedIps: ["string"],
                localIp: "string",
                localPort: "string",
                name: "string",
                protocol: "string",
                publicPort: "string",
            }],
            publicIp: "string",
            uplink: "string",
        }],
    });
    
    type: meraki:networks:ApplianceFirewallOneToManyNatRules
    properties:
        networkId: string
        rules:
            - portRules:
                - allowedIps:
                    - string
                  localIp: string
                  localPort: string
                  name: string
                  protocol: string
                  publicPort: string
              publicIp: string
              uplink: string
    

    ApplianceFirewallOneToManyNatRules Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ApplianceFirewallOneToManyNatRules resource accepts the following input properties:

    NetworkId string
    networkId path parameter. Network ID
    Rules List<ApplianceFirewallOneToManyNatRulesRule>
    An array of 1:Many nat rules
    NetworkId string
    networkId path parameter. Network ID
    Rules []ApplianceFirewallOneToManyNatRulesRuleArgs
    An array of 1:Many nat rules
    networkId String
    networkId path parameter. Network ID
    rules List<ApplianceFirewallOneToManyNatRulesRule>
    An array of 1:Many nat rules
    networkId string
    networkId path parameter. Network ID
    rules ApplianceFirewallOneToManyNatRulesRule[]
    An array of 1:Many nat rules
    network_id str
    networkId path parameter. Network ID
    rules Sequence[ApplianceFirewallOneToManyNatRulesRuleArgs]
    An array of 1:Many nat rules
    networkId String
    networkId path parameter. Network ID
    rules List<Property Map>
    An array of 1:Many nat rules

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ApplianceFirewallOneToManyNatRules 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 ApplianceFirewallOneToManyNatRules Resource

    Get an existing ApplianceFirewallOneToManyNatRules 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?: ApplianceFirewallOneToManyNatRulesState, opts?: CustomResourceOptions): ApplianceFirewallOneToManyNatRules
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            network_id: Optional[str] = None,
            rules: Optional[Sequence[ApplianceFirewallOneToManyNatRulesRuleArgs]] = None) -> ApplianceFirewallOneToManyNatRules
    func GetApplianceFirewallOneToManyNatRules(ctx *Context, name string, id IDInput, state *ApplianceFirewallOneToManyNatRulesState, opts ...ResourceOption) (*ApplianceFirewallOneToManyNatRules, error)
    public static ApplianceFirewallOneToManyNatRules Get(string name, Input<string> id, ApplianceFirewallOneToManyNatRulesState? state, CustomResourceOptions? opts = null)
    public static ApplianceFirewallOneToManyNatRules get(String name, Output<String> id, ApplianceFirewallOneToManyNatRulesState 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.
    The following state arguments are supported:
    NetworkId string
    networkId path parameter. Network ID
    Rules List<ApplianceFirewallOneToManyNatRulesRule>
    An array of 1:Many nat rules
    NetworkId string
    networkId path parameter. Network ID
    Rules []ApplianceFirewallOneToManyNatRulesRuleArgs
    An array of 1:Many nat rules
    networkId String
    networkId path parameter. Network ID
    rules List<ApplianceFirewallOneToManyNatRulesRule>
    An array of 1:Many nat rules
    networkId string
    networkId path parameter. Network ID
    rules ApplianceFirewallOneToManyNatRulesRule[]
    An array of 1:Many nat rules
    network_id str
    networkId path parameter. Network ID
    rules Sequence[ApplianceFirewallOneToManyNatRulesRuleArgs]
    An array of 1:Many nat rules
    networkId String
    networkId path parameter. Network ID
    rules List<Property Map>
    An array of 1:Many nat rules

    Supporting Types

    ApplianceFirewallOneToManyNatRulesRule, ApplianceFirewallOneToManyNatRulesRuleArgs

    PortRules List<ApplianceFirewallOneToManyNatRulesRulePortRule>
    An array of associated forwarding rules
    PublicIp string
    The IP address that will be used to access the internal resource from the WAN
    Uplink string
    The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')
    PortRules []ApplianceFirewallOneToManyNatRulesRulePortRule
    An array of associated forwarding rules
    PublicIp string
    The IP address that will be used to access the internal resource from the WAN
    Uplink string
    The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')
    portRules List<ApplianceFirewallOneToManyNatRulesRulePortRule>
    An array of associated forwarding rules
    publicIp String
    The IP address that will be used to access the internal resource from the WAN
    uplink String
    The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')
    portRules ApplianceFirewallOneToManyNatRulesRulePortRule[]
    An array of associated forwarding rules
    publicIp string
    The IP address that will be used to access the internal resource from the WAN
    uplink string
    The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')
    port_rules Sequence[ApplianceFirewallOneToManyNatRulesRulePortRule]
    An array of associated forwarding rules
    public_ip str
    The IP address that will be used to access the internal resource from the WAN
    uplink str
    The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')
    portRules List<Property Map>
    An array of associated forwarding rules
    publicIp String
    The IP address that will be used to access the internal resource from the WAN
    uplink String
    The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')

    ApplianceFirewallOneToManyNatRulesRulePortRule, ApplianceFirewallOneToManyNatRulesRulePortRuleArgs

    AllowedIps List<string>
    Remote IP addresses or ranges that are permitted to access the internal resource via this port forwarding rule, or 'any'
    LocalIp string
    Local IP address to which traffic will be forwarded
    LocalPort string
    Destination port of the forwarded traffic that will be sent from the MX to the specified host on the LAN. If you simply wish to forward the traffic without translating the port, this should be the same as the Public port
    Name string
    A description of the rule
    Protocol string
    'tcp' or 'udp'
    PublicPort string
    Destination port of the traffic that is arriving on the WAN
    AllowedIps []string
    Remote IP addresses or ranges that are permitted to access the internal resource via this port forwarding rule, or 'any'
    LocalIp string
    Local IP address to which traffic will be forwarded
    LocalPort string
    Destination port of the forwarded traffic that will be sent from the MX to the specified host on the LAN. If you simply wish to forward the traffic without translating the port, this should be the same as the Public port
    Name string
    A description of the rule
    Protocol string
    'tcp' or 'udp'
    PublicPort string
    Destination port of the traffic that is arriving on the WAN
    allowedIps List<String>
    Remote IP addresses or ranges that are permitted to access the internal resource via this port forwarding rule, or 'any'
    localIp String
    Local IP address to which traffic will be forwarded
    localPort String
    Destination port of the forwarded traffic that will be sent from the MX to the specified host on the LAN. If you simply wish to forward the traffic without translating the port, this should be the same as the Public port
    name String
    A description of the rule
    protocol String
    'tcp' or 'udp'
    publicPort String
    Destination port of the traffic that is arriving on the WAN
    allowedIps string[]
    Remote IP addresses or ranges that are permitted to access the internal resource via this port forwarding rule, or 'any'
    localIp string
    Local IP address to which traffic will be forwarded
    localPort string
    Destination port of the forwarded traffic that will be sent from the MX to the specified host on the LAN. If you simply wish to forward the traffic without translating the port, this should be the same as the Public port
    name string
    A description of the rule
    protocol string
    'tcp' or 'udp'
    publicPort string
    Destination port of the traffic that is arriving on the WAN
    allowed_ips Sequence[str]
    Remote IP addresses or ranges that are permitted to access the internal resource via this port forwarding rule, or 'any'
    local_ip str
    Local IP address to which traffic will be forwarded
    local_port str
    Destination port of the forwarded traffic that will be sent from the MX to the specified host on the LAN. If you simply wish to forward the traffic without translating the port, this should be the same as the Public port
    name str
    A description of the rule
    protocol str
    'tcp' or 'udp'
    public_port str
    Destination port of the traffic that is arriving on the WAN
    allowedIps List<String>
    Remote IP addresses or ranges that are permitted to access the internal resource via this port forwarding rule, or 'any'
    localIp String
    Local IP address to which traffic will be forwarded
    localPort String
    Destination port of the forwarded traffic that will be sent from the MX to the specified host on the LAN. If you simply wish to forward the traffic without translating the port, this should be the same as the Public port
    name String
    A description of the rule
    protocol String
    'tcp' or 'udp'
    publicPort String
    Destination port of the traffic that is arriving on the WAN

    Import

    $ pulumi import meraki:networks/applianceFirewallOneToManyNatRules:ApplianceFirewallOneToManyNatRules 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.
    meraki logo
    Cisco Meraki v0.2.6 published on Friday, Jul 12, 2024 by Pulumi