1. Packages
  2. Cisco Meraki
  3. API Docs
  4. devices
  5. CellularGatewayPortForwardingRules
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

meraki.devices.CellularGatewayPortForwardingRules

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.4 published on Friday, Jun 14, 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.devices.CellularGatewayPortForwardingRules;
    import com.pulumi.meraki.devices.CellularGatewayPortForwardingRulesArgs;
    import com.pulumi.meraki.devices.inputs.CellularGatewayPortForwardingRulesRuleArgs;
    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 CellularGatewayPortForwardingRules("example", CellularGatewayPortForwardingRulesArgs.builder()
                .rules(CellularGatewayPortForwardingRulesRuleArgs.builder()
                    .access("any")
                    .lan_ip("172.31.128.5")
                    .local_port("4")
                    .name("test")
                    .protocol("tcp")
                    .public_port("11-12")
                    .build())
                .serial("string")
                .build());
    
            ctx.export("merakiDevicesCellularGatewayPortForwardingRulesExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:devices:CellularGatewayPortForwardingRules
        properties:
          rules:
            - access: any
              lan_ip: 172.31.128.5
              local_port: '4'
              name: test
              protocol: tcp
              public_port: 11-12
          serial: string
    outputs:
      merakiDevicesCellularGatewayPortForwardingRulesExample: ${example}
    

    Create CellularGatewayPortForwardingRules Resource

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

    Constructor syntax

    new CellularGatewayPortForwardingRules(name: string, args: CellularGatewayPortForwardingRulesArgs, opts?: CustomResourceOptions);
    @overload
    def CellularGatewayPortForwardingRules(resource_name: str,
                                           args: CellularGatewayPortForwardingRulesArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CellularGatewayPortForwardingRules(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           serial: Optional[str] = None,
                                           rules: Optional[Sequence[CellularGatewayPortForwardingRulesRuleArgs]] = None)
    func NewCellularGatewayPortForwardingRules(ctx *Context, name string, args CellularGatewayPortForwardingRulesArgs, opts ...ResourceOption) (*CellularGatewayPortForwardingRules, error)
    public CellularGatewayPortForwardingRules(string name, CellularGatewayPortForwardingRulesArgs args, CustomResourceOptions? opts = null)
    public CellularGatewayPortForwardingRules(String name, CellularGatewayPortForwardingRulesArgs args)
    public CellularGatewayPortForwardingRules(String name, CellularGatewayPortForwardingRulesArgs args, CustomResourceOptions options)
    
    type: meraki:devices:CellularGatewayPortForwardingRules
    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 CellularGatewayPortForwardingRulesArgs
    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 CellularGatewayPortForwardingRulesArgs
    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 CellularGatewayPortForwardingRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CellularGatewayPortForwardingRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CellularGatewayPortForwardingRulesArgs
    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 cellularGatewayPortForwardingRulesResource = new Meraki.Devices.CellularGatewayPortForwardingRules("cellularGatewayPortForwardingRulesResource", new()
    {
        Serial = "string",
        Rules = new[]
        {
            new Meraki.Devices.Inputs.CellularGatewayPortForwardingRulesRuleArgs
            {
                Access = "string",
                AllowedIps = new[]
                {
                    "string",
                },
                LanIp = "string",
                LocalPort = "string",
                Name = "string",
                Protocol = "string",
                PublicPort = "string",
                Uplink = "string",
            },
        },
    });
    
    example, err := devices.NewCellularGatewayPortForwardingRules(ctx, "cellularGatewayPortForwardingRulesResource", &devices.CellularGatewayPortForwardingRulesArgs{
    	Serial: pulumi.String("string"),
    	Rules: devices.CellularGatewayPortForwardingRulesRuleArray{
    		&devices.CellularGatewayPortForwardingRulesRuleArgs{
    			Access: pulumi.String("string"),
    			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 cellularGatewayPortForwardingRulesResource = new CellularGatewayPortForwardingRules("cellularGatewayPortForwardingRulesResource", CellularGatewayPortForwardingRulesArgs.builder()
        .serial("string")
        .rules(CellularGatewayPortForwardingRulesRuleArgs.builder()
            .access("string")
            .allowedIps("string")
            .lanIp("string")
            .localPort("string")
            .name("string")
            .protocol("string")
            .publicPort("string")
            .uplink("string")
            .build())
        .build());
    
    cellular_gateway_port_forwarding_rules_resource = meraki.devices.CellularGatewayPortForwardingRules("cellularGatewayPortForwardingRulesResource",
        serial="string",
        rules=[meraki.devices.CellularGatewayPortForwardingRulesRuleArgs(
            access="string",
            allowed_ips=["string"],
            lan_ip="string",
            local_port="string",
            name="string",
            protocol="string",
            public_port="string",
            uplink="string",
        )])
    
    const cellularGatewayPortForwardingRulesResource = new meraki.devices.CellularGatewayPortForwardingRules("cellularGatewayPortForwardingRulesResource", {
        serial: "string",
        rules: [{
            access: "string",
            allowedIps: ["string"],
            lanIp: "string",
            localPort: "string",
            name: "string",
            protocol: "string",
            publicPort: "string",
            uplink: "string",
        }],
    });
    
    type: meraki:devices:CellularGatewayPortForwardingRules
    properties:
        rules:
            - access: string
              allowedIps:
                - string
              lanIp: string
              localPort: string
              name: string
              protocol: string
              publicPort: string
              uplink: string
        serial: string
    

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

    Serial string
    serial path parameter.
    Rules List<CellularGatewayPortForwardingRulesRule>
    An array of port forwarding params
    Serial string
    serial path parameter.
    Rules []CellularGatewayPortForwardingRulesRuleArgs
    An array of port forwarding params
    serial String
    serial path parameter.
    rules List<CellularGatewayPortForwardingRulesRule>
    An array of port forwarding params
    serial string
    serial path parameter.
    rules CellularGatewayPortForwardingRulesRule[]
    An array of port forwarding params
    serial str
    serial path parameter.
    rules Sequence[CellularGatewayPortForwardingRulesRuleArgs]
    An array of port forwarding params
    serial String
    serial path parameter.
    rules List<Property Map>
    An array of port forwarding params

    Outputs

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

    Get an existing CellularGatewayPortForwardingRules 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?: CellularGatewayPortForwardingRulesState, opts?: CustomResourceOptions): CellularGatewayPortForwardingRules
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            rules: Optional[Sequence[CellularGatewayPortForwardingRulesRuleArgs]] = None,
            serial: Optional[str] = None) -> CellularGatewayPortForwardingRules
    func GetCellularGatewayPortForwardingRules(ctx *Context, name string, id IDInput, state *CellularGatewayPortForwardingRulesState, opts ...ResourceOption) (*CellularGatewayPortForwardingRules, error)
    public static CellularGatewayPortForwardingRules Get(string name, Input<string> id, CellularGatewayPortForwardingRulesState? state, CustomResourceOptions? opts = null)
    public static CellularGatewayPortForwardingRules get(String name, Output<String> id, CellularGatewayPortForwardingRulesState 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:
    Rules List<CellularGatewayPortForwardingRulesRule>
    An array of port forwarding params
    Serial string
    serial path parameter.
    Rules []CellularGatewayPortForwardingRulesRuleArgs
    An array of port forwarding params
    Serial string
    serial path parameter.
    rules List<CellularGatewayPortForwardingRulesRule>
    An array of port forwarding params
    serial String
    serial path parameter.
    rules CellularGatewayPortForwardingRulesRule[]
    An array of port forwarding params
    serial string
    serial path parameter.
    rules Sequence[CellularGatewayPortForwardingRulesRuleArgs]
    An array of port forwarding params
    serial str
    serial path parameter.
    rules List<Property Map>
    An array of port forwarding params
    serial String
    serial path parameter.

    Supporting Types

    CellularGatewayPortForwardingRulesRule, CellularGatewayPortForwardingRulesRuleArgs

    Access string
    any or restricted. Specify the right to make inbound connections on the specified ports or port ranges. If restricted, a list of allowed IPs is mandatory.
    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.
    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
    Access string
    any or restricted. Specify the right to make inbound connections on the specified ports or port ranges. If restricted, a list of allowed IPs is mandatory.
    AllowedIps []string
    An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges.
    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
    access String
    any or restricted. Specify the right to make inbound connections on the specified ports or port ranges. If restricted, a list of allowed IPs is mandatory.
    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.
    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
    access string
    any or restricted. Specify the right to make inbound connections on the specified ports or port ranges. If restricted, a list of allowed IPs is mandatory.
    allowedIps string[]
    An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges.
    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
    access str
    any or restricted. Specify the right to make inbound connections on the specified ports or port ranges. If restricted, a list of allowed IPs is mandatory.
    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.
    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
    access String
    any or restricted. Specify the right to make inbound connections on the specified ports or port ranges. If restricted, a list of allowed IPs is mandatory.
    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.
    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

    Import

    $ pulumi import meraki:devices/cellularGatewayPortForwardingRules:CellularGatewayPortForwardingRules example "serial"
    

    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.4 published on Friday, Jun 14, 2024 by Pulumi