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

meraki.devices.getSwitchRoutingInterfacesDhcp

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";

const example = meraki.devices.getSwitchRoutingInterfacesDhcp({
    interfaceId: "string",
    serial: "string",
});
export const merakiDevicesSwitchRoutingInterfacesDhcpExample = example.then(example => example.item);
Copy
import pulumi
import pulumi_meraki as meraki

example = meraki.devices.get_switch_routing_interfaces_dhcp(interface_id="string",
    serial="string")
pulumi.export("merakiDevicesSwitchRoutingInterfacesDhcpExample", example.item)
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.LookupSwitchRoutingInterfacesDhcp(ctx, &devices.LookupSwitchRoutingInterfacesDhcpArgs{
			InterfaceId: "string",
			Serial:      "string",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("merakiDevicesSwitchRoutingInterfacesDhcpExample", example.Item)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;

return await Deployment.RunAsync(() => 
{
    var example = Meraki.Devices.GetSwitchRoutingInterfacesDhcp.Invoke(new()
    {
        InterfaceId = "string",
        Serial = "string",
    });

    return new Dictionary<string, object?>
    {
        ["merakiDevicesSwitchRoutingInterfacesDhcpExample"] = example.Apply(getSwitchRoutingInterfacesDhcpResult => getSwitchRoutingInterfacesDhcpResult.Item),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.devices.DevicesFunctions;
import com.pulumi.meraki.devices.inputs.GetSwitchRoutingInterfacesDhcpArgs;
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) {
        final var example = DevicesFunctions.getSwitchRoutingInterfacesDhcp(GetSwitchRoutingInterfacesDhcpArgs.builder()
            .interfaceId("string")
            .serial("string")
            .build());

        ctx.export("merakiDevicesSwitchRoutingInterfacesDhcpExample", example.applyValue(getSwitchRoutingInterfacesDhcpResult -> getSwitchRoutingInterfacesDhcpResult.item()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: meraki:devices:getSwitchRoutingInterfacesDhcp
      arguments:
        interfaceId: string
        serial: string
outputs:
  merakiDevicesSwitchRoutingInterfacesDhcpExample: ${example.item}
Copy

Using getSwitchRoutingInterfacesDhcp

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSwitchRoutingInterfacesDhcp(args: GetSwitchRoutingInterfacesDhcpArgs, opts?: InvokeOptions): Promise<GetSwitchRoutingInterfacesDhcpResult>
function getSwitchRoutingInterfacesDhcpOutput(args: GetSwitchRoutingInterfacesDhcpOutputArgs, opts?: InvokeOptions): Output<GetSwitchRoutingInterfacesDhcpResult>
Copy
def get_switch_routing_interfaces_dhcp(interface_id: Optional[str] = None,
                                       serial: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetSwitchRoutingInterfacesDhcpResult
def get_switch_routing_interfaces_dhcp_output(interface_id: Optional[pulumi.Input[str]] = None,
                                       serial: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetSwitchRoutingInterfacesDhcpResult]
Copy
func LookupSwitchRoutingInterfacesDhcp(ctx *Context, args *LookupSwitchRoutingInterfacesDhcpArgs, opts ...InvokeOption) (*LookupSwitchRoutingInterfacesDhcpResult, error)
func LookupSwitchRoutingInterfacesDhcpOutput(ctx *Context, args *LookupSwitchRoutingInterfacesDhcpOutputArgs, opts ...InvokeOption) LookupSwitchRoutingInterfacesDhcpResultOutput
Copy

> Note: This function is named LookupSwitchRoutingInterfacesDhcp in the Go SDK.

public static class GetSwitchRoutingInterfacesDhcp 
{
    public static Task<GetSwitchRoutingInterfacesDhcpResult> InvokeAsync(GetSwitchRoutingInterfacesDhcpArgs args, InvokeOptions? opts = null)
    public static Output<GetSwitchRoutingInterfacesDhcpResult> Invoke(GetSwitchRoutingInterfacesDhcpInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSwitchRoutingInterfacesDhcpResult> getSwitchRoutingInterfacesDhcp(GetSwitchRoutingInterfacesDhcpArgs args, InvokeOptions options)
public static Output<GetSwitchRoutingInterfacesDhcpResult> getSwitchRoutingInterfacesDhcp(GetSwitchRoutingInterfacesDhcpArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: meraki:devices/getSwitchRoutingInterfacesDhcp:getSwitchRoutingInterfacesDhcp
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InterfaceId This property is required. string
interfaceId path parameter. Interface ID
Serial This property is required. string
serial path parameter.
InterfaceId This property is required. string
interfaceId path parameter. Interface ID
Serial This property is required. string
serial path parameter.
interfaceId This property is required. String
interfaceId path parameter. Interface ID
serial This property is required. String
serial path parameter.
interfaceId This property is required. string
interfaceId path parameter. Interface ID
serial This property is required. string
serial path parameter.
interface_id This property is required. str
interfaceId path parameter. Interface ID
serial This property is required. str
serial path parameter.
interfaceId This property is required. String
interfaceId path parameter. Interface ID
serial This property is required. String
serial path parameter.

getSwitchRoutingInterfacesDhcp Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
InterfaceId string
interfaceId path parameter. Interface ID
Item GetSwitchRoutingInterfacesDhcpItem
Serial string
serial path parameter.
Id string
The provider-assigned unique ID for this managed resource.
InterfaceId string
interfaceId path parameter. Interface ID
Item GetSwitchRoutingInterfacesDhcpItem
Serial string
serial path parameter.
id String
The provider-assigned unique ID for this managed resource.
interfaceId String
interfaceId path parameter. Interface ID
item GetSwitchRoutingInterfacesDhcpItem
serial String
serial path parameter.
id string
The provider-assigned unique ID for this managed resource.
interfaceId string
interfaceId path parameter. Interface ID
item GetSwitchRoutingInterfacesDhcpItem
serial string
serial path parameter.
id str
The provider-assigned unique ID for this managed resource.
interface_id str
interfaceId path parameter. Interface ID
item GetSwitchRoutingInterfacesDhcpItem
serial str
serial path parameter.
id String
The provider-assigned unique ID for this managed resource.
interfaceId String
interfaceId path parameter. Interface ID
item Property Map
serial String
serial path parameter.

Supporting Types

GetSwitchRoutingInterfacesDhcpItem

BootFileName This property is required. string
The PXE boot server file name for the DHCP server running on the switch stack interface
BootNextServer This property is required. string
The PXE boot server IP for the DHCP server running on the switch stack interface
BootOptionsEnabled This property is required. bool
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
DhcpLeaseTime This property is required. 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 This property is required. string
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
DhcpOptions This property is required. List<GetSwitchRoutingInterfacesDhcpItemDhcpOption>
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
DhcpRelayServerIps This property is required. List<string>
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
DnsCustomNameservers This property is required. List<string>
The DHCP name server IPs when DHCP name server option is 'custom'
DnsNameserversOption This property is required. string
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
FixedIpAssignments This property is required. List<GetSwitchRoutingInterfacesDhcpItemFixedIpAssignment>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
ReservedIpRanges This property is required. List<GetSwitchRoutingInterfacesDhcpItemReservedIpRange>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
BootFileName This property is required. string
The PXE boot server file name for the DHCP server running on the switch stack interface
BootNextServer This property is required. string
The PXE boot server IP for the DHCP server running on the switch stack interface
BootOptionsEnabled This property is required. bool
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
DhcpLeaseTime This property is required. 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 This property is required. string
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
DhcpOptions This property is required. []GetSwitchRoutingInterfacesDhcpItemDhcpOption
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
DhcpRelayServerIps This property is required. []string
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
DnsCustomNameservers This property is required. []string
The DHCP name server IPs when DHCP name server option is 'custom'
DnsNameserversOption This property is required. string
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
FixedIpAssignments This property is required. []GetSwitchRoutingInterfacesDhcpItemFixedIpAssignment
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
ReservedIpRanges This property is required. []GetSwitchRoutingInterfacesDhcpItemReservedIpRange
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
bootFileName This property is required. String
The PXE boot server file name for the DHCP server running on the switch stack interface
bootNextServer This property is required. String
The PXE boot server IP for the DHCP server running on the switch stack interface
bootOptionsEnabled This property is required. Boolean
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcpLeaseTime This property is required. 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 This property is required. String
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
dhcpOptions This property is required. List<GetSwitchRoutingInterfacesDhcpItemDhcpOption>
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcpRelayServerIps This property is required. List<String>
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dnsCustomNameservers This property is required. List<String>
The DHCP name server IPs when DHCP name server option is 'custom'
dnsNameserversOption This property is required. String
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixedIpAssignments This property is required. List<GetSwitchRoutingInterfacesDhcpItemFixedIpAssignment>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
reservedIpRanges This property is required. List<GetSwitchRoutingInterfacesDhcpItemReservedIpRange>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
bootFileName This property is required. string
The PXE boot server file name for the DHCP server running on the switch stack interface
bootNextServer This property is required. string
The PXE boot server IP for the DHCP server running on the switch stack interface
bootOptionsEnabled This property is required. boolean
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcpLeaseTime This property is required. 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 This property is required. string
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
dhcpOptions This property is required. GetSwitchRoutingInterfacesDhcpItemDhcpOption[]
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcpRelayServerIps This property is required. string[]
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dnsCustomNameservers This property is required. string[]
The DHCP name server IPs when DHCP name server option is 'custom'
dnsNameserversOption This property is required. string
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixedIpAssignments This property is required. GetSwitchRoutingInterfacesDhcpItemFixedIpAssignment[]
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
reservedIpRanges This property is required. GetSwitchRoutingInterfacesDhcpItemReservedIpRange[]
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
boot_file_name This property is required. str
The PXE boot server file name for the DHCP server running on the switch stack interface
boot_next_server This property is required. str
The PXE boot server IP for the DHCP server running on the switch stack interface
boot_options_enabled This property is required. bool
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcp_lease_time This property is required. 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 This property is required. str
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
dhcp_options This property is required. Sequence[GetSwitchRoutingInterfacesDhcpItemDhcpOption]
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcp_relay_server_ips This property is required. Sequence[str]
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dns_custom_nameservers This property is required. Sequence[str]
The DHCP name server IPs when DHCP name server option is 'custom'
dns_nameservers_option This property is required. str
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixed_ip_assignments This property is required. Sequence[GetSwitchRoutingInterfacesDhcpItemFixedIpAssignment]
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
reserved_ip_ranges This property is required. Sequence[GetSwitchRoutingInterfacesDhcpItemReservedIpRange]
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
bootFileName This property is required. String
The PXE boot server file name for the DHCP server running on the switch stack interface
bootNextServer This property is required. String
The PXE boot server IP for the DHCP server running on the switch stack interface
bootOptionsEnabled This property is required. Boolean
Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface
dhcpLeaseTime This property is required. 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 This property is required. String
The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer')
dhcpOptions This property is required. List<Property Map>
Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface
dhcpRelayServerIps This property is required. List<String>
The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface
dnsCustomNameservers This property is required. List<String>
The DHCP name server IPs when DHCP name server option is 'custom'
dnsNameserversOption This property is required. String
The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom')
fixedIpAssignments This property is required. List<Property Map>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
reservedIpRanges This property is required. List<Property Map>
Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface

GetSwitchRoutingInterfacesDhcpItemDhcpOption

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

GetSwitchRoutingInterfacesDhcpItemFixedIpAssignment

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

GetSwitchRoutingInterfacesDhcpItemReservedIpRange

Comment This property is required. string
The comment for the reserved IP range
End This property is required. string
The ending IP address of the reserved IP range
Start This property is required. string
The starting IP address of the reserved IP range
Comment This property is required. string
The comment for the reserved IP range
End This property is required. string
The ending IP address of the reserved IP range
Start This property is required. string
The starting IP address of the reserved IP range
comment This property is required. String
The comment for the reserved IP range
end This property is required. String
The ending IP address of the reserved IP range
start This property is required. String
The starting IP address of the reserved IP range
comment This property is required. string
The comment for the reserved IP range
end This property is required. string
The ending IP address of the reserved IP range
start This property is required. string
The starting IP address of the reserved IP range
comment This property is required. str
The comment for the reserved IP range
end This property is required. str
The ending IP address of the reserved IP range
start This property is required. str
The starting IP address of the reserved IP range
comment This property is required. String
The comment for the reserved IP range
end This property is required. String
The ending IP address of the reserved IP range
start This property is required. String
The starting IP address of the reserved IP range

Package Details

Repository
meraki pulumi/pulumi-meraki
License
Apache-2.0
Notes
This Pulumi package is based on the meraki Terraform Provider.