1. Packages
  2. Cisco Meraki
  3. API Docs
  4. devices
  5. CellularGatewayLan
Cisco Meraki v0.2.10 published on Wednesday, Jul 24, 2024 by Pulumi

meraki.devices.CellularGatewayLan

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.10 published on Wednesday, Jul 24, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.devices.CellularGatewayLan("example", {
        fixedIpAssignments: [{
            ip: "192.168.0.10",
            mac: "0b:00:00:00:00:ac",
            name: "server 1",
        }],
        reservedIpRanges: [{
            comment: "A reserved IP range",
            end: "192.168.1.1",
            start: "192.168.1.0",
        }],
        serial: "string",
    });
    export const merakiDevicesCellularGatewayLanExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.devices.CellularGatewayLan("example",
        fixed_ip_assignments=[meraki.devices.CellularGatewayLanFixedIpAssignmentArgs(
            ip="192.168.0.10",
            mac="0b:00:00:00:00:ac",
            name="server 1",
        )],
        reserved_ip_ranges=[meraki.devices.CellularGatewayLanReservedIpRangeArgs(
            comment="A reserved IP range",
            end="192.168.1.1",
            start="192.168.1.0",
        )],
        serial="string")
    pulumi.export("merakiDevicesCellularGatewayLanExample", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/devices"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := devices.NewCellularGatewayLan(ctx, "example", &devices.CellularGatewayLanArgs{
    			FixedIpAssignments: devices.CellularGatewayLanFixedIpAssignmentArray{
    				&devices.CellularGatewayLanFixedIpAssignmentArgs{
    					Ip:   pulumi.String("192.168.0.10"),
    					Mac:  pulumi.String("0b:00:00:00:00:ac"),
    					Name: pulumi.String("server 1"),
    				},
    			},
    			ReservedIpRanges: devices.CellularGatewayLanReservedIpRangeArray{
    				&devices.CellularGatewayLanReservedIpRangeArgs{
    					Comment: pulumi.String("A reserved IP range"),
    					End:     pulumi.String("192.168.1.1"),
    					Start:   pulumi.String("192.168.1.0"),
    				},
    			},
    			Serial: pulumi.String("string"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiDevicesCellularGatewayLanExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Meraki.Devices.CellularGatewayLan("example", new()
        {
            FixedIpAssignments = new[]
            {
                new Meraki.Devices.Inputs.CellularGatewayLanFixedIpAssignmentArgs
                {
                    Ip = "192.168.0.10",
                    Mac = "0b:00:00:00:00:ac",
                    Name = "server 1",
                },
            },
            ReservedIpRanges = new[]
            {
                new Meraki.Devices.Inputs.CellularGatewayLanReservedIpRangeArgs
                {
                    Comment = "A reserved IP range",
                    End = "192.168.1.1",
                    Start = "192.168.1.0",
                },
            },
            Serial = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiDevicesCellularGatewayLanExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.devices.CellularGatewayLan;
    import com.pulumi.meraki.devices.CellularGatewayLanArgs;
    import com.pulumi.meraki.devices.inputs.CellularGatewayLanFixedIpAssignmentArgs;
    import com.pulumi.meraki.devices.inputs.CellularGatewayLanReservedIpRangeArgs;
    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 CellularGatewayLan("example", CellularGatewayLanArgs.builder()
                .fixedIpAssignments(CellularGatewayLanFixedIpAssignmentArgs.builder()
                    .ip("192.168.0.10")
                    .mac("0b:00:00:00:00:ac")
                    .name("server 1")
                    .build())
                .reservedIpRanges(CellularGatewayLanReservedIpRangeArgs.builder()
                    .comment("A reserved IP range")
                    .end("192.168.1.1")
                    .start("192.168.1.0")
                    .build())
                .serial("string")
                .build());
    
            ctx.export("merakiDevicesCellularGatewayLanExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:devices:CellularGatewayLan
        properties:
          fixedIpAssignments:
            - ip: 192.168.0.10
              mac: 0b:00:00:00:00:ac
              name: server 1
          reservedIpRanges:
            - comment: A reserved IP range
              end: 192.168.1.1
              start: 192.168.1.0
          serial: string
    outputs:
      merakiDevicesCellularGatewayLanExample: ${example}
    

    Create CellularGatewayLan Resource

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

    Constructor syntax

    new CellularGatewayLan(name: string, args: CellularGatewayLanArgs, opts?: CustomResourceOptions);
    @overload
    def CellularGatewayLan(resource_name: str,
                           args: CellularGatewayLanArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CellularGatewayLan(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           serial: Optional[str] = None,
                           fixed_ip_assignments: Optional[Sequence[CellularGatewayLanFixedIpAssignmentArgs]] = None,
                           reserved_ip_ranges: Optional[Sequence[CellularGatewayLanReservedIpRangeArgs]] = None)
    func NewCellularGatewayLan(ctx *Context, name string, args CellularGatewayLanArgs, opts ...ResourceOption) (*CellularGatewayLan, error)
    public CellularGatewayLan(string name, CellularGatewayLanArgs args, CustomResourceOptions? opts = null)
    public CellularGatewayLan(String name, CellularGatewayLanArgs args)
    public CellularGatewayLan(String name, CellularGatewayLanArgs args, CustomResourceOptions options)
    
    type: meraki:devices:CellularGatewayLan
    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 CellularGatewayLanArgs
    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 CellularGatewayLanArgs
    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 CellularGatewayLanArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CellularGatewayLanArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CellularGatewayLanArgs
    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 cellularGatewayLanResource = new Meraki.Devices.CellularGatewayLan("cellularGatewayLanResource", new()
    {
        Serial = "string",
        FixedIpAssignments = new[]
        {
            new Meraki.Devices.Inputs.CellularGatewayLanFixedIpAssignmentArgs
            {
                Ip = "string",
                Mac = "string",
                Name = "string",
            },
        },
        ReservedIpRanges = new[]
        {
            new Meraki.Devices.Inputs.CellularGatewayLanReservedIpRangeArgs
            {
                Comment = "string",
                End = "string",
                Start = "string",
            },
        },
    });
    
    example, err := devices.NewCellularGatewayLan(ctx, "cellularGatewayLanResource", &devices.CellularGatewayLanArgs{
    	Serial: pulumi.String("string"),
    	FixedIpAssignments: devices.CellularGatewayLanFixedIpAssignmentArray{
    		&devices.CellularGatewayLanFixedIpAssignmentArgs{
    			Ip:   pulumi.String("string"),
    			Mac:  pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    	},
    	ReservedIpRanges: devices.CellularGatewayLanReservedIpRangeArray{
    		&devices.CellularGatewayLanReservedIpRangeArgs{
    			Comment: pulumi.String("string"),
    			End:     pulumi.String("string"),
    			Start:   pulumi.String("string"),
    		},
    	},
    })
    
    var cellularGatewayLanResource = new CellularGatewayLan("cellularGatewayLanResource", CellularGatewayLanArgs.builder()
        .serial("string")
        .fixedIpAssignments(CellularGatewayLanFixedIpAssignmentArgs.builder()
            .ip("string")
            .mac("string")
            .name("string")
            .build())
        .reservedIpRanges(CellularGatewayLanReservedIpRangeArgs.builder()
            .comment("string")
            .end("string")
            .start("string")
            .build())
        .build());
    
    cellular_gateway_lan_resource = meraki.devices.CellularGatewayLan("cellularGatewayLanResource",
        serial="string",
        fixed_ip_assignments=[meraki.devices.CellularGatewayLanFixedIpAssignmentArgs(
            ip="string",
            mac="string",
            name="string",
        )],
        reserved_ip_ranges=[meraki.devices.CellularGatewayLanReservedIpRangeArgs(
            comment="string",
            end="string",
            start="string",
        )])
    
    const cellularGatewayLanResource = new meraki.devices.CellularGatewayLan("cellularGatewayLanResource", {
        serial: "string",
        fixedIpAssignments: [{
            ip: "string",
            mac: "string",
            name: "string",
        }],
        reservedIpRanges: [{
            comment: "string",
            end: "string",
            start: "string",
        }],
    });
    
    type: meraki:devices:CellularGatewayLan
    properties:
        fixedIpAssignments:
            - ip: string
              mac: string
              name: string
        reservedIpRanges:
            - comment: string
              end: string
              start: string
        serial: string
    

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

    Serial string
    serial path parameter.
    FixedIpAssignments List<CellularGatewayLanFixedIpAssignment>
    list of all fixed IP assignments for a single MG
    ReservedIpRanges List<CellularGatewayLanReservedIpRange>
    list of all reserved IP ranges for a single MG
    Serial string
    serial path parameter.
    FixedIpAssignments []CellularGatewayLanFixedIpAssignmentArgs
    list of all fixed IP assignments for a single MG
    ReservedIpRanges []CellularGatewayLanReservedIpRangeArgs
    list of all reserved IP ranges for a single MG
    serial String
    serial path parameter.
    fixedIpAssignments List<CellularGatewayLanFixedIpAssignment>
    list of all fixed IP assignments for a single MG
    reservedIpRanges List<CellularGatewayLanReservedIpRange>
    list of all reserved IP ranges for a single MG
    serial string
    serial path parameter.
    fixedIpAssignments CellularGatewayLanFixedIpAssignment[]
    list of all fixed IP assignments for a single MG
    reservedIpRanges CellularGatewayLanReservedIpRange[]
    list of all reserved IP ranges for a single MG
    serial str
    serial path parameter.
    fixed_ip_assignments Sequence[CellularGatewayLanFixedIpAssignmentArgs]
    list of all fixed IP assignments for a single MG
    reserved_ip_ranges Sequence[CellularGatewayLanReservedIpRangeArgs]
    list of all reserved IP ranges for a single MG
    serial String
    serial path parameter.
    fixedIpAssignments List<Property Map>
    list of all fixed IP assignments for a single MG
    reservedIpRanges List<Property Map>
    list of all reserved IP ranges for a single MG

    Outputs

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

    DeviceLanIp string
    Lan IP of the MG
    DeviceName string
    Name of the MG.
    DeviceSubnet string
    Subnet configuration of the MG.
    Id string
    The provider-assigned unique ID for this managed resource.
    DeviceLanIp string
    Lan IP of the MG
    DeviceName string
    Name of the MG.
    DeviceSubnet string
    Subnet configuration of the MG.
    Id string
    The provider-assigned unique ID for this managed resource.
    deviceLanIp String
    Lan IP of the MG
    deviceName String
    Name of the MG.
    deviceSubnet String
    Subnet configuration of the MG.
    id String
    The provider-assigned unique ID for this managed resource.
    deviceLanIp string
    Lan IP of the MG
    deviceName string
    Name of the MG.
    deviceSubnet string
    Subnet configuration of the MG.
    id string
    The provider-assigned unique ID for this managed resource.
    device_lan_ip str
    Lan IP of the MG
    device_name str
    Name of the MG.
    device_subnet str
    Subnet configuration of the MG.
    id str
    The provider-assigned unique ID for this managed resource.
    deviceLanIp String
    Lan IP of the MG
    deviceName String
    Name of the MG.
    deviceSubnet String
    Subnet configuration of the MG.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CellularGatewayLan Resource

    Get an existing CellularGatewayLan 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?: CellularGatewayLanState, opts?: CustomResourceOptions): CellularGatewayLan
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            device_lan_ip: Optional[str] = None,
            device_name: Optional[str] = None,
            device_subnet: Optional[str] = None,
            fixed_ip_assignments: Optional[Sequence[CellularGatewayLanFixedIpAssignmentArgs]] = None,
            reserved_ip_ranges: Optional[Sequence[CellularGatewayLanReservedIpRangeArgs]] = None,
            serial: Optional[str] = None) -> CellularGatewayLan
    func GetCellularGatewayLan(ctx *Context, name string, id IDInput, state *CellularGatewayLanState, opts ...ResourceOption) (*CellularGatewayLan, error)
    public static CellularGatewayLan Get(string name, Input<string> id, CellularGatewayLanState? state, CustomResourceOptions? opts = null)
    public static CellularGatewayLan get(String name, Output<String> id, CellularGatewayLanState 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:
    DeviceLanIp string
    Lan IP of the MG
    DeviceName string
    Name of the MG.
    DeviceSubnet string
    Subnet configuration of the MG.
    FixedIpAssignments List<CellularGatewayLanFixedIpAssignment>
    list of all fixed IP assignments for a single MG
    ReservedIpRanges List<CellularGatewayLanReservedIpRange>
    list of all reserved IP ranges for a single MG
    Serial string
    serial path parameter.
    DeviceLanIp string
    Lan IP of the MG
    DeviceName string
    Name of the MG.
    DeviceSubnet string
    Subnet configuration of the MG.
    FixedIpAssignments []CellularGatewayLanFixedIpAssignmentArgs
    list of all fixed IP assignments for a single MG
    ReservedIpRanges []CellularGatewayLanReservedIpRangeArgs
    list of all reserved IP ranges for a single MG
    Serial string
    serial path parameter.
    deviceLanIp String
    Lan IP of the MG
    deviceName String
    Name of the MG.
    deviceSubnet String
    Subnet configuration of the MG.
    fixedIpAssignments List<CellularGatewayLanFixedIpAssignment>
    list of all fixed IP assignments for a single MG
    reservedIpRanges List<CellularGatewayLanReservedIpRange>
    list of all reserved IP ranges for a single MG
    serial String
    serial path parameter.
    deviceLanIp string
    Lan IP of the MG
    deviceName string
    Name of the MG.
    deviceSubnet string
    Subnet configuration of the MG.
    fixedIpAssignments CellularGatewayLanFixedIpAssignment[]
    list of all fixed IP assignments for a single MG
    reservedIpRanges CellularGatewayLanReservedIpRange[]
    list of all reserved IP ranges for a single MG
    serial string
    serial path parameter.
    device_lan_ip str
    Lan IP of the MG
    device_name str
    Name of the MG.
    device_subnet str
    Subnet configuration of the MG.
    fixed_ip_assignments Sequence[CellularGatewayLanFixedIpAssignmentArgs]
    list of all fixed IP assignments for a single MG
    reserved_ip_ranges Sequence[CellularGatewayLanReservedIpRangeArgs]
    list of all reserved IP ranges for a single MG
    serial str
    serial path parameter.
    deviceLanIp String
    Lan IP of the MG
    deviceName String
    Name of the MG.
    deviceSubnet String
    Subnet configuration of the MG.
    fixedIpAssignments List<Property Map>
    list of all fixed IP assignments for a single MG
    reservedIpRanges List<Property Map>
    list of all reserved IP ranges for a single MG
    serial String
    serial path parameter.

    Supporting Types

    CellularGatewayLanFixedIpAssignment, CellularGatewayLanFixedIpAssignmentArgs

    Ip string
    The IP address you want to assign to a specific server or device
    Mac string
    The MAC address of the server or device that hosts the internal resource that you wish to receive the specified IP address
    Name string
    A descriptive name of the assignment
    Ip string
    The IP address you want to assign to a specific server or device
    Mac string
    The MAC address of the server or device that hosts the internal resource that you wish to receive the specified IP address
    Name string
    A descriptive name of the assignment
    ip String
    The IP address you want to assign to a specific server or device
    mac String
    The MAC address of the server or device that hosts the internal resource that you wish to receive the specified IP address
    name String
    A descriptive name of the assignment
    ip string
    The IP address you want to assign to a specific server or device
    mac string
    The MAC address of the server or device that hosts the internal resource that you wish to receive the specified IP address
    name string
    A descriptive name of the assignment
    ip str
    The IP address you want to assign to a specific server or device
    mac str
    The MAC address of the server or device that hosts the internal resource that you wish to receive the specified IP address
    name str
    A descriptive name of the assignment
    ip String
    The IP address you want to assign to a specific server or device
    mac String
    The MAC address of the server or device that hosts the internal resource that you wish to receive the specified IP address
    name String
    A descriptive name of the assignment

    CellularGatewayLanReservedIpRange, CellularGatewayLanReservedIpRangeArgs

    Comment string
    Comment explaining the reserved IP range
    End string
    Ending IP included in the reserved range of IPs
    Start string
    Starting IP included in the reserved range of IPs
    Comment string
    Comment explaining the reserved IP range
    End string
    Ending IP included in the reserved range of IPs
    Start string
    Starting IP included in the reserved range of IPs
    comment String
    Comment explaining the reserved IP range
    end String
    Ending IP included in the reserved range of IPs
    start String
    Starting IP included in the reserved range of IPs
    comment string
    Comment explaining the reserved IP range
    end string
    Ending IP included in the reserved range of IPs
    start string
    Starting IP included in the reserved range of IPs
    comment str
    Comment explaining the reserved IP range
    end str
    Ending IP included in the reserved range of IPs
    start str
    Starting IP included in the reserved range of IPs
    comment String
    Comment explaining the reserved IP range
    end String
    Ending IP included in the reserved range of IPs
    start String
    Starting IP included in the reserved range of IPs

    Import

    $ pulumi import meraki:devices/cellularGatewayLan:CellularGatewayLan 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.10 published on Wednesday, Jul 24, 2024 by Pulumi