Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 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);
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)
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
})
}
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),
};
});
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()));
}
}
variables:
example:
fn::invoke:
Function: meraki:devices:getSwitchRoutingInterfacesDhcp
Arguments:
interfaceId: string
serial: string
outputs:
merakiDevicesSwitchRoutingInterfacesDhcpExample: ${example.item}
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>
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]
func LookupSwitchRoutingInterfacesDhcp(ctx *Context, args *LookupSwitchRoutingInterfacesDhcpArgs, opts ...InvokeOption) (*LookupSwitchRoutingInterfacesDhcpResult, error)
func LookupSwitchRoutingInterfacesDhcpOutput(ctx *Context, args *LookupSwitchRoutingInterfacesDhcpOutputArgs, opts ...InvokeOption) LookupSwitchRoutingInterfacesDhcpResultOutput
> 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)
}
public static CompletableFuture<GetSwitchRoutingInterfacesDhcpResult> getSwitchRoutingInterfacesDhcp(GetSwitchRoutingInterfacesDhcpArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: meraki:devices/getSwitchRoutingInterfacesDhcp:getSwitchRoutingInterfacesDhcp
arguments:
# arguments dictionary
The following arguments are supported:
- Interface
Id string - interfaceId path parameter. Interface ID
- Serial string
- serial path parameter.
- Interface
Id string - interfaceId path parameter. Interface ID
- Serial string
- serial path parameter.
- interface
Id String - interfaceId path parameter. Interface ID
- serial String
- serial path parameter.
- interface
Id string - interfaceId path parameter. Interface ID
- serial string
- serial path parameter.
- interface_
id str - interfaceId path parameter. Interface ID
- serial str
- serial path parameter.
- interface
Id String - interfaceId path parameter. Interface ID
- serial String
- serial path parameter.
getSwitchRoutingInterfacesDhcp Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Interface
Id string - interfaceId path parameter. Interface ID
- Item
Get
Switch Routing Interfaces Dhcp Item - Serial string
- serial path parameter.
- Id string
- The provider-assigned unique ID for this managed resource.
- Interface
Id string - interfaceId path parameter. Interface ID
- Item
Get
Switch Routing Interfaces Dhcp Item - Serial string
- serial path parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- interface
Id String - interfaceId path parameter. Interface ID
- item
Get
Switch Routing Interfaces Dhcp Item - serial String
- serial path parameter.
- id string
- The provider-assigned unique ID for this managed resource.
- interface
Id string - interfaceId path parameter. Interface ID
- item
Get
Switch Routing Interfaces Dhcp Item - 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
Get
Switch Routing Interfaces Dhcp Item - serial str
- serial path parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- interface
Id String - interfaceId path parameter. Interface ID
- item Property Map
- serial String
- serial path parameter.
Supporting Types
GetSwitchRoutingInterfacesDhcpItem
- 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<GetSwitch Routing Interfaces Dhcp Item 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<GetAssignments Switch Routing Interfaces Dhcp Item Fixed Ip Assignment> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- Reserved
Ip List<GetRanges Switch Routing Interfaces Dhcp Item Reserved Ip Range> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- 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 []GetSwitch Routing Interfaces Dhcp Item Dhcp Option - 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 []GetAssignments Switch Routing Interfaces Dhcp Item Fixed Ip Assignment - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- Reserved
Ip []GetRanges Switch Routing Interfaces Dhcp Item Reserved Ip Range - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- 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<GetSwitch Routing Interfaces Dhcp Item 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<GetAssignments Switch Routing Interfaces Dhcp Item Fixed Ip Assignment> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- reserved
Ip List<GetRanges Switch Routing Interfaces Dhcp Item Reserved Ip Range> - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- 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 GetSwitch Routing Interfaces Dhcp Item 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 GetAssignments Switch Routing Interfaces Dhcp Item Fixed Ip Assignment[] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- reserved
Ip GetRanges Switch Routing Interfaces Dhcp Item Reserved Ip Range[] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- 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[GetSwitch Routing Interfaces Dhcp Item Dhcp Option] - 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[Getassignments Switch Routing Interfaces Dhcp Item Fixed Ip Assignment] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- reserved_
ip_ Sequence[Getranges Switch Routing Interfaces Dhcp Item Reserved Ip Range] - Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface
- 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
GetSwitchRoutingInterfacesDhcpItemDhcpOption
GetSwitchRoutingInterfacesDhcpItemFixedIpAssignment
GetSwitchRoutingInterfacesDhcpItemReservedIpRange
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.