1. Packages
  2. Cisco Catalyst SD-WAN Provider
  3. API Docs
  4. getCiscoDhcpServerFeatureTemplate
Cisco Catalyst SD-WAN v0.3.0 published on Friday, Mar 28, 2025 by Pulumi

sdwan.getCiscoDhcpServerFeatureTemplate

Explore with Pulumi AI

This data source can read the Cisco DHCP Server feature template.

Example Usage

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

const example = sdwan.getCiscoDhcpServerFeatureTemplate({
    id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
});
Copy
import pulumi
import pulumi_sdwan as sdwan

example = sdwan.get_cisco_dhcp_server_feature_template(id="f6b2c44c-693c-4763-b010-895aa3d236bd")
Copy
package main

import (
	"github.com/pulumi/pulumi-sdwan/sdk/go/sdwan"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sdwan.LookupCiscoDhcpServerFeatureTemplate(ctx, &sdwan.LookupCiscoDhcpServerFeatureTemplateArgs{
			Id: pulumi.StringRef("f6b2c44c-693c-4763-b010-895aa3d236bd"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdwan = Pulumi.Sdwan;

return await Deployment.RunAsync(() => 
{
    var example = Sdwan.GetCiscoDhcpServerFeatureTemplate.Invoke(new()
    {
        Id = "f6b2c44c-693c-4763-b010-895aa3d236bd",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdwan.SdwanFunctions;
import com.pulumi.sdwan.inputs.GetCiscoDhcpServerFeatureTemplateArgs;
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 = SdwanFunctions.getCiscoDhcpServerFeatureTemplate(GetCiscoDhcpServerFeatureTemplateArgs.builder()
            .id("f6b2c44c-693c-4763-b010-895aa3d236bd")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: sdwan:getCiscoDhcpServerFeatureTemplate
      arguments:
        id: f6b2c44c-693c-4763-b010-895aa3d236bd
Copy

Using getCiscoDhcpServerFeatureTemplate

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 getCiscoDhcpServerFeatureTemplate(args: GetCiscoDhcpServerFeatureTemplateArgs, opts?: InvokeOptions): Promise<GetCiscoDhcpServerFeatureTemplateResult>
function getCiscoDhcpServerFeatureTemplateOutput(args: GetCiscoDhcpServerFeatureTemplateOutputArgs, opts?: InvokeOptions): Output<GetCiscoDhcpServerFeatureTemplateResult>
Copy
def get_cisco_dhcp_server_feature_template(id: Optional[str] = None,
                                           name: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetCiscoDhcpServerFeatureTemplateResult
def get_cisco_dhcp_server_feature_template_output(id: Optional[pulumi.Input[str]] = None,
                                           name: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetCiscoDhcpServerFeatureTemplateResult]
Copy
func LookupCiscoDhcpServerFeatureTemplate(ctx *Context, args *LookupCiscoDhcpServerFeatureTemplateArgs, opts ...InvokeOption) (*LookupCiscoDhcpServerFeatureTemplateResult, error)
func LookupCiscoDhcpServerFeatureTemplateOutput(ctx *Context, args *LookupCiscoDhcpServerFeatureTemplateOutputArgs, opts ...InvokeOption) LookupCiscoDhcpServerFeatureTemplateResultOutput
Copy

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

public static class GetCiscoDhcpServerFeatureTemplate 
{
    public static Task<GetCiscoDhcpServerFeatureTemplateResult> InvokeAsync(GetCiscoDhcpServerFeatureTemplateArgs args, InvokeOptions? opts = null)
    public static Output<GetCiscoDhcpServerFeatureTemplateResult> Invoke(GetCiscoDhcpServerFeatureTemplateInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCiscoDhcpServerFeatureTemplateResult> getCiscoDhcpServerFeatureTemplate(GetCiscoDhcpServerFeatureTemplateArgs args, InvokeOptions options)
public static Output<GetCiscoDhcpServerFeatureTemplateResult> getCiscoDhcpServerFeatureTemplate(GetCiscoDhcpServerFeatureTemplateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: sdwan:index/getCiscoDhcpServerFeatureTemplate:getCiscoDhcpServerFeatureTemplate
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
The id of the feature template
Name string
The name of the feature template
Id string
The id of the feature template
Name string
The name of the feature template
id String
The id of the feature template
name String
The name of the feature template
id string
The id of the feature template
name string
The name of the feature template
id str
The id of the feature template
name str
The name of the feature template
id String
The id of the feature template
name String
The name of the feature template

getCiscoDhcpServerFeatureTemplate Result

The following output properties are available:

AddressPool string
Configure IPv4 prefix range of the DHCP address pool
AddressPoolVariable string
Variable name
DefaultGateway string
Set IP address of default gateway
DefaultGatewayVariable string
Variable name
Description string
The description of the feature template
DeviceTypes List<string>
List of supported device types
DnsServers List<string>
Configure one or more DNS server IP addresses
DnsServersVariable string
Variable name
DomainName string
Set domain name client uses to resolve hostnames
DomainNameVariable string
Variable name
ExcludeAddresses List<string>
Configure IPv4 address to exclude from DHCP address pool
ExcludeAddressesVariable string
Variable name
Id string
The id of the feature template
InterfaceMtu int
Set MTU on interface to DHCP client
InterfaceMtuVariable string
Variable name
LeaseTime int
Configure how long a DHCP-assigned IP address is valid
LeaseTimeVariable string
Variable name
Name string
The name of the feature template
Options List<GetCiscoDhcpServerFeatureTemplateOption>
Configure Options Code
StaticLeases List<GetCiscoDhcpServerFeatureTemplateStaticLease>
Configure static IP addresses
TemplateType string
The template type
TftpServers List<string>
Configure TFTP server IP addresses
TftpServersVariable string
Variable name
Version int
The version of the feature template
AddressPool string
Configure IPv4 prefix range of the DHCP address pool
AddressPoolVariable string
Variable name
DefaultGateway string
Set IP address of default gateway
DefaultGatewayVariable string
Variable name
Description string
The description of the feature template
DeviceTypes []string
List of supported device types
DnsServers []string
Configure one or more DNS server IP addresses
DnsServersVariable string
Variable name
DomainName string
Set domain name client uses to resolve hostnames
DomainNameVariable string
Variable name
ExcludeAddresses []string
Configure IPv4 address to exclude from DHCP address pool
ExcludeAddressesVariable string
Variable name
Id string
The id of the feature template
InterfaceMtu int
Set MTU on interface to DHCP client
InterfaceMtuVariable string
Variable name
LeaseTime int
Configure how long a DHCP-assigned IP address is valid
LeaseTimeVariable string
Variable name
Name string
The name of the feature template
Options []GetCiscoDhcpServerFeatureTemplateOption
Configure Options Code
StaticLeases []GetCiscoDhcpServerFeatureTemplateStaticLease
Configure static IP addresses
TemplateType string
The template type
TftpServers []string
Configure TFTP server IP addresses
TftpServersVariable string
Variable name
Version int
The version of the feature template
addressPool String
Configure IPv4 prefix range of the DHCP address pool
addressPoolVariable String
Variable name
defaultGateway String
Set IP address of default gateway
defaultGatewayVariable String
Variable name
description String
The description of the feature template
deviceTypes List<String>
List of supported device types
dnsServers List<String>
Configure one or more DNS server IP addresses
dnsServersVariable String
Variable name
domainName String
Set domain name client uses to resolve hostnames
domainNameVariable String
Variable name
excludeAddresses List<String>
Configure IPv4 address to exclude from DHCP address pool
excludeAddressesVariable String
Variable name
id String
The id of the feature template
interfaceMtu Integer
Set MTU on interface to DHCP client
interfaceMtuVariable String
Variable name
leaseTime Integer
Configure how long a DHCP-assigned IP address is valid
leaseTimeVariable String
Variable name
name String
The name of the feature template
options List<GetCiscoDhcpServerFeatureTemplateOption>
Configure Options Code
staticLeases List<GetCiscoDhcpServerFeatureTemplateStaticLease>
Configure static IP addresses
templateType String
The template type
tftpServers List<String>
Configure TFTP server IP addresses
tftpServersVariable String
Variable name
version Integer
The version of the feature template
addressPool string
Configure IPv4 prefix range of the DHCP address pool
addressPoolVariable string
Variable name
defaultGateway string
Set IP address of default gateway
defaultGatewayVariable string
Variable name
description string
The description of the feature template
deviceTypes string[]
List of supported device types
dnsServers string[]
Configure one or more DNS server IP addresses
dnsServersVariable string
Variable name
domainName string
Set domain name client uses to resolve hostnames
domainNameVariable string
Variable name
excludeAddresses string[]
Configure IPv4 address to exclude from DHCP address pool
excludeAddressesVariable string
Variable name
id string
The id of the feature template
interfaceMtu number
Set MTU on interface to DHCP client
interfaceMtuVariable string
Variable name
leaseTime number
Configure how long a DHCP-assigned IP address is valid
leaseTimeVariable string
Variable name
name string
The name of the feature template
options GetCiscoDhcpServerFeatureTemplateOption[]
Configure Options Code
staticLeases GetCiscoDhcpServerFeatureTemplateStaticLease[]
Configure static IP addresses
templateType string
The template type
tftpServers string[]
Configure TFTP server IP addresses
tftpServersVariable string
Variable name
version number
The version of the feature template
address_pool str
Configure IPv4 prefix range of the DHCP address pool
address_pool_variable str
Variable name
default_gateway str
Set IP address of default gateway
default_gateway_variable str
Variable name
description str
The description of the feature template
device_types Sequence[str]
List of supported device types
dns_servers Sequence[str]
Configure one or more DNS server IP addresses
dns_servers_variable str
Variable name
domain_name str
Set domain name client uses to resolve hostnames
domain_name_variable str
Variable name
exclude_addresses Sequence[str]
Configure IPv4 address to exclude from DHCP address pool
exclude_addresses_variable str
Variable name
id str
The id of the feature template
interface_mtu int
Set MTU on interface to DHCP client
interface_mtu_variable str
Variable name
lease_time int
Configure how long a DHCP-assigned IP address is valid
lease_time_variable str
Variable name
name str
The name of the feature template
options Sequence[GetCiscoDhcpServerFeatureTemplateOption]
Configure Options Code
static_leases Sequence[GetCiscoDhcpServerFeatureTemplateStaticLease]
Configure static IP addresses
template_type str
The template type
tftp_servers Sequence[str]
Configure TFTP server IP addresses
tftp_servers_variable str
Variable name
version int
The version of the feature template
addressPool String
Configure IPv4 prefix range of the DHCP address pool
addressPoolVariable String
Variable name
defaultGateway String
Set IP address of default gateway
defaultGatewayVariable String
Variable name
description String
The description of the feature template
deviceTypes List<String>
List of supported device types
dnsServers List<String>
Configure one or more DNS server IP addresses
dnsServersVariable String
Variable name
domainName String
Set domain name client uses to resolve hostnames
domainNameVariable String
Variable name
excludeAddresses List<String>
Configure IPv4 address to exclude from DHCP address pool
excludeAddressesVariable String
Variable name
id String
The id of the feature template
interfaceMtu Number
Set MTU on interface to DHCP client
interfaceMtuVariable String
Variable name
leaseTime Number
Configure how long a DHCP-assigned IP address is valid
leaseTimeVariable String
Variable name
name String
The name of the feature template
options List<Property Map>
Configure Options Code
staticLeases List<Property Map>
Configure static IP addresses
templateType String
The template type
tftpServers List<String>
Configure TFTP server IP addresses
tftpServersVariable String
Variable name
version Number
The version of the feature template

Supporting Types

GetCiscoDhcpServerFeatureTemplateOption

Ascii This property is required. string
Set ASCII value
AsciiVariable This property is required. string
Variable name
Hex This property is required. string
Set HEX value
HexVariable This property is required. string
Variable name
IpAddressVariable This property is required. string
Variable name
IpAddresses This property is required. List<string>
Set ip address
OptionCode This property is required. int
Set Option Code
OptionCodeVariable This property is required. string
Variable name
Optional This property is required. bool
Indicates if list item is considered optional.
Ascii This property is required. string
Set ASCII value
AsciiVariable This property is required. string
Variable name
Hex This property is required. string
Set HEX value
HexVariable This property is required. string
Variable name
IpAddressVariable This property is required. string
Variable name
IpAddresses This property is required. []string
Set ip address
OptionCode This property is required. int
Set Option Code
OptionCodeVariable This property is required. string
Variable name
Optional This property is required. bool
Indicates if list item is considered optional.
ascii This property is required. String
Set ASCII value
asciiVariable This property is required. String
Variable name
hex This property is required. String
Set HEX value
hexVariable This property is required. String
Variable name
ipAddressVariable This property is required. String
Variable name
ipAddresses This property is required. List<String>
Set ip address
optionCode This property is required. Integer
Set Option Code
optionCodeVariable This property is required. String
Variable name
optional This property is required. Boolean
Indicates if list item is considered optional.
ascii This property is required. string
Set ASCII value
asciiVariable This property is required. string
Variable name
hex This property is required. string
Set HEX value
hexVariable This property is required. string
Variable name
ipAddressVariable This property is required. string
Variable name
ipAddresses This property is required. string[]
Set ip address
optionCode This property is required. number
Set Option Code
optionCodeVariable This property is required. string
Variable name
optional This property is required. boolean
Indicates if list item is considered optional.
ascii This property is required. str
Set ASCII value
ascii_variable This property is required. str
Variable name
hex This property is required. str
Set HEX value
hex_variable This property is required. str
Variable name
ip_address_variable This property is required. str
Variable name
ip_addresses This property is required. Sequence[str]
Set ip address
option_code This property is required. int
Set Option Code
option_code_variable This property is required. str
Variable name
optional This property is required. bool
Indicates if list item is considered optional.
ascii This property is required. String
Set ASCII value
asciiVariable This property is required. String
Variable name
hex This property is required. String
Set HEX value
hexVariable This property is required. String
Variable name
ipAddressVariable This property is required. String
Variable name
ipAddresses This property is required. List<String>
Set ip address
optionCode This property is required. Number
Set Option Code
optionCodeVariable This property is required. String
Variable name
optional This property is required. Boolean
Indicates if list item is considered optional.

GetCiscoDhcpServerFeatureTemplateStaticLease

Hostname This property is required. string
Set client’s hostname
HostnameVariable This property is required. string
Variable name
IpAddress This property is required. string
Set client’s static IP address
IpAddressVariable This property is required. string
Variable name
MacAddress This property is required. string
Set MAC address of client
MacAddressVariable This property is required. string
Variable name
Optional This property is required. bool
Indicates if list item is considered optional.
Hostname This property is required. string
Set client’s hostname
HostnameVariable This property is required. string
Variable name
IpAddress This property is required. string
Set client’s static IP address
IpAddressVariable This property is required. string
Variable name
MacAddress This property is required. string
Set MAC address of client
MacAddressVariable This property is required. string
Variable name
Optional This property is required. bool
Indicates if list item is considered optional.
hostname This property is required. String
Set client’s hostname
hostnameVariable This property is required. String
Variable name
ipAddress This property is required. String
Set client’s static IP address
ipAddressVariable This property is required. String
Variable name
macAddress This property is required. String
Set MAC address of client
macAddressVariable This property is required. String
Variable name
optional This property is required. Boolean
Indicates if list item is considered optional.
hostname This property is required. string
Set client’s hostname
hostnameVariable This property is required. string
Variable name
ipAddress This property is required. string
Set client’s static IP address
ipAddressVariable This property is required. string
Variable name
macAddress This property is required. string
Set MAC address of client
macAddressVariable This property is required. string
Variable name
optional This property is required. boolean
Indicates if list item is considered optional.
hostname This property is required. str
Set client’s hostname
hostname_variable This property is required. str
Variable name
ip_address This property is required. str
Set client’s static IP address
ip_address_variable This property is required. str
Variable name
mac_address This property is required. str
Set MAC address of client
mac_address_variable This property is required. str
Variable name
optional This property is required. bool
Indicates if list item is considered optional.
hostname This property is required. String
Set client’s hostname
hostnameVariable This property is required. String
Variable name
ipAddress This property is required. String
Set client’s static IP address
ipAddressVariable This property is required. String
Variable name
macAddress This property is required. String
Set MAC address of client
macAddressVariable This property is required. String
Variable name
optional This property is required. Boolean
Indicates if list item is considered optional.

Package Details

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