meraki.devices.CellularGatewayLan
Explore with Pulumi AI
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=[{
"ip": "192.168.0.10",
"mac": "0b:00:00:00:00:ac",
"name": "server 1",
}],
reserved_ip_ranges=[{
"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.
- Fixed
Ip List<CellularAssignments Gateway Lan Fixed Ip Assignment> - list of all fixed IP assignments for a single MG
- Reserved
Ip List<CellularRanges Gateway Lan Reserved Ip Range> - list of all reserved IP ranges for a single MG
- Serial string
- serial path parameter.
- Fixed
Ip []CellularAssignments Gateway Lan Fixed Ip Assignment Args - list of all fixed IP assignments for a single MG
- Reserved
Ip []CellularRanges Gateway Lan Reserved Ip Range Args - list of all reserved IP ranges for a single MG
- serial String
- serial path parameter.
- fixed
Ip List<CellularAssignments Gateway Lan Fixed Ip Assignment> - list of all fixed IP assignments for a single MG
- reserved
Ip List<CellularRanges Gateway Lan Reserved Ip Range> - list of all reserved IP ranges for a single MG
- serial string
- serial path parameter.
- fixed
Ip CellularAssignments Gateway Lan Fixed Ip Assignment[] - list of all fixed IP assignments for a single MG
- reserved
Ip CellularRanges Gateway Lan Reserved Ip Range[] - list of all reserved IP ranges for a single MG
- serial str
- serial path parameter.
- fixed_
ip_ Sequence[Cellularassignments Gateway Lan Fixed Ip Assignment Args] - list of all fixed IP assignments for a single MG
- reserved_
ip_ Sequence[Cellularranges Gateway Lan Reserved Ip Range Args] - list of all reserved IP ranges for a single MG
- serial String
- serial path parameter.
- fixed
Ip List<Property Map>Assignments - list of all fixed IP assignments for a single MG
- reserved
Ip List<Property Map>Ranges - 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:
- Device
Lan stringIp - Lan IP of the MG
- Device
Name string - Name of the MG.
- Device
Subnet string - Subnet configuration of the MG.
- Id string
- The provider-assigned unique ID for this managed resource.
- Device
Lan stringIp - Lan IP of the MG
- Device
Name string - Name of the MG.
- Device
Subnet string - Subnet configuration of the MG.
- Id string
- The provider-assigned unique ID for this managed resource.
- device
Lan StringIp - Lan IP of the MG
- device
Name String - Name of the MG.
- device
Subnet String - Subnet configuration of the MG.
- id String
- The provider-assigned unique ID for this managed resource.
- device
Lan stringIp - Lan IP of the MG
- device
Name string - Name of the MG.
- device
Subnet string - Subnet configuration of the MG.
- id string
- The provider-assigned unique ID for this managed resource.
- device_
lan_ strip - 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.
- device
Lan StringIp - Lan IP of the MG
- device
Name String - Name of the MG.
- device
Subnet 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.
- Device
Lan stringIp - Lan IP of the MG
- Device
Name string - Name of the MG.
- Device
Subnet string - Subnet configuration of the MG.
- Fixed
Ip List<CellularAssignments Gateway Lan Fixed Ip Assignment> - list of all fixed IP assignments for a single MG
- Reserved
Ip List<CellularRanges Gateway Lan Reserved Ip Range> - list of all reserved IP ranges for a single MG
- Serial string
- serial path parameter.
- Device
Lan stringIp - Lan IP of the MG
- Device
Name string - Name of the MG.
- Device
Subnet string - Subnet configuration of the MG.
- Fixed
Ip []CellularAssignments Gateway Lan Fixed Ip Assignment Args - list of all fixed IP assignments for a single MG
- Reserved
Ip []CellularRanges Gateway Lan Reserved Ip Range Args - list of all reserved IP ranges for a single MG
- Serial string
- serial path parameter.
- device
Lan StringIp - Lan IP of the MG
- device
Name String - Name of the MG.
- device
Subnet String - Subnet configuration of the MG.
- fixed
Ip List<CellularAssignments Gateway Lan Fixed Ip Assignment> - list of all fixed IP assignments for a single MG
- reserved
Ip List<CellularRanges Gateway Lan Reserved Ip Range> - list of all reserved IP ranges for a single MG
- serial String
- serial path parameter.
- device
Lan stringIp - Lan IP of the MG
- device
Name string - Name of the MG.
- device
Subnet string - Subnet configuration of the MG.
- fixed
Ip CellularAssignments Gateway Lan Fixed Ip Assignment[] - list of all fixed IP assignments for a single MG
- reserved
Ip CellularRanges Gateway Lan Reserved Ip Range[] - list of all reserved IP ranges for a single MG
- serial string
- serial path parameter.
- device_
lan_ strip - Lan IP of the MG
- device_
name str - Name of the MG.
- device_
subnet str - Subnet configuration of the MG.
- fixed_
ip_ Sequence[Cellularassignments Gateway Lan Fixed Ip Assignment Args] - list of all fixed IP assignments for a single MG
- reserved_
ip_ Sequence[Cellularranges Gateway Lan Reserved Ip Range Args] - list of all reserved IP ranges for a single MG
- serial str
- serial path parameter.
- device
Lan StringIp - Lan IP of the MG
- device
Name String - Name of the MG.
- device
Subnet String - Subnet configuration of the MG.
- fixed
Ip List<Property Map>Assignments - list of all fixed IP assignments for a single MG
- reserved
Ip List<Property Map>Ranges - list of all reserved IP ranges for a single MG
- serial String
- serial path parameter.
Supporting Types
CellularGatewayLanFixedIpAssignment, CellularGatewayLanFixedIpAssignmentArgs
CellularGatewayLanReservedIpRange, CellularGatewayLanReservedIpRangeArgs
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.