published on Friday, Oct 16, 2026 by Pulumi
Strata Cloud Managerpublished on Friday, Oct 16, 2026 by Pulumi
DhcpInterface resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
// Create a Layer3 ethernet interface first
const testInterface = new scm.EthernetInterface("test_interface", {
name: "$test-interface",
comment: "Interface for DHCP server - Managed by Terraform",
folder: "ngfw-shared",
linkSpeed: "auto",
linkDuplex: "full",
linkState: "auto",
layer3: {
ips: [{
name: "10.10.10.1/24",
}],
},
});
// Configure DHCP server on the interface
const dhcpServerExample = new scm.DhcpInterface("dhcp_server_example", {
folder: "ngfw-shared",
name: testInterface.name,
server: {
ipPools: ["10.10.10.10-10.10.10.200"],
mode: "auto",
probeIp: true,
option: {
dns: {
primary: "8.8.8.8",
secondary: "1.1.1.1",
},
dnsSuffix: "example.local",
gateway: "10.10.10.1",
subnetMask: "255.255.255.0",
pop3Server: "192.0.2.25",
smtpServer: "192.0.2.26",
lease: {
timeout: 3600,
},
ntp: {
primary: "129.6.15.28",
secondary: "132.163.96.1",
},
wins: {
primary: "192.168.1.1",
secondary: "192.168.1.2",
},
nis: {
primary: "192.0.2.10",
secondary: "192.0.2.11",
},
userDefineds: [{
inherited: true,
name: "option-foo",
code: 224,
ip: ["192.0.2.10"],
}],
},
reserveds: [{
description: "Reserved lease for printer",
mac: "aa:bb:cc:dd:ee:ff",
name: "10.10.10.50",
}],
},
}, {
dependsOn: [testInterface],
});
import pulumi
import pulumi_scm as scm
# Create a Layer3 ethernet interface first
test_interface = scm.EthernetInterface("test_interface",
name="$test-interface",
comment="Interface for DHCP server - Managed by Terraform",
folder="ngfw-shared",
link_speed="auto",
link_duplex="full",
link_state="auto",
layer3={
"ips": [{
"name": "10.10.10.1/24",
}],
})
# Configure DHCP server on the interface
dhcp_server_example = scm.DhcpInterface("dhcp_server_example",
folder="ngfw-shared",
name=test_interface.name,
server={
"ip_pools": ["10.10.10.10-10.10.10.200"],
"mode": "auto",
"probe_ip": True,
"option": {
"dns": {
"primary": "8.8.8.8",
"secondary": "1.1.1.1",
},
"dns_suffix": "example.local",
"gateway": "10.10.10.1",
"subnet_mask": "255.255.255.0",
"pop3_server": "192.0.2.25",
"smtp_server": "192.0.2.26",
"lease": {
"timeout": 3600,
},
"ntp": {
"primary": "129.6.15.28",
"secondary": "132.163.96.1",
},
"wins": {
"primary": "192.168.1.1",
"secondary": "192.168.1.2",
},
"nis": {
"primary": "192.0.2.10",
"secondary": "192.0.2.11",
},
"user_defineds": [{
"inherited": True,
"name": "option-foo",
"code": 224,
"ip": ["192.0.2.10"],
}],
},
"reserveds": [{
"description": "Reserved lease for printer",
"mac": "aa:bb:cc:dd:ee:ff",
"name": "10.10.10.50",
}],
},
opts = pulumi.ResourceOptions(depends_on=[test_interface]))
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a Layer3 ethernet interface first
testInterface, err := scm.NewEthernetInterface(ctx, "test_interface", &scm.EthernetInterfaceArgs{
Name: pulumi.String("$test-interface"),
Comment: pulumi.String("Interface for DHCP server - Managed by Terraform"),
Folder: pulumi.String("ngfw-shared"),
LinkSpeed: pulumi.String("auto"),
LinkDuplex: pulumi.String("full"),
LinkState: pulumi.String("auto"),
Layer3: &scm.EthernetInterfaceLayer3Args{
Ips: scm.EthernetInterfaceLayer3IpArray{
&scm.EthernetInterfaceLayer3IpArgs{
Name: pulumi.String("10.10.10.1/24"),
},
},
},
})
if err != nil {
return err
}
// Configure DHCP server on the interface
_, err = scm.NewDhcpInterface(ctx, "dhcp_server_example", &scm.DhcpInterfaceArgs{
Folder: pulumi.String("ngfw-shared"),
Name: testInterface.Name,
Server: &scm.DhcpInterfaceServerArgs{
IpPools: pulumi.StringArray{
pulumi.String("10.10.10.10-10.10.10.200"),
},
Mode: pulumi.String("auto"),
ProbeIp: pulumi.Bool(true),
Option: &scm.DhcpInterfaceServerOptionArgs{
Dns: &scm.DhcpInterfaceServerOptionDnsArgs{
Primary: pulumi.String("8.8.8.8"),
Secondary: pulumi.String("1.1.1.1"),
},
DnsSuffix: pulumi.String("example.local"),
Gateway: pulumi.String("10.10.10.1"),
SubnetMask: pulumi.String("255.255.255.0"),
Pop3Server: pulumi.String("192.0.2.25"),
SmtpServer: pulumi.String("192.0.2.26"),
Lease: &scm.DhcpInterfaceServerOptionLeaseArgs{
Timeout: pulumi.Int(3600),
},
Ntp: &scm.DhcpInterfaceServerOptionNtpArgs{
Primary: pulumi.String("129.6.15.28"),
Secondary: pulumi.String("132.163.96.1"),
},
Wins: &scm.DhcpInterfaceServerOptionWinsArgs{
Primary: pulumi.String("192.168.1.1"),
Secondary: pulumi.String("192.168.1.2"),
},
Nis: &scm.DhcpInterfaceServerOptionNisArgs{
Primary: pulumi.String("192.0.2.10"),
Secondary: pulumi.String("192.0.2.11"),
},
UserDefineds: scm.DhcpInterfaceServerOptionUserDefinedArray{
&scm.DhcpInterfaceServerOptionUserDefinedArgs{
Inherited: pulumi.Bool(true),
Name: pulumi.String("option-foo"),
Code: pulumi.Int(224),
Ip: []string{
"192.0.2.10",
},
},
},
},
Reserveds: scm.DhcpInterfaceServerReservedArray{
&scm.DhcpInterfaceServerReservedArgs{
Description: pulumi.String("Reserved lease for printer"),
Mac: pulumi.String("aa:bb:cc:dd:ee:ff"),
Name: pulumi.String("10.10.10.50"),
},
},
},
}, pulumi.DependsOn([]pulumi.Resource{
testInterface,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
// Create a Layer3 ethernet interface first
var testInterface = new Scm.EthernetInterface("test_interface", new()
{
Name = "$test-interface",
Comment = "Interface for DHCP server - Managed by Terraform",
Folder = "ngfw-shared",
LinkSpeed = "auto",
LinkDuplex = "full",
LinkState = "auto",
Layer3 = new Scm.Inputs.EthernetInterfaceLayer3Args
{
Ips = new[]
{
new Scm.Inputs.EthernetInterfaceLayer3IpArgs
{
Name = "10.10.10.1/24",
},
},
},
});
// Configure DHCP server on the interface
var dhcpServerExample = new Scm.DhcpInterface("dhcp_server_example", new()
{
Folder = "ngfw-shared",
Name = testInterface.Name,
Server = new Scm.Inputs.DhcpInterfaceServerArgs
{
IpPools = new[]
{
"10.10.10.10-10.10.10.200",
},
Mode = "auto",
ProbeIp = true,
Option = new Scm.Inputs.DhcpInterfaceServerOptionArgs
{
Dns = new Scm.Inputs.DhcpInterfaceServerOptionDnsArgs
{
Primary = "8.8.8.8",
Secondary = "1.1.1.1",
},
DnsSuffix = "example.local",
Gateway = "10.10.10.1",
SubnetMask = "255.255.255.0",
Pop3Server = "192.0.2.25",
SmtpServer = "192.0.2.26",
Lease = new Scm.Inputs.DhcpInterfaceServerOptionLeaseArgs
{
Timeout = 3600,
},
Ntp = new Scm.Inputs.DhcpInterfaceServerOptionNtpArgs
{
Primary = "129.6.15.28",
Secondary = "132.163.96.1",
},
Wins = new Scm.Inputs.DhcpInterfaceServerOptionWinsArgs
{
Primary = "192.168.1.1",
Secondary = "192.168.1.2",
},
Nis = new Scm.Inputs.DhcpInterfaceServerOptionNisArgs
{
Primary = "192.0.2.10",
Secondary = "192.0.2.11",
},
UserDefineds = new[]
{
new Scm.Inputs.DhcpInterfaceServerOptionUserDefinedArgs
{
Inherited = true,
Name = "option-foo",
Code = 224,
Ip = new[]
{
"192.0.2.10",
},
},
},
},
Reserveds = new[]
{
new Scm.Inputs.DhcpInterfaceServerReservedArgs
{
Description = "Reserved lease for printer",
Mac = "aa:bb:cc:dd:ee:ff",
Name = "10.10.10.50",
},
},
},
}, new CustomResourceOptions
{
DependsOn =
{
testInterface,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.EthernetInterface;
import com.pulumi.scm.EthernetInterfaceArgs;
import com.pulumi.scm.inputs.EthernetInterfaceLayer3Args;
import com.pulumi.scm.inputs.EthernetInterfaceLayer3IpArgs;
import com.pulumi.scm.DhcpInterface;
import com.pulumi.scm.DhcpInterfaceArgs;
import com.pulumi.scm.inputs.DhcpInterfaceServerArgs;
import com.pulumi.scm.inputs.DhcpInterfaceServerOptionArgs;
import com.pulumi.scm.inputs.DhcpInterfaceServerOptionDnsArgs;
import com.pulumi.scm.inputs.DhcpInterfaceServerOptionLeaseArgs;
import com.pulumi.scm.inputs.DhcpInterfaceServerOptionNtpArgs;
import com.pulumi.scm.inputs.DhcpInterfaceServerOptionWinsArgs;
import com.pulumi.scm.inputs.DhcpInterfaceServerOptionNisArgs;
import com.pulumi.scm.inputs.DhcpInterfaceServerOptionUserDefinedArgs;
import com.pulumi.scm.inputs.DhcpInterfaceServerReservedArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.ArrayList;
import java.util.Arrays;
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) {
// Create a Layer3 ethernet interface first
var testInterface = new EthernetInterface("testInterface", EthernetInterfaceArgs.builder()
.name("$test-interface")
.comment("Interface for DHCP server - Managed by Terraform")
.folder("ngfw-shared")
.linkSpeed("auto")
.linkDuplex("full")
.linkState("auto")
.layer3(EthernetInterfaceLayer3Args.builder()
.ips(EthernetInterfaceLayer3IpArgs.builder()
.name("10.10.10.1/24")
.build())
.build())
.build());
// Configure DHCP server on the interface
var dhcpServerExample = new DhcpInterface("dhcpServerExample", DhcpInterfaceArgs.builder()
.folder("ngfw-shared")
.name(testInterface.name())
.server(DhcpInterfaceServerArgs.builder()
.ipPools("10.10.10.10-10.10.10.200")
.mode("auto")
.probeIp(true)
.option(DhcpInterfaceServerOptionArgs.builder()
.dns(DhcpInterfaceServerOptionDnsArgs.builder()
.primary("8.8.8.8")
.secondary("1.1.1.1")
.build())
.dnsSuffix("example.local")
.gateway("10.10.10.1")
.subnetMask("255.255.255.0")
.pop3Server("192.0.2.25")
.smtpServer("192.0.2.26")
.lease(DhcpInterfaceServerOptionLeaseArgs.builder()
.timeout(3600)
.build())
.ntp(DhcpInterfaceServerOptionNtpArgs.builder()
.primary("129.6.15.28")
.secondary("132.163.96.1")
.build())
.wins(DhcpInterfaceServerOptionWinsArgs.builder()
.primary("192.168.1.1")
.secondary("192.168.1.2")
.build())
.nis(DhcpInterfaceServerOptionNisArgs.builder()
.primary("192.0.2.10")
.secondary("192.0.2.11")
.build())
.userDefineds(DhcpInterfaceServerOptionUserDefinedArgs.builder()
.inherited(true)
.name("option-foo")
.code(224)
.ip(Arrays.asList("192.0.2.10"))
.build())
.build())
.reserveds(DhcpInterfaceServerReservedArgs.builder()
.description("Reserved lease for printer")
.mac("aa:bb:cc:dd:ee:ff")
.name("10.10.10.50")
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(testInterface)
.build());
}
}
resources:
# Create a Layer3 ethernet interface first
testInterface:
type: scm:EthernetInterface
name: test_interface
properties:
name: $test-interface
comment: Interface for DHCP server - Managed by Terraform
folder: ngfw-shared
linkSpeed: auto
linkDuplex: full
linkState: auto
layer3:
ips:
- name: 10.10.10.1/24
# Configure DHCP server on the interface
dhcpServerExample:
type: scm:DhcpInterface
name: dhcp_server_example
properties:
folder: ngfw-shared
name: ${testInterface.name}
server:
ipPools:
- 10.10.10.10-10.10.10.200
mode: auto
probeIp: true
option:
dns:
primary: 8.8.8.8
secondary: 1.1.1.1
dnsSuffix: example.local
gateway: 10.10.10.1
subnetMask: 255.255.255.0
pop3Server: 192.0.2.25
smtpServer: 192.0.2.26
lease:
timeout: 3600
ntp:
primary: 129.6.15.28
secondary: 132.163.96.1
wins:
primary: 192.168.1.1
secondary: 192.168.1.2
nis:
primary: 192.0.2.10
secondary: 192.0.2.11
userDefineds:
- inherited: true
name: option-foo
code: 224
ip:
- 192.0.2.10
reserveds:
- description: Reserved lease for printer
mac: aa:bb:cc:dd:ee:ff
name: 10.10.10.50
options:
dependsOn:
- ${testInterface}
terraform {
required_providers {
scm = {
source = "pulumi/scm"
}
}
}
# Create a Layer3 ethernet interface first
resource "scm_ethernet_interface" "test_interface" {
lifecycle {
create_before_destroy = true
}
name = "$test-interface"
comment = "Interface for DHCP server - Managed by Terraform"
folder = "ngfw-shared"
link_speed = "auto"
link_duplex = "full"
link_state = "auto"
layer3 = {
ips = [{
name = "10.10.10.1/24"
}]
}
}
# Configure DHCP server on the interface
resource "scm_dhcp_interface" "dhcp_server_example" {
depends_on = [scm_ethernet_interface.test_interface]
lifecycle {
create_before_destroy = true
}
folder = "ngfw-shared"
name = scm_ethernet_interface.test_interface.name
server = {
ip_pools = ["10.10.10.10-10.10.10.200"]
mode = "auto"
probe_ip = true
option = {
dns = {
primary = "8.8.8.8"
secondary = "1.1.1.1"
}
dns_suffix = "example.local"
gateway = "10.10.10.1"
subnet_mask = "255.255.255.0"
pop3_server = "192.0.2.25"
smtp_server = "192.0.2.26"
lease = {
timeout = 3600
}
ntp = {
primary = "129.6.15.28"
secondary = "132.163.96.1"
}
wins = {
primary = "192.168.1.1"
secondary = "192.168.1.2"
}
nis = {
primary = "192.0.2.10"
secondary = "192.0.2.11"
}
user_defineds = [{
inherited = true
name = "option-foo"
code = 224
ip = ["192.0.2.10"]
}]
}
reserveds = [{
description = "Reserved lease for printer"
mac = "aa:bb:cc:dd:ee:ff"
name = "10.10.10.50"
}]
}
}
Create DhcpInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DhcpInterface(name: string, args?: DhcpInterfaceArgs, opts?: CustomResourceOptions);@overload
def DhcpInterface(resource_name: str,
args: Optional[DhcpInterfaceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DhcpInterface(resource_name: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
relay: Optional[DhcpInterfaceRelayArgs] = None,
server: Optional[DhcpInterfaceServerArgs] = None,
snippet: Optional[str] = None)func NewDhcpInterface(ctx *Context, name string, args *DhcpInterfaceArgs, opts ...ResourceOption) (*DhcpInterface, error)public DhcpInterface(string name, DhcpInterfaceArgs? args = null, CustomResourceOptions? opts = null)
public DhcpInterface(String name, DhcpInterfaceArgs args)
public DhcpInterface(String name, DhcpInterfaceArgs args, CustomResourceOptions options)
type: scm:DhcpInterface
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "scm_dhcp_interface" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DhcpInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DhcpInterfaceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DhcpInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DhcpInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DhcpInterfaceArgs
- 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 dhcpInterfaceResource = new Scm.DhcpInterface("dhcpInterfaceResource", new()
{
Device = "string",
Folder = "string",
Name = "string",
Relay = new Scm.Inputs.DhcpInterfaceRelayArgs
{
Ip = new Scm.Inputs.DhcpInterfaceRelayIpArgs
{
Enabled = false,
Servers = new[]
{
"string",
},
},
},
Server = new Scm.Inputs.DhcpInterfaceServerArgs
{
IpPools = new[]
{
"string",
},
Mode = "string",
Option = new Scm.Inputs.DhcpInterfaceServerOptionArgs
{
Dns = new Scm.Inputs.DhcpInterfaceServerOptionDnsArgs
{
Primary = "string",
Secondary = "string",
},
DnsSuffix = "string",
Gateway = "string",
Inheritance = new Scm.Inputs.DhcpInterfaceServerOptionInheritanceArgs
{
Source = "string",
},
Lease = new Scm.Inputs.DhcpInterfaceServerOptionLeaseArgs
{
Timeout = 0,
Unlimited = null,
},
Nis = new Scm.Inputs.DhcpInterfaceServerOptionNisArgs
{
Primary = "string",
Secondary = "string",
},
Ntp = new Scm.Inputs.DhcpInterfaceServerOptionNtpArgs
{
Primary = "string",
Secondary = "string",
},
Pop3Server = "string",
SmtpServer = "string",
SubnetMask = "string",
UserDefineds = new[]
{
new Scm.Inputs.DhcpInterfaceServerOptionUserDefinedArgs
{
Inherited = false,
Name = "string",
Asciis = new[]
{
"string",
},
Code = 0,
Hexes = new[]
{
"string",
},
Ips = new[]
{
"string",
},
},
},
Wins = new Scm.Inputs.DhcpInterfaceServerOptionWinsArgs
{
Primary = "string",
Secondary = "string",
},
},
ProbeIp = false,
Reserveds = new[]
{
new Scm.Inputs.DhcpInterfaceServerReservedArgs
{
Description = "string",
Mac = "string",
Name = "string",
},
},
},
Snippet = "string",
});
example, err := scm.NewDhcpInterface(ctx, "dhcpInterfaceResource", &scm.DhcpInterfaceArgs{
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Name: pulumi.String("string"),
Relay: &scm.DhcpInterfaceRelayArgs{
Ip: &scm.DhcpInterfaceRelayIpArgs{
Enabled: pulumi.Bool(false),
Servers: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Server: &scm.DhcpInterfaceServerArgs{
IpPools: pulumi.StringArray{
pulumi.String("string"),
},
Mode: pulumi.String("string"),
Option: &scm.DhcpInterfaceServerOptionArgs{
Dns: &scm.DhcpInterfaceServerOptionDnsArgs{
Primary: pulumi.String("string"),
Secondary: pulumi.String("string"),
},
DnsSuffix: pulumi.String("string"),
Gateway: pulumi.String("string"),
Inheritance: &scm.DhcpInterfaceServerOptionInheritanceArgs{
Source: pulumi.String("string"),
},
Lease: &scm.DhcpInterfaceServerOptionLeaseArgs{
Timeout: pulumi.Int(0),
Unlimited: &scm.DhcpInterfaceServerOptionLeaseUnlimitedArgs{},
},
Nis: &scm.DhcpInterfaceServerOptionNisArgs{
Primary: pulumi.String("string"),
Secondary: pulumi.String("string"),
},
Ntp: &scm.DhcpInterfaceServerOptionNtpArgs{
Primary: pulumi.String("string"),
Secondary: pulumi.String("string"),
},
Pop3Server: pulumi.String("string"),
SmtpServer: pulumi.String("string"),
SubnetMask: pulumi.String("string"),
UserDefineds: scm.DhcpInterfaceServerOptionUserDefinedArray{
&scm.DhcpInterfaceServerOptionUserDefinedArgs{
Inherited: pulumi.Bool(false),
Name: pulumi.String("string"),
Asciis: pulumi.StringArray{
pulumi.String("string"),
},
Code: pulumi.Int(0),
Hexes: pulumi.StringArray{
pulumi.String("string"),
},
Ips: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Wins: &scm.DhcpInterfaceServerOptionWinsArgs{
Primary: pulumi.String("string"),
Secondary: pulumi.String("string"),
},
},
ProbeIp: pulumi.Bool(false),
Reserveds: scm.DhcpInterfaceServerReservedArray{
&scm.DhcpInterfaceServerReservedArgs{
Description: pulumi.String("string"),
Mac: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
},
Snippet: pulumi.String("string"),
})
resource "scm_dhcp_interface" "dhcpInterfaceResource" {
lifecycle {
create_before_destroy = true
}
device = "string"
folder = "string"
name = "string"
relay = {
ip = {
enabled = false
servers = ["string"]
}
}
server = {
ip_pools = ["string"]
mode = "string"
option = {
dns = {
primary = "string"
secondary = "string"
}
dns_suffix = "string"
gateway = "string"
inheritance = {
source = "string"
}
lease = {
timeout = 0
unlimited = {}
}
nis = {
primary = "string"
secondary = "string"
}
ntp = {
primary = "string"
secondary = "string"
}
pop3_server = "string"
smtp_server = "string"
subnet_mask = "string"
user_defineds = [{
inherited = false
name = "string"
asciis = ["string"]
code = 0
hexes = ["string"]
ips = ["string"]
}]
wins = {
primary = "string"
secondary = "string"
}
}
probe_ip = false
reserveds = [{
description = "string"
mac = "string"
name = "string"
}]
}
snippet = "string"
}
var dhcpInterfaceResource = new DhcpInterface("dhcpInterfaceResource", DhcpInterfaceArgs.builder()
.device("string")
.folder("string")
.name("string")
.relay(DhcpInterfaceRelayArgs.builder()
.ip(DhcpInterfaceRelayIpArgs.builder()
.enabled(false)
.servers("string")
.build())
.build())
.server(DhcpInterfaceServerArgs.builder()
.ipPools("string")
.mode("string")
.option(DhcpInterfaceServerOptionArgs.builder()
.dns(DhcpInterfaceServerOptionDnsArgs.builder()
.primary("string")
.secondary("string")
.build())
.dnsSuffix("string")
.gateway("string")
.inheritance(DhcpInterfaceServerOptionInheritanceArgs.builder()
.source("string")
.build())
.lease(DhcpInterfaceServerOptionLeaseArgs.builder()
.timeout(0)
.unlimited(DhcpInterfaceServerOptionLeaseUnlimitedArgs.builder()
.build())
.build())
.nis(DhcpInterfaceServerOptionNisArgs.builder()
.primary("string")
.secondary("string")
.build())
.ntp(DhcpInterfaceServerOptionNtpArgs.builder()
.primary("string")
.secondary("string")
.build())
.pop3Server("string")
.smtpServer("string")
.subnetMask("string")
.userDefineds(DhcpInterfaceServerOptionUserDefinedArgs.builder()
.inherited(false)
.name("string")
.asciis("string")
.code(0)
.hexes("string")
.ips("string")
.build())
.wins(DhcpInterfaceServerOptionWinsArgs.builder()
.primary("string")
.secondary("string")
.build())
.build())
.probeIp(false)
.reserveds(DhcpInterfaceServerReservedArgs.builder()
.description("string")
.mac("string")
.name("string")
.build())
.build())
.snippet("string")
.build());
dhcp_interface_resource = scm.DhcpInterface("dhcpInterfaceResource",
device="string",
folder="string",
name="string",
relay={
"ip": {
"enabled": False,
"servers": ["string"],
},
},
server={
"ip_pools": ["string"],
"mode": "string",
"option": {
"dns": {
"primary": "string",
"secondary": "string",
},
"dns_suffix": "string",
"gateway": "string",
"inheritance": {
"source": "string",
},
"lease": {
"timeout": 0,
"unlimited": {},
},
"nis": {
"primary": "string",
"secondary": "string",
},
"ntp": {
"primary": "string",
"secondary": "string",
},
"pop3_server": "string",
"smtp_server": "string",
"subnet_mask": "string",
"user_defineds": [{
"inherited": False,
"name": "string",
"asciis": ["string"],
"code": 0,
"hexes": ["string"],
"ips": ["string"],
}],
"wins": {
"primary": "string",
"secondary": "string",
},
},
"probe_ip": False,
"reserveds": [{
"description": "string",
"mac": "string",
"name": "string",
}],
},
snippet="string")
const dhcpInterfaceResource = new scm.DhcpInterface("dhcpInterfaceResource", {
device: "string",
folder: "string",
name: "string",
relay: {
ip: {
enabled: false,
servers: ["string"],
},
},
server: {
ipPools: ["string"],
mode: "string",
option: {
dns: {
primary: "string",
secondary: "string",
},
dnsSuffix: "string",
gateway: "string",
inheritance: {
source: "string",
},
lease: {
timeout: 0,
unlimited: {},
},
nis: {
primary: "string",
secondary: "string",
},
ntp: {
primary: "string",
secondary: "string",
},
pop3Server: "string",
smtpServer: "string",
subnetMask: "string",
userDefineds: [{
inherited: false,
name: "string",
asciis: ["string"],
code: 0,
hexes: ["string"],
ips: ["string"],
}],
wins: {
primary: "string",
secondary: "string",
},
},
probeIp: false,
reserveds: [{
description: "string",
mac: "string",
name: "string",
}],
},
snippet: "string",
});
type: scm:DhcpInterface
properties:
device: string
folder: string
name: string
relay:
ip:
enabled: false
servers:
- string
server:
ipPools:
- string
mode: string
option:
dns:
primary: string
secondary: string
dnsSuffix: string
gateway: string
inheritance:
source: string
lease:
timeout: 0
unlimited: {}
nis:
primary: string
secondary: string
ntp:
primary: string
secondary: string
pop3Server: string
smtpServer: string
subnetMask: string
userDefineds:
- asciis:
- string
code: 0
hexes:
- string
inherited: false
ips:
- string
name: string
wins:
primary: string
secondary: string
probeIp: false
reserveds:
- description: string
mac: string
name: string
snippet: string
DhcpInterface 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 DhcpInterface resource accepts the following input properties:
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- Interface name
- Relay
Dhcp
Interface Relay - Relay
- Server
Dhcp
Interface Server - Server
- Snippet string
- The snippet in which the resource is defined
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- Interface name
- Relay
Dhcp
Interface Relay Args - Relay
- Server
Dhcp
Interface Server Args - Server
- Snippet string
- The snippet in which the resource is defined
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- Interface name
- relay
Dhcp
Interface Relay - Relay
- server
Dhcp
Interface Server - Server
- snippet String
- The snippet in which the resource is defined
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- name string
- Interface name
- relay
Dhcp
Interface Relay - Relay
- server
Dhcp
Interface Server - Server
- snippet string
- The snippet in which the resource is defined
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- name str
- Interface name
- relay
Dhcp
Interface Relay Args - Relay
- server
Dhcp
Interface Server Args - Server
- snippet str
- The snippet in which the resource is defined
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- Interface name
- relay Property Map
- Relay
- server Property Map
- Server
- snippet String
- The snippet in which the resource is defined
Outputs
All input properties are implicitly available as output properties. Additionally, the DhcpInterface resource produces the following output properties:
Look up Existing DhcpInterface Resource
Get an existing DhcpInterface 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?: DhcpInterfaceState, opts?: CustomResourceOptions): DhcpInterface@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
relay: Optional[DhcpInterfaceRelayArgs] = None,
server: Optional[DhcpInterfaceServerArgs] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None) -> DhcpInterfacefunc GetDhcpInterface(ctx *Context, name string, id IDInput, state *DhcpInterfaceState, opts ...ResourceOption) (*DhcpInterface, error)public static DhcpInterface Get(string name, Input<string> id, DhcpInterfaceState? state, CustomResourceOptions? opts = null)public static DhcpInterface get(String name, Output<String> id, DhcpInterfaceState state, CustomResourceOptions options)resources: _: type: scm:DhcpInterface get: id: ${id}import {
to = scm_dhcp_interface.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- Interface name
- Relay
Dhcp
Interface Relay - Relay
- Server
Dhcp
Interface Server - Server
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- The Terraform ID.
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- Interface name
- Relay
Dhcp
Interface Relay Args - Relay
- Server
Dhcp
Interface Server Args - Server
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- The Terraform ID.
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- Interface name
- relay
Dhcp
Interface Relay - Relay
- server
Dhcp
Interface Server - Server
- snippet String
- The snippet in which the resource is defined
- tfid String
- The Terraform ID.
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- name string
- Interface name
- relay
Dhcp
Interface Relay - Relay
- server
Dhcp
Interface Server - Server
- snippet string
- The snippet in which the resource is defined
- tfid string
- The Terraform ID.
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- name str
- Interface name
- relay
Dhcp
Interface Relay Args - Relay
- server
Dhcp
Interface Server Args - Server
- snippet str
- The snippet in which the resource is defined
- tfid str
- The Terraform ID.
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- Interface name
- relay Property Map
- Relay
- server Property Map
- Server
- snippet String
- The snippet in which the resource is defined
- tfid String
- The Terraform ID.
Supporting Types
DhcpInterfaceRelay, DhcpInterfaceRelayArgs
DhcpInterfaceRelayIp, DhcpInterfaceRelayIpArgs
DhcpInterfaceServer, DhcpInterfaceServerArgs
- Ip
Pools List<string> - List of IP address pools
- Mode string
- DHCP server mode. Possible values are
auto,enabledanddisabled. - Option
Dhcp
Interface Server Option - Option
- Probe
Ip bool - Ping IP before allocating?
- Reserveds
List<Dhcp
Interface Server Reserved> - List of IP reservations
- Ip
Pools []string - List of IP address pools
- Mode string
- DHCP server mode. Possible values are
auto,enabledanddisabled. - Option
Dhcp
Interface Server Option - Option
- Probe
Ip bool - Ping IP before allocating?
- Reserveds
[]Dhcp
Interface Server Reserved - List of IP reservations
- ip
Pools List<String> - List of IP address pools
- mode String
- DHCP server mode. Possible values are
auto,enabledanddisabled. - option
Dhcp
Interface Server Option - Option
- probe
Ip Boolean - Ping IP before allocating?
- reserveds
List<Dhcp
Interface Server Reserved> - List of IP reservations
- ip
Pools string[] - List of IP address pools
- mode string
- DHCP server mode. Possible values are
auto,enabledanddisabled. - option
Dhcp
Interface Server Option - Option
- probe
Ip boolean - Ping IP before allocating?
- reserveds
Dhcp
Interface Server Reserved[] - List of IP reservations
- ip_
pools Sequence[str] - List of IP address pools
- mode str
- DHCP server mode. Possible values are
auto,enabledanddisabled. - option
Dhcp
Interface Server Option - Option
- probe_
ip bool - Ping IP before allocating?
- reserveds
Sequence[Dhcp
Interface Server Reserved] - List of IP reservations
- ip
Pools List<String> - List of IP address pools
- mode String
- DHCP server mode. Possible values are
auto,enabledanddisabled. - option Property Map
- Option
- probe
Ip Boolean - Ping IP before allocating?
- reserveds List<Property Map>
- List of IP reservations
DhcpInterfaceServerOption, DhcpInterfaceServerOptionArgs
- Dns
Dhcp
Interface Server Option Dns - Dns
- Dns
Suffix string - DNS suffix
- Gateway string
- Default gateway
- Inheritance
Dhcp
Interface Server Option Inheritance - Inheritance
- Lease
Dhcp
Interface Server Option Lease - Lease
- Nis
Dhcp
Interface Server Option Nis - Nis
- Ntp
Dhcp
Interface Server Option Ntp - Ntp
- Pop3Server string
- POP3 server
- Smtp
Server string - SMTP server
- Subnet
Mask string - Subnet mask
- User
Defineds List<DhcpInterface Server Option User Defined> - Custom DHCP options
- Wins
Dhcp
Interface Server Option Wins - Wins
- Dns
Dhcp
Interface Server Option Dns - Dns
- Dns
Suffix string - DNS suffix
- Gateway string
- Default gateway
- Inheritance
Dhcp
Interface Server Option Inheritance - Inheritance
- Lease
Dhcp
Interface Server Option Lease - Lease
- Nis
Dhcp
Interface Server Option Nis - Nis
- Ntp
Dhcp
Interface Server Option Ntp - Ntp
- Pop3Server string
- POP3 server
- Smtp
Server string - SMTP server
- Subnet
Mask string - Subnet mask
- User
Defineds []DhcpInterface Server Option User Defined - Custom DHCP options
- Wins
Dhcp
Interface Server Option Wins - Wins
- dns object
- Dns
- dns_
suffix string - DNS suffix
- gateway string
- Default gateway
- inheritance object
- Inheritance
- lease object
- Lease
- nis object
- Nis
- ntp object
- Ntp
- pop3_
server string - POP3 server
- smtp_
server string - SMTP server
- subnet_
mask string - Subnet mask
- user_
defineds list(object) - Custom DHCP options
- wins object
- Wins
- dns
Dhcp
Interface Server Option Dns - Dns
- dns
Suffix String - DNS suffix
- gateway String
- Default gateway
- inheritance
Dhcp
Interface Server Option Inheritance - Inheritance
- lease
Dhcp
Interface Server Option Lease - Lease
- nis
Dhcp
Interface Server Option Nis - Nis
- ntp
Dhcp
Interface Server Option Ntp - Ntp
- pop3Server String
- POP3 server
- smtp
Server String - SMTP server
- subnet
Mask String - Subnet mask
- user
Defineds List<DhcpInterface Server Option User Defined> - Custom DHCP options
- wins
Dhcp
Interface Server Option Wins - Wins
- dns
Dhcp
Interface Server Option Dns - Dns
- dns
Suffix string - DNS suffix
- gateway string
- Default gateway
- inheritance
Dhcp
Interface Server Option Inheritance - Inheritance
- lease
Dhcp
Interface Server Option Lease - Lease
- nis
Dhcp
Interface Server Option Nis - Nis
- ntp
Dhcp
Interface Server Option Ntp - Ntp
- pop3Server string
- POP3 server
- smtp
Server string - SMTP server
- subnet
Mask string - Subnet mask
- user
Defineds DhcpInterface Server Option User Defined[] - Custom DHCP options
- wins
Dhcp
Interface Server Option Wins - Wins
- dns
Dhcp
Interface Server Option Dns - Dns
- dns_
suffix str - DNS suffix
- gateway str
- Default gateway
- inheritance
Dhcp
Interface Server Option Inheritance - Inheritance
- lease
Dhcp
Interface Server Option Lease - Lease
- nis
Dhcp
Interface Server Option Nis - Nis
- ntp
Dhcp
Interface Server Option Ntp - Ntp
- pop3_
server str - POP3 server
- smtp_
server str - SMTP server
- subnet_
mask str - Subnet mask
- user_
defineds Sequence[DhcpInterface Server Option User Defined] - Custom DHCP options
- wins
Dhcp
Interface Server Option Wins - Wins
- dns Property Map
- Dns
- dns
Suffix String - DNS suffix
- gateway String
- Default gateway
- inheritance Property Map
- Inheritance
- lease Property Map
- Lease
- nis Property Map
- Nis
- ntp Property Map
- Ntp
- pop3Server String
- POP3 server
- smtp
Server String - SMTP server
- subnet
Mask String - Subnet mask
- user
Defineds List<Property Map> - Custom DHCP options
- wins Property Map
- Wins
DhcpInterfaceServerOptionDns, DhcpInterfaceServerOptionDnsArgs
DhcpInterfaceServerOptionInheritance, DhcpInterfaceServerOptionInheritanceArgs
- Source string
- Interface from which to inherit lease options
- Source string
- Interface from which to inherit lease options
- source string
- Interface from which to inherit lease options
- source String
- Interface from which to inherit lease options
- source string
- Interface from which to inherit lease options
- source str
- Interface from which to inherit lease options
- source String
- Interface from which to inherit lease options
DhcpInterfaceServerOptionLease, DhcpInterfaceServerOptionLeaseArgs
- Timeout int
- DHCP lease timeout (minutes)
- Unlimited
Dhcp
Interface Server Option Lease Unlimited - Unlimited
- Timeout int
- DHCP lease timeout (minutes)
- Unlimited
Dhcp
Interface Server Option Lease Unlimited - Unlimited
- timeout Integer
- DHCP lease timeout (minutes)
- unlimited
Dhcp
Interface Server Option Lease Unlimited - Unlimited
- timeout number
- DHCP lease timeout (minutes)
- unlimited
Dhcp
Interface Server Option Lease Unlimited - Unlimited
- timeout int
- DHCP lease timeout (minutes)
- unlimited
Dhcp
Interface Server Option Lease Unlimited - Unlimited
- timeout Number
- DHCP lease timeout (minutes)
- unlimited Property Map
- Unlimited
DhcpInterfaceServerOptionNis, DhcpInterfaceServerOptionNisArgs
DhcpInterfaceServerOptionNtp, DhcpInterfaceServerOptionNtpArgs
DhcpInterfaceServerOptionUserDefined, DhcpInterfaceServerOptionUserDefinedArgs
DhcpInterfaceServerOptionWins, DhcpInterfaceServerOptionWinsArgs
DhcpInterfaceServerReserved, DhcpInterfaceServerReservedArgs
- Description string
- Reservation description
- Mac string
- Reserved MAC address
- Name string
- Reserved IP address
- Description string
- Reservation description
- Mac string
- Reserved MAC address
- Name string
- Reserved IP address
- description string
- Reservation description
- mac string
- Reserved MAC address
- name string
- Reserved IP address
- description String
- Reservation description
- mac String
- Reserved MAC address
- name String
- Reserved IP address
- description string
- Reservation description
- mac string
- Reserved MAC address
- name string
- Reserved IP address
- description str
- Reservation description
- mac str
- Reserved MAC address
- name str
- Reserved IP address
- description String
- Reservation description
- mac String
- Reserved MAC address
- name String
- Reserved IP address
Import
The following command can be used to import a resource not managed by Terraform:
$ pulumi import scm:index/dhcpInterface:DhcpInterface example folder:::id
or
$ pulumi import scm:index/dhcpInterface:DhcpInterface example :snippet::id
or
$ pulumi import scm:index/dhcpInterface:DhcpInterface example ::device:id
Note: Please provide just one of folder, snippet, or device for the import command.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
Strata Cloud Managerpublished on Friday, Oct 16, 2026 by Pulumi