1. Packages
  2. Cisco Meraki Provider
  3. API Docs
  4. devices
  5. SwitchRoutingInterfacesDhcp
Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi

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;
Copy
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)
Copy
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
	})
}
Copy
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,
    };
});
Copy
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);
    }
}
Copy
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}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. SwitchRoutingInterfacesDhcpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. SwitchRoutingInterfacesDhcpArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SwitchRoutingInterfacesDhcpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
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",
});
Copy
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
Copy

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:

InterfaceId This property is required. string
interfaceId path parameter. Interface ID
Serial This property is required. string
serial path parameter.
BootFileName string
The PXE boot server file name for the DHCP server running on the switch stack interface
BootNextServer string
The PXE boot server IP for the DHCP server running on the switch stack interface
BootOptionsEnabled bool
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
DhcpLeaseTime string
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')
DhcpMode string
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
DhcpOptions List<SwitchRoutingInterfacesDhcpDhcpOption>
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
DhcpRelayServerIps List<string>
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
DnsCustomNameservers List<string>
The DHCP name server IPs when DHCP name server option is 'custom'
DnsNameserversOption string
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
FixedIpAssignments List<SwitchRoutingInterfacesDhcpFixedIpAssignment>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
ReservedIpRanges List<SwitchRoutingInterfacesDhcpReservedIpRange>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
InterfaceId This property is required. string
interfaceId path parameter. Interface ID
Serial This property is required. string
serial path parameter.
BootFileName string
The PXE boot server file name for the DHCP server running on the switch stack interface
BootNextServer string
The PXE boot server IP for the DHCP server running on the switch stack interface
BootOptionsEnabled bool
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
DhcpLeaseTime string
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')
DhcpMode string
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
DhcpOptions []SwitchRoutingInterfacesDhcpDhcpOptionArgs
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
DhcpRelayServerIps []string
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
DnsCustomNameservers []string
The DHCP name server IPs when DHCP name server option is 'custom'
DnsNameserversOption string
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
FixedIpAssignments []SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
ReservedIpRanges []SwitchRoutingInterfacesDhcpReservedIpRangeArgs
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
interfaceId This property is required. String
interfaceId path parameter. Interface ID
serial This property is required. String
serial path parameter.
bootFileName String
The PXE boot server file name for the DHCP server running on the switch stack interface
bootNextServer String
The PXE boot server IP for the DHCP server running on the switch stack interface
bootOptionsEnabled Boolean
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcpLeaseTime String
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')
dhcpMode String
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
dhcpOptions List<SwitchRoutingInterfacesDhcpDhcpOption>
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcpRelayServerIps List<String>
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dnsCustomNameservers List<String>
The DHCP name server IPs when DHCP name server option is 'custom'
dnsNameserversOption String
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixedIpAssignments List<SwitchRoutingInterfacesDhcpFixedIpAssignment>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
reservedIpRanges List<SwitchRoutingInterfacesDhcpReservedIpRange>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
interfaceId This property is required. string
interfaceId path parameter. Interface ID
serial This property is required. string
serial path parameter.
bootFileName string
The PXE boot server file name for the DHCP server running on the switch stack interface
bootNextServer string
The PXE boot server IP for the DHCP server running on the switch stack interface
bootOptionsEnabled boolean
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcpLeaseTime string
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')
dhcpMode string
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
dhcpOptions SwitchRoutingInterfacesDhcpDhcpOption[]
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcpRelayServerIps string[]
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dnsCustomNameservers string[]
The DHCP name server IPs when DHCP name server option is 'custom'
dnsNameserversOption string
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixedIpAssignments SwitchRoutingInterfacesDhcpFixedIpAssignment[]
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
reservedIpRanges SwitchRoutingInterfacesDhcpReservedIpRange[]
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
interface_id This property is required. str
interfaceId path parameter. Interface ID
serial This property is required. str
serial path parameter.
boot_file_name str
The PXE boot server file name for the DHCP server running on the switch stack interface
boot_next_server str
The PXE boot server IP for the DHCP server running on the switch stack interface
boot_options_enabled bool
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcp_lease_time str
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[SwitchRoutingInterfacesDhcpDhcpOptionArgs]
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcp_relay_server_ips Sequence[str]
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dns_custom_nameservers Sequence[str]
The DHCP name server IPs when DHCP name server option is 'custom'
dns_nameservers_option str
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixed_ip_assignments Sequence[SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs]
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
reserved_ip_ranges Sequence[SwitchRoutingInterfacesDhcpReservedIpRangeArgs]
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
interfaceId This property is required. String
interfaceId path parameter. Interface ID
serial This property is required. String
serial path parameter.
bootFileName String
The PXE boot server file name for the DHCP server running on the switch stack interface
bootNextServer String
The PXE boot server IP for the DHCP server running on the switch stack interface
bootOptionsEnabled Boolean
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcpLeaseTime String
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')
dhcpMode String
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
dhcpOptions List<Property Map>
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcpRelayServerIps List<String>
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dnsCustomNameservers List<String>
The DHCP name server IPs when DHCP name server option is 'custom'
dnsNameserversOption String
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixedIpAssignments List<Property Map>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
reservedIpRanges List<Property Map>
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)
resources:  _:    type: meraki:devices:SwitchRoutingInterfacesDhcp    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
BootFileName string
The PXE boot server file name for the DHCP server running on the switch stack interface
BootNextServer string
The PXE boot server IP for the DHCP server running on the switch stack interface
BootOptionsEnabled bool
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
DhcpLeaseTime string
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')
DhcpMode string
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
DhcpOptions List<SwitchRoutingInterfacesDhcpDhcpOption>
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
DhcpRelayServerIps List<string>
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
DnsCustomNameservers List<string>
The DHCP name server IPs when DHCP name server option is 'custom'
DnsNameserversOption string
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
FixedIpAssignments List<SwitchRoutingInterfacesDhcpFixedIpAssignment>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
InterfaceId string
interfaceId path parameter. Interface ID
ReservedIpRanges List<SwitchRoutingInterfacesDhcpReservedIpRange>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
Serial string
serial path parameter.
BootFileName string
The PXE boot server file name for the DHCP server running on the switch stack interface
BootNextServer string
The PXE boot server IP for the DHCP server running on the switch stack interface
BootOptionsEnabled bool
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
DhcpLeaseTime string
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')
DhcpMode string
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
DhcpOptions []SwitchRoutingInterfacesDhcpDhcpOptionArgs
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
DhcpRelayServerIps []string
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
DnsCustomNameservers []string
The DHCP name server IPs when DHCP name server option is 'custom'
DnsNameserversOption string
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
FixedIpAssignments []SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
InterfaceId string
interfaceId path parameter. Interface ID
ReservedIpRanges []SwitchRoutingInterfacesDhcpReservedIpRangeArgs
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
Serial string
serial path parameter.
bootFileName String
The PXE boot server file name for the DHCP server running on the switch stack interface
bootNextServer String
The PXE boot server IP for the DHCP server running on the switch stack interface
bootOptionsEnabled Boolean
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcpLeaseTime String
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')
dhcpMode String
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
dhcpOptions List<SwitchRoutingInterfacesDhcpDhcpOption>
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcpRelayServerIps List<String>
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dnsCustomNameservers List<String>
The DHCP name server IPs when DHCP name server option is 'custom'
dnsNameserversOption String
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixedIpAssignments List<SwitchRoutingInterfacesDhcpFixedIpAssignment>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
interfaceId String
interfaceId path parameter. Interface ID
reservedIpRanges List<SwitchRoutingInterfacesDhcpReservedIpRange>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
serial String
serial path parameter.
bootFileName string
The PXE boot server file name for the DHCP server running on the switch stack interface
bootNextServer string
The PXE boot server IP for the DHCP server running on the switch stack interface
bootOptionsEnabled boolean
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcpLeaseTime string
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')
dhcpMode string
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
dhcpOptions SwitchRoutingInterfacesDhcpDhcpOption[]
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcpRelayServerIps string[]
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dnsCustomNameservers string[]
The DHCP name server IPs when DHCP name server option is 'custom'
dnsNameserversOption string
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixedIpAssignments SwitchRoutingInterfacesDhcpFixedIpAssignment[]
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
interfaceId string
interfaceId path parameter. Interface ID
reservedIpRanges SwitchRoutingInterfacesDhcpReservedIpRange[]
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
serial string
serial path parameter.
boot_file_name str
The PXE boot server file name for the DHCP server running on the switch stack interface
boot_next_server str
The PXE boot server IP for the DHCP server running on the switch stack interface
boot_options_enabled bool
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcp_lease_time str
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[SwitchRoutingInterfacesDhcpDhcpOptionArgs]
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcp_relay_server_ips Sequence[str]
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dns_custom_nameservers Sequence[str]
The DHCP name server IPs when DHCP name server option is 'custom'
dns_nameservers_option str
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixed_ip_assignments Sequence[SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs]
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_ranges Sequence[SwitchRoutingInterfacesDhcpReservedIpRangeArgs]
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
serial str
serial path parameter.
bootFileName String
The PXE boot server file name for the DHCP server running on the switch stack interface
bootNextServer String
The PXE boot server IP for the DHCP server running on the switch stack interface
bootOptionsEnabled Boolean
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcpLeaseTime String
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')
dhcpMode String
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
dhcpOptions List<Property Map>
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcpRelayServerIps List<String>
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dnsCustomNameservers List<String>
The DHCP name server IPs when DHCP name server option is 'custom'
dnsNameserversOption String
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixedIpAssignments List<Property Map>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
interfaceId String
interfaceId path parameter. Interface ID
reservedIpRanges List<Property Map>
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

