meraki.devices.SwitchRoutingInterfacesDhcp
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.devices.SwitchRoutingInterfacesDhcp("example", {
bootFileName: "home_boot_file",
bootNextServer: "1.2.3.4",
bootOptionsEnabled: true,
dhcpLeaseTime: "1 day",
dhcpMode: "dhcpServer",
dhcpOptions: [{
code: "5",
type: "text",
value: "five",
}],
dhcpRelayServerIps: ["1.2.3.4"],
dnsCustomNameservers: ["8.8.8.8, 8.8.4.4"],
dnsNameserversOption: "custom",
fixedIpAssignments: [{
ip: "192.168.1.12",
mac: "22:33:44:55:66:77",
name: "Cisco Meraki valued client",
}],
interfaceId: "string",
reservedIpRanges: [{
comment: "A reserved IP range",
end: "192.168.1.10",
start: "192.168.1.1",
}],
serial: "string",
});
export const merakiDevicesSwitchRoutingInterfacesDhcpExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.devices.SwitchRoutingInterfacesDhcp("example",
boot_file_name="home_boot_file",
boot_next_server="1.2.3.4",
boot_options_enabled=True,
dhcp_lease_time="1 day",
dhcp_mode="dhcpServer",
dhcp_options=[{
"code": "5",
"type": "text",
"value": "five",
}],
dhcp_relay_server_ips=["1.2.3.4"],
dns_custom_nameservers=["8.8.8.8, 8.8.4.4"],
dns_nameservers_option="custom",
fixed_ip_assignments=[{
"ip": "192.168.1.12",
"mac": "22:33:44:55:66:77",
"name": "Cisco Meraki valued client",
}],
interface_id="string",
reserved_ip_ranges=[{
"comment": "A reserved IP range",
"end": "192.168.1.10",
"start": "192.168.1.1",
}],
serial="string")
pulumi.export("merakiDevicesSwitchRoutingInterfacesDhcpExample", 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.NewSwitchRoutingInterfacesDhcp(ctx, "example", &devices.SwitchRoutingInterfacesDhcpArgs{
BootFileName: pulumi.String("home_boot_file"),
BootNextServer: pulumi.String("1.2.3.4"),
BootOptionsEnabled: pulumi.Bool(true),
DhcpLeaseTime: pulumi.String("1 day"),
DhcpMode: pulumi.String("dhcpServer"),
DhcpOptions: devices.SwitchRoutingInterfacesDhcpDhcpOptionArray{
&devices.SwitchRoutingInterfacesDhcpDhcpOptionArgs{
Code: pulumi.String("5"),
Type: pulumi.String("text"),
Value: pulumi.String("five"),
},
},
DhcpRelayServerIps: pulumi.StringArray{
pulumi.String("1.2.3.4"),
},
DnsCustomNameservers: pulumi.StringArray{
pulumi.String("8.8.8.8, 8.8.4.4"),
},
DnsNameserversOption: pulumi.String("custom"),
FixedIpAssignments: devices.SwitchRoutingInterfacesDhcpFixedIpAssignmentArray{
&devices.SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs{
Ip: pulumi.String("192.168.1.12"),
Mac: pulumi.String("22:33:44:55:66:77"),
Name: pulumi.String("Cisco Meraki valued client"),
},
},
InterfaceId: pulumi.String("string"),
ReservedIpRanges: devices.SwitchRoutingInterfacesDhcpReservedIpRangeArray{
&devices.SwitchRoutingInterfacesDhcpReservedIpRangeArgs{
Comment: pulumi.String("A reserved IP range"),
End: pulumi.String("192.168.1.10"),
Start: pulumi.String("192.168.1.1"),
},
},
Serial: pulumi.String("string"),
})
if err != nil {
return err
}
ctx.Export("merakiDevicesSwitchRoutingInterfacesDhcpExample", 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.SwitchRoutingInterfacesDhcp("example", new()
{
BootFileName = "home_boot_file",
BootNextServer = "1.2.3.4",
BootOptionsEnabled = true,
DhcpLeaseTime = "1 day",
DhcpMode = "dhcpServer",
DhcpOptions = new[]
{
new Meraki.Devices.Inputs.SwitchRoutingInterfacesDhcpDhcpOptionArgs
{
Code = "5",
Type = "text",
Value = "five",
},
},
DhcpRelayServerIps = new[]
{
"1.2.3.4",
},
DnsCustomNameservers = new[]
{
"8.8.8.8, 8.8.4.4",
},
DnsNameserversOption = "custom",
FixedIpAssignments = new[]
{
new Meraki.Devices.Inputs.SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs
{
Ip = "192.168.1.12",
Mac = "22:33:44:55:66:77",
Name = "Cisco Meraki valued client",
},
},
InterfaceId = "string",
ReservedIpRanges = new[]
{
new Meraki.Devices.Inputs.SwitchRoutingInterfacesDhcpReservedIpRangeArgs
{
Comment = "A reserved IP range",
End = "192.168.1.10",
Start = "192.168.1.1",
},
},
Serial = "string",
});
return new Dictionary<string, object?>
{
["merakiDevicesSwitchRoutingInterfacesDhcpExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.devices.SwitchRoutingInterfacesDhcp;
import com.pulumi.meraki.devices.SwitchRoutingInterfacesDhcpArgs;
import com.pulumi.meraki.devices.inputs.SwitchRoutingInterfacesDhcpDhcpOptionArgs;
import com.pulumi.meraki.devices.inputs.SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs;
import com.pulumi.meraki.devices.inputs.SwitchRoutingInterfacesDhcpReservedIpRangeArgs;
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 SwitchRoutingInterfacesDhcp("example", SwitchRoutingInterfacesDhcpArgs.builder()
.bootFileName("home_boot_file")
.bootNextServer("1.2.3.4")
.bootOptionsEnabled(true)
.dhcpLeaseTime("1 day")
.dhcpMode("dhcpServer")
.dhcpOptions(SwitchRoutingInterfacesDhcpDhcpOptionArgs.builder()
.code("5")
.type("text")
.value("five")
.build())
.dhcpRelayServerIps("1.2.3.4")
.dnsCustomNameservers("8.8.8.8, 8.8.4.4")
.dnsNameserversOption("custom")
.fixedIpAssignments(SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs.builder()
.ip("192.168.1.12")
.mac("22:33:44:55:66:77")
.name("Cisco Meraki valued client")
.build())
.interfaceId("string")
.reservedIpRanges(SwitchRoutingInterfacesDhcpReservedIpRangeArgs.builder()
.comment("A reserved IP range")
.end("192.168.1.10")
.start("192.168.1.1")
.build())
.serial("string")
.build());
ctx.export("merakiDevicesSwitchRoutingInterfacesDhcpExample", example);
}
}
resources:
example:
type: meraki:devices:SwitchRoutingInterfacesDhcp
properties:
bootFileName: home_boot_file
bootNextServer: 1.2.3.4
bootOptionsEnabled: true
dhcpLeaseTime: 1 day
dhcpMode: dhcpServer
dhcpOptions:
- code: '5'
type: text
value: five
dhcpRelayServerIps:
- 1.2.3.4
dnsCustomNameservers:
- 8.8.8.8, 8.8.4.4
dnsNameserversOption: custom
fixedIpAssignments:
- ip: 192.168.1.12
mac: 22:33:44:55:66:77
name: Cisco Meraki valued client
interfaceId: string
reservedIpRanges:
- comment: A reserved IP range
end: 192.168.1.10
start: 192.168.1.1
serial: string
outputs:
merakiDevicesSwitchRoutingInterfacesDhcpExample: ${example}
Create SwitchRoutingInterfacesDhcp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SwitchRoutingInterfacesDhcp(name: string, args: SwitchRoutingInterfacesDhcpArgs, opts?: CustomResourceOptions);
@overload
def SwitchRoutingInterfacesDhcp(resource_name: str,
args: SwitchRoutingInterfacesDhcpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SwitchRoutingInterfacesDhcp(resource_name: str,
opts: Optional[ResourceOptions] = None,
interface_id: Optional[str] = None,
serial: Optional[str] = None,
dhcp_relay_server_ips: Optional[Sequence[str]] = None,
dhcp_lease_time: Optional[str] = None,
dhcp_mode: Optional[str] = None,
dhcp_options: Optional[Sequence[SwitchRoutingInterfacesDhcpDhcpOptionArgs]] = None,
boot_file_name: Optional[str] = None,
dns_custom_nameservers: Optional[Sequence[str]] = None,
dns_nameservers_option: Optional[str] = None,
fixed_ip_assignments: Optional[Sequence[SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs]] = None,
boot_options_enabled: Optional[bool] = None,
reserved_ip_ranges: Optional[Sequence[SwitchRoutingInterfacesDhcpReservedIpRangeArgs]] = None,
boot_next_server: Optional[str] = None)
func NewSwitchRoutingInterfacesDhcp(ctx *Context, name string, args SwitchRoutingInterfacesDhcpArgs, opts ...ResourceOption) (*SwitchRoutingInterfacesDhcp, error)
public SwitchRoutingInterfacesDhcp(string name, SwitchRoutingInterfacesDhcpArgs args, CustomResourceOptions? opts = null)
public SwitchRoutingInterfacesDhcp(String name, SwitchRoutingInterfacesDhcpArgs args)
public SwitchRoutingInterfacesDhcp(String name, SwitchRoutingInterfacesDhcpArgs args, CustomResourceOptions options)
type: meraki:devices:SwitchRoutingInterfacesDhcp
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 SwitchRoutingInterfacesDhcpArgs
- 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 SwitchRoutingInterfacesDhcpArgs
- 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 SwitchRoutingInterfacesDhcpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SwitchRoutingInterfacesDhcpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SwitchRoutingInterfacesDhcpArgs
- 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 switchRoutingInterfacesDhcpResource = new Meraki.Devices.SwitchRoutingInterfacesDhcp("switchRoutingInterfacesDhcpResource", new()
{
InterfaceId = "string",
Serial = "string",
DhcpRelayServerIps = new[]
{
"string",
},
DhcpLeaseTime = "string",
DhcpMode = "string",
DhcpOptions = new[]
{
new Meraki.Devices.Inputs.SwitchRoutingInterfacesDhcpDhcpOptionArgs
{
Code = "string",
Type = "string",
Value = "string",
},
},
BootFileName = "string",
DnsCustomNameservers = new[]
{
"string",
},
DnsNameserversOption = "string",
FixedIpAssignments = new[]
{
new Meraki.Devices.Inputs.SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs
{
Ip = "string",
Mac = "string",
Name = "string",
},
},
BootOptionsEnabled = false,
ReservedIpRanges = new[]
{
new Meraki.Devices.Inputs.SwitchRoutingInterfacesDhcpReservedIpRangeArgs
{
Comment = "string",
End = "string",
Start = "string",
},
},
BootNextServer = "string",
});
example, err := devices.NewSwitchRoutingInterfacesDhcp(ctx, "switchRoutingInterfacesDhcpResource", &devices.SwitchRoutingInterfacesDhcpArgs{
InterfaceId: pulumi.String("string"),
Serial: pulumi.String("string"),
DhcpRelayServerIps: pulumi.StringArray{
pulumi.String("string"),
},
DhcpLeaseTime: pulumi.String("string"),
DhcpMode: pulumi.String("string"),
DhcpOptions: devices.SwitchRoutingInterfacesDhcpDhcpOptionArray{
&devices.SwitchRoutingInterfacesDhcpDhcpOptionArgs{
Code: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
BootFileName: pulumi.String("string"),
DnsCustomNameservers: pulumi.StringArray{
pulumi.String("string"),
},
DnsNameserversOption: pulumi.String("string"),
FixedIpAssignments: devices.SwitchRoutingInterfacesDhcpFixedIpAssignmentArray{
&devices.SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs{
Ip: pulumi.String("string"),
Mac: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
BootOptionsEnabled: pulumi.Bool(false),
ReservedIpRanges: devices.SwitchRoutingInterfacesDhcpReservedIpRangeArray{
&devices.SwitchRoutingInterfacesDhcpReservedIpRangeArgs{
Comment: pulumi.String("string"),
End: pulumi.String("string"),
Start: pulumi.String("string"),
},
},
BootNextServer: pulumi.String("string"),
})
var switchRoutingInterfacesDhcpResource = new SwitchRoutingInterfacesDhcp("switchRoutingInterfacesDhcpResource", SwitchRoutingInterfacesDhcpArgs.builder()
.interfaceId("string")
.serial("string")
.dhcpRelayServerIps("string")
.dhcpLeaseTime("string")
.dhcpMode("string")
.dhcpOptions(SwitchRoutingInterfacesDhcpDhcpOptionArgs.builder()
.code("string")
.type("string")
.value("string")
.build())
.bootFileName("string")
.dnsCustomNameservers("string")
.dnsNameserversOption("string")
.fixedIpAssignments(SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs.builder()
.ip("string")
.mac("string")
.name("string")
.build())
.bootOptionsEnabled(false)
.reservedIpRanges(SwitchRoutingInterfacesDhcpReservedIpRangeArgs.builder()
.comment("string")
.end("string")
.start("string")
.build())
.bootNextServer("string")
.build());
switch_routing_interfaces_dhcp_resource = meraki.devices.SwitchRoutingInterfacesDhcp("switchRoutingInterfacesDhcpResource",
interface_id="string",
serial="string",
dhcp_relay_server_ips=["string"],
dhcp_lease_time="string",
dhcp_mode="string",
dhcp_options=[{
"code": "string",
"type": "string",
"value": "string",
}],
boot_file_name="string",
dns_custom_nameservers=["string"],
dns_nameservers_option="string",
fixed_ip_assignments=[{
"ip": "string",
"mac": "string",
"name": "string",
}],
boot_options_enabled=False,
reserved_ip_ranges=[{
"comment": "string",
"end": "string",
"start": "string",
}],
boot_next_server="string")
const switchRoutingInterfacesDhcpResource = new meraki.devices.SwitchRoutingInterfacesDhcp("switchRoutingInterfacesDhcpResource", {
interfaceId: "string",
serial: "string",
dhcpRelayServerIps: ["string"],
dhcpLeaseTime: "string",
dhcpMode: "string",
dhcpOptions: [{
code: "string",
type: "string",
value: "string",
}],
bootFileName: "string",
dnsCustomNameservers: ["string"],
dnsNameserversOption: "string",
fixedIpAssignments: [{
ip: "string",
mac: "string",
name: "string",
}],
bootOptionsEnabled: false,
reservedIpRanges: [{
comment: "string",
end: "string",
start: "string",
}],
bootNextServer: "string",
});
type: meraki:devices:SwitchRoutingInterfacesDhcp
properties:
bootFileName: string
bootNextServer: string
bootOptionsEnabled: false
dhcpLeaseTime: string
dhcpMode: string
dhcpOptions:
- code: string
type: string
value: string
dhcpRelayServerIps:
- string
dnsCustomNameservers:
- string
dnsNameserversOption: string
fixedIpAssignments:
- ip: string
mac: string
name: string
interfaceId: string
reservedIpRanges:
- comment: string
end: string
start: string
serial: string
SwitchRoutingInterfacesDhcp 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 SwitchRoutingInterfacesDhcp resource accepts the following input properties:
- Interface
Id string - interfaceId path parameter. Interface ID
- Serial string
- serial path parameter.
- Boot
File stringName - The PXE boot server file name for the DHCP server running on the switch stack interface
- Boot
Next stringServer - The PXE boot server IP for the DHCP server running on the switch stack interface
- Boot
Options boolEnabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- Dhcp
Lease stringTime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- Dhcp
Mode string - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- Dhcp
Options List<SwitchRouting Interfaces Dhcp Dhcp Option> - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- Dhcp
Relay List<string>Server Ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- Dns
Custom List<string>Nameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- Dns
Nameservers stringOption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- Fixed
Ip List<SwitchAssignments Routing Interfaces Dhcp Fixed Ip Assignment> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- Reserved
Ip List<SwitchRanges Routing Interfaces Dhcp Reserved Ip Range> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- Interface
Id string - interfaceId path parameter. Interface ID
- Serial string
- serial path parameter.
- Boot
File stringName - The PXE boot server file name for the DHCP server running on the switch stack interface
- Boot
Next stringServer - The PXE boot server IP for the DHCP server running on the switch stack interface
- Boot
Options boolEnabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- Dhcp
Lease stringTime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- Dhcp
Mode string - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- Dhcp
Options []SwitchRouting Interfaces Dhcp Dhcp Option Args - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- Dhcp
Relay []stringServer Ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- Dns
Custom []stringNameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- Dns
Nameservers stringOption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- Fixed
Ip []SwitchAssignments Routing Interfaces Dhcp Fixed Ip Assignment Args - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- Reserved
Ip []SwitchRanges Routing Interfaces Dhcp Reserved Ip Range Args - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- interface
Id String - interfaceId path parameter. Interface ID
- serial String
- serial path parameter.
- boot
File StringName - The PXE boot server file name for the DHCP server running on the switch stack interface
- boot
Next StringServer - The PXE boot server IP for the DHCP server running on the switch stack interface
- boot
Options BooleanEnabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- dhcp
Lease StringTime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- dhcp
Mode String - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- dhcp
Options List<SwitchRouting Interfaces Dhcp Dhcp Option> - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- dhcp
Relay List<String>Server Ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- dns
Custom List<String>Nameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- dns
Nameservers StringOption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- fixed
Ip List<SwitchAssignments Routing Interfaces Dhcp Fixed Ip Assignment> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- reserved
Ip List<SwitchRanges Routing Interfaces Dhcp Reserved Ip Range> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- interface
Id string - interfaceId path parameter. Interface ID
- serial string
- serial path parameter.
- boot
File stringName - The PXE boot server file name for the DHCP server running on the switch stack interface
- boot
Next stringServer - The PXE boot server IP for the DHCP server running on the switch stack interface
- boot
Options booleanEnabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- dhcp
Lease stringTime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- dhcp
Mode string - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- dhcp
Options SwitchRouting Interfaces Dhcp Dhcp Option[] - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- dhcp
Relay string[]Server Ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- dns
Custom string[]Nameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- dns
Nameservers stringOption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- fixed
Ip SwitchAssignments Routing Interfaces Dhcp Fixed Ip Assignment[] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- reserved
Ip SwitchRanges Routing Interfaces Dhcp Reserved Ip Range[] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- interface_
id str - interfaceId path parameter. Interface ID
- serial str
- serial path parameter.
- boot_
file_ strname - The PXE boot server file name for the DHCP server running on the switch stack interface
- boot_
next_ strserver - The PXE boot server IP for the DHCP server running on the switch stack interface
- boot_
options_ boolenabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- dhcp_
lease_ strtime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- dhcp_
mode str - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- dhcp_
options Sequence[SwitchRouting Interfaces Dhcp Dhcp Option Args] - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- dhcp_
relay_ Sequence[str]server_ ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- dns_
custom_ Sequence[str]nameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- dns_
nameservers_ stroption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- fixed_
ip_ Sequence[Switchassignments Routing Interfaces Dhcp Fixed Ip Assignment Args] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- reserved_
ip_ Sequence[Switchranges Routing Interfaces Dhcp Reserved Ip Range Args] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- interface
Id String - interfaceId path parameter. Interface ID
- serial String
- serial path parameter.
- boot
File StringName - The PXE boot server file name for the DHCP server running on the switch stack interface
- boot
Next StringServer - The PXE boot server IP for the DHCP server running on the switch stack interface
- boot
Options BooleanEnabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- dhcp
Lease StringTime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- dhcp
Mode String - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- dhcp
Options List<Property Map> - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- dhcp
Relay List<String>Server Ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- dns
Custom List<String>Nameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- dns
Nameservers StringOption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- fixed
Ip List<Property Map>Assignments - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- reserved
Ip List<Property Map>Ranges - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
Outputs
All input properties are implicitly available as output properties. Additionally, the SwitchRoutingInterfacesDhcp 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 SwitchRoutingInterfacesDhcp Resource
Get an existing SwitchRoutingInterfacesDhcp 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?: SwitchRoutingInterfacesDhcpState, opts?: CustomResourceOptions): SwitchRoutingInterfacesDhcp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
boot_file_name: Optional[str] = None,
boot_next_server: Optional[str] = None,
boot_options_enabled: Optional[bool] = None,
dhcp_lease_time: Optional[str] = None,
dhcp_mode: Optional[str] = None,
dhcp_options: Optional[Sequence[SwitchRoutingInterfacesDhcpDhcpOptionArgs]] = None,
dhcp_relay_server_ips: Optional[Sequence[str]] = None,
dns_custom_nameservers: Optional[Sequence[str]] = None,
dns_nameservers_option: Optional[str] = None,
fixed_ip_assignments: Optional[Sequence[SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs]] = None,
interface_id: Optional[str] = None,
reserved_ip_ranges: Optional[Sequence[SwitchRoutingInterfacesDhcpReservedIpRangeArgs]] = None,
serial: Optional[str] = None) -> SwitchRoutingInterfacesDhcp
func GetSwitchRoutingInterfacesDhcp(ctx *Context, name string, id IDInput, state *SwitchRoutingInterfacesDhcpState, opts ...ResourceOption) (*SwitchRoutingInterfacesDhcp, error)
public static SwitchRoutingInterfacesDhcp Get(string name, Input<string> id, SwitchRoutingInterfacesDhcpState? state, CustomResourceOptions? opts = null)
public static SwitchRoutingInterfacesDhcp get(String name, Output<String> id, SwitchRoutingInterfacesDhcpState 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.
- Boot
File stringName - The PXE boot server file name for the DHCP server running on the switch stack interface
- Boot
Next stringServer - The PXE boot server IP for the DHCP server running on the switch stack interface
- Boot
Options boolEnabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- Dhcp
Lease stringTime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- Dhcp
Mode string - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- Dhcp
Options List<SwitchRouting Interfaces Dhcp Dhcp Option> - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- Dhcp
Relay List<string>Server Ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- Dns
Custom List<string>Nameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- Dns
Nameservers stringOption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- Fixed
Ip List<SwitchAssignments Routing Interfaces Dhcp Fixed Ip Assignment> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- Interface
Id string - interfaceId path parameter. Interface ID
- Reserved
Ip List<SwitchRanges Routing Interfaces Dhcp Reserved Ip Range> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- Serial string
- serial path parameter.
- Boot
File stringName - The PXE boot server file name for the DHCP server running on the switch stack interface
- Boot
Next stringServer - The PXE boot server IP for the DHCP server running on the switch stack interface
- Boot
Options boolEnabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- Dhcp
Lease stringTime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- Dhcp
Mode string - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- Dhcp
Options []SwitchRouting Interfaces Dhcp Dhcp Option Args - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- Dhcp
Relay []stringServer Ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- Dns
Custom []stringNameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- Dns
Nameservers stringOption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- Fixed
Ip []SwitchAssignments Routing Interfaces Dhcp Fixed Ip Assignment Args - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- Interface
Id string - interfaceId path parameter. Interface ID
- Reserved
Ip []SwitchRanges Routing Interfaces Dhcp Reserved Ip Range Args - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- Serial string
- serial path parameter.
- boot
File StringName - The PXE boot server file name for the DHCP server running on the switch stack interface
- boot
Next StringServer - The PXE boot server IP for the DHCP server running on the switch stack interface
- boot
Options BooleanEnabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- dhcp
Lease StringTime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- dhcp
Mode String - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- dhcp
Options List<SwitchRouting Interfaces Dhcp Dhcp Option> - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- dhcp
Relay List<String>Server Ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- dns
Custom List<String>Nameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- dns
Nameservers StringOption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- fixed
Ip List<SwitchAssignments Routing Interfaces Dhcp Fixed Ip Assignment> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- interface
Id String - interfaceId path parameter. Interface ID
- reserved
Ip List<SwitchRanges Routing Interfaces Dhcp Reserved Ip Range> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- serial String
- serial path parameter.
- boot
File stringName - The PXE boot server file name for the DHCP server running on the switch stack interface
- boot
Next stringServer - The PXE boot server IP for the DHCP server running on the switch stack interface
- boot
Options booleanEnabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- dhcp
Lease stringTime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- dhcp
Mode string - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- dhcp
Options SwitchRouting Interfaces Dhcp Dhcp Option[] - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- dhcp
Relay string[]Server Ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- dns
Custom string[]Nameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- dns
Nameservers stringOption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- fixed
Ip SwitchAssignments Routing Interfaces Dhcp Fixed Ip Assignment[] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- interface
Id string - interfaceId path parameter. Interface ID
- reserved
Ip SwitchRanges Routing Interfaces Dhcp Reserved Ip Range[] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- serial string
- serial path parameter.
- boot_
file_ strname - The PXE boot server file name for the DHCP server running on the switch stack interface
- boot_
next_ strserver - The PXE boot server IP for the DHCP server running on the switch stack interface
- boot_
options_ boolenabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- dhcp_
lease_ strtime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- dhcp_
mode str - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- dhcp_
options Sequence[SwitchRouting Interfaces Dhcp Dhcp Option Args] - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- dhcp_
relay_ Sequence[str]server_ ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- dns_
custom_ Sequence[str]nameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- dns_
nameservers_ stroption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- fixed_
ip_ Sequence[Switchassignments Routing Interfaces Dhcp Fixed Ip Assignment Args] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- interface_
id str - interfaceId path parameter. Interface ID
- reserved_
ip_ Sequence[Switchranges Routing Interfaces Dhcp Reserved Ip Range Args] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- serial str
- serial path parameter.
- boot
File StringName - The PXE boot server file name for the DHCP server running on the switch stack interface
- boot
Next StringServer - The PXE boot server IP for the DHCP server running on the switch stack interface
- boot
Options BooleanEnabled - Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
- dhcp
Lease StringTime - The DHCP lease time config for the dhcp server running on the switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week')
- dhcp
Mode String - The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
- dhcp
Options List<Property Map> - Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
- dhcp
Relay List<String>Server Ips - The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
- dns
Custom List<String>Nameservers - The DHCP name server IPs when DHCP name server option is 'custom'
- dns
Nameservers StringOption - The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
- fixed
Ip List<Property Map>Assignments - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- interface
Id String - interfaceId path parameter. Interface ID
- reserved
Ip List<Property Map>Ranges - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- serial String
- serial path parameter.
Supporting Types
SwitchRoutingInterfacesDhcpDhcpOption, SwitchRoutingInterfacesDhcpDhcpOptionArgs
SwitchRoutingInterfacesDhcpFixedIpAssignment, SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs
SwitchRoutingInterfacesDhcpReservedIpRange, SwitchRoutingInterfacesDhcpReservedIpRangeArgs
Import
$ pulumi import meraki:devices/switchRoutingInterfacesDhcp:SwitchRoutingInterfacesDhcp example "interface_id,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.