DhcpInterface resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const dhcpServerExample = new scm.DhcpInterface("dhcp_server_example", {
folder: "ngfw-shared",
name: "$test-interface-must-exist",
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",
}],
},
});
import pulumi
import pulumi_scm as scm
dhcp_server_example = scm.DhcpInterface("dhcp_server_example",
folder="ngfw-shared",
name="$test-interface-must-exist",
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",
}],
})
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 {
_, err := scm.NewDhcpInterface(ctx, "dhcp_server_example", &scm.DhcpInterfaceArgs{
Folder: pulumi.String("ngfw-shared"),
Name: pulumi.String("$test-interface-must-exist"),
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"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var dhcpServerExample = new Scm.DhcpInterface("dhcp_server_example", new()
{
Folder = "ngfw-shared",
Name = "$test-interface-must-exist",
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",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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 java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var dhcpServerExample = new DhcpInterface("dhcpServerExample", DhcpInterfaceArgs.builder()
.folder("ngfw-shared")
.name("$test-interface-must-exist")
.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(List.of("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());
}
}
resources:
dhcpServerExample:
type: scm:DhcpInterface
name: dhcp_server_example
properties:
folder: ngfw-shared
name: $test-interface-must-exist
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
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.
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"),
})
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
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- Interface name
- Relay
Dhcp
Interface Relay Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- Server
Dhcp
Interface Server Server
ℹ️ Note: You must specify exactly one of
relayandserver.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- Interface name
- Relay
Dhcp
Interface Relay Args Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- Server
Dhcp
Interface Server Args Server
ℹ️ Note: You must specify exactly one of
relayandserver.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- Interface name
- relay
Dhcp
Interface Relay Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- server
Dhcp
Interface Server Server
ℹ️ Note: You must specify exactly one of
relayandserver.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name string
- Interface name
- relay
Dhcp
Interface Relay Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- server
Dhcp
Interface Server Server
ℹ️ Note: You must specify exactly one of
relayandserver.- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name str
- Interface name
- relay
Dhcp
Interface Relay Args Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- server
Dhcp
Interface Server Args Server
ℹ️ Note: You must specify exactly one of
relayandserver.- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- Interface name
- relay Property Map
Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- server Property Map
Server
ℹ️ Note: You must specify exactly one of
relayandserver.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
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}- 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
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- Interface name
- Relay
Dhcp
Interface Relay Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- Server
Dhcp
Interface Server Server
ℹ️ Note: You must specify exactly one of
relayandserver.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- Interface name
- Relay
Dhcp
Interface Relay Args Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- Server
Dhcp
Interface Server Args Server
ℹ️ Note: You must specify exactly one of
relayandserver.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- Interface name
- relay
Dhcp
Interface Relay Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- server
Dhcp
Interface Server Server
ℹ️ Note: You must specify exactly one of
relayandserver.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name string
- Interface name
- relay
Dhcp
Interface Relay Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- server
Dhcp
Interface Server Server
ℹ️ Note: You must specify exactly one of
relayandserver.- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid string
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name str
- Interface name
- relay
Dhcp
Interface Relay Args Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- server
Dhcp
Interface Server Args Server
ℹ️ Note: You must specify exactly one of
relayandserver.- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid str
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- Interface name
- relay Property Map
Relay
ℹ️ Note: You must specify exactly one of
relayandserver.- server Property Map
Server
ℹ️ Note: You must specify exactly one of
relayandserver.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
Supporting Types
DhcpInterfaceRelay, DhcpInterfaceRelayArgs
DhcpInterfaceRelayIp, DhcpInterfaceRelayIpArgs
DhcpInterfaceServer, DhcpInterfaceServerArgs
- Ip
Pools List<string> - List of IP address pools
- Mode string
- DHCP server mode
- 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
- 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
- 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
- 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
- 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
- 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
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 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
ℹ️ Note: You must specify exactly one of
timeoutandunlimited.
- Timeout int
- DHCP lease timeout (minutes)
- Unlimited
Dhcp
Interface Server Option Lease Unlimited Unlimited
ℹ️ Note: You must specify exactly one of
timeoutandunlimited.
- timeout Integer
- DHCP lease timeout (minutes)
- unlimited
Dhcp
Interface Server Option Lease Unlimited Unlimited
ℹ️ Note: You must specify exactly one of
timeoutandunlimited.
- timeout number
- DHCP lease timeout (minutes)
- unlimited
Dhcp
Interface Server Option Lease Unlimited Unlimited
ℹ️ Note: You must specify exactly one of
timeoutandunlimited.
- timeout int
- DHCP lease timeout (minutes)
- unlimited
Dhcp
Interface Server Option Lease Unlimited Unlimited
ℹ️ Note: You must specify exactly one of
timeoutandunlimited.
- timeout Number
- DHCP lease timeout (minutes)
- unlimited Property Map
Unlimited
ℹ️ Note: You must specify exactly one of
timeoutandunlimited.
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 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:
bash
$ pulumi import scm:index/dhcpInterface:DhcpInterface example folder:::id
or
bash
$ pulumi import scm:index/dhcpInterface:DhcpInterface example :snippet::id
or
bash
$ pulumi import scm:index/dhcpInterface:DhcpInterface example ::device:id
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.