Code string
The code for DHCP option which should be from 2 to 254
Type string
The type of the DHCP option which should be one of ('text', 'ip', 'integer' or 'hex')
Value string
The value of the DHCP option
Code string
The code for DHCP option which should be from 2 to 254
Type string
The type of the DHCP option which should be one of ('text', 'ip', 'integer' or 'hex')
Value string
The value of the DHCP option
code String
The code for DHCP option which should be from 2 to 254
type String
The type of the DHCP option which should be one of ('text', 'ip', 'integer' or 'hex')
value String
The value of the DHCP option
code string
The code for DHCP option which should be from 2 to 254
type string
The type of the DHCP option which should be one of ('text', 'ip', 'integer' or 'hex')
value string
The value of the DHCP option
code str
The code for DHCP option which should be from 2 to 254
type str
The type of the DHCP option which should be one of ('text', 'ip', 'integer' or 'hex')
value str
The value of the DHCP option
code String
The code for DHCP option which should be from 2 to 254
type String
The type of the DHCP option which should be one of ('text', 'ip', 'integer' or 'hex')
value String
The value of the DHCP option

SwitchRoutingInterfacesDhcpFixedIpAssignment
, SwitchRoutingInterfacesDhcpFixedIpAssignmentArgs

Ip string
The IP address of the client which has fixed IP address assigned to it
Mac string
The MAC address of the client which has fixed IP address
Name string
The name of the client which has fixed IP address
Ip string
The IP address of the client which has fixed IP address assigned to it
Mac string
The MAC address of the client which has fixed IP address
Name string
The name of the client which has fixed IP address
ip String
The IP address of the client which has fixed IP address assigned to it
mac String
The MAC address of the client which has fixed IP address
name String
The name of the client which has fixed IP address
ip string
The IP address of the client which has fixed IP address assigned to it
mac string
The MAC address of the client which has fixed IP address
name string
The name of the client which has fixed IP address
ip str
The IP address of the client which has fixed IP address assigned to it
mac str
The MAC address of the client which has fixed IP address
name str
The name of the client which has fixed IP address
ip String
The IP address of the client which has fixed IP address assigned to it
mac String
The MAC address of the client which has fixed IP address
name String
The name of the client which has fixed IP address

SwitchRoutingInterfacesDhcpReservedIpRange
, SwitchRoutingInterfacesDhcpReservedIpRangeArgs

Comment string
The comment for the reserved IP range
End string
The ending IP address of the reserved IP range
Start string
The starting IP address of the reserved IP range
Comment string
The comment for the reserved IP range
End string
The ending IP address of the reserved IP range
Start string
The starting IP address of the reserved IP range
comment String
The comment for the reserved IP range
end String
The ending IP address of the reserved IP range
start String
The starting IP address of the reserved IP range
comment string
The comment for the reserved IP range
end string
The ending IP address of the reserved IP range
start string
The starting IP address of the reserved IP range
comment str
The comment for the reserved IP range
end str
The ending IP address of the reserved IP range
start str
The starting IP address of the reserved IP range
comment String
The comment for the reserved IP range
end String
The ending IP address of the reserved IP range
start String
The starting IP address of the reserved IP range

Import

$ pulumi import meraki:devices/switchRoutingInterfacesDhcp:SwitchRoutingInterfacesDhcp example "interface_id,serial"
Copy

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.