DhcpInterface data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
// We use the ID from the resource created above.
const singleInfById = scm.getDhcpInterface({
id: "b3544acb-fc55-4c6f-921d-4128b5a1d135",
});
export const singleDhcpInfName = singleInfById;
import pulumi
import pulumi_scm as scm
# We use the ID from the resource created above.
single_inf_by_id = scm.get_dhcp_interface(id="b3544acb-fc55-4c6f-921d-4128b5a1d135")
pulumi.export("singleDhcpInfName", single_inf_by_id)
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 {
// We use the ID from the resource created above.
singleInfById, err := scm.LookupDhcpInterface(ctx, &scm.LookupDhcpInterfaceArgs{
Id: "b3544acb-fc55-4c6f-921d-4128b5a1d135",
}, nil)
if err != nil {
return err
}
ctx.Export("singleDhcpInfName", singleInfById)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
// We use the ID from the resource created above.
var singleInfById = Scm.GetDhcpInterface.Invoke(new()
{
Id = "b3544acb-fc55-4c6f-921d-4128b5a1d135",
});
return new Dictionary<string, object?>
{
["singleDhcpInfName"] = singleInfById,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.ScmFunctions;
import com.pulumi.scm.inputs.GetDhcpInterfaceArgs;
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) {
// We use the ID from the resource created above.
final var singleInfById = ScmFunctions.getDhcpInterface(GetDhcpInterfaceArgs.builder()
.id("b3544acb-fc55-4c6f-921d-4128b5a1d135")
.build());
ctx.export("singleDhcpInfName", singleInfById);
}
}
variables:
# We use the ID from the resource created above.
singleInfById:
fn::invoke:
function: scm:getDhcpInterface
arguments:
id: b3544acb-fc55-4c6f-921d-4128b5a1d135
outputs:
singleDhcpInfName: ${singleInfById}
Using getDhcpInterface
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 getDhcpInterface(args: GetDhcpInterfaceArgs, opts?: InvokeOptions): Promise<GetDhcpInterfaceResult>
function getDhcpInterfaceOutput(args: GetDhcpInterfaceOutputArgs, opts?: InvokeOptions): Output<GetDhcpInterfaceResult>def get_dhcp_interface(device: Optional[str] = None,
folder: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDhcpInterfaceResult
def get_dhcp_interface_output(device: Optional[pulumi.Input[str]] = None,
folder: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
snippet: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDhcpInterfaceResult]func LookupDhcpInterface(ctx *Context, args *LookupDhcpInterfaceArgs, opts ...InvokeOption) (*LookupDhcpInterfaceResult, error)
func LookupDhcpInterfaceOutput(ctx *Context, args *LookupDhcpInterfaceOutputArgs, opts ...InvokeOption) LookupDhcpInterfaceResultOutput> Note: This function is named LookupDhcpInterface in the Go SDK.
public static class GetDhcpInterface
{
public static Task<GetDhcpInterfaceResult> InvokeAsync(GetDhcpInterfaceArgs args, InvokeOptions? opts = null)
public static Output<GetDhcpInterfaceResult> Invoke(GetDhcpInterfaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDhcpInterfaceResult> getDhcpInterface(GetDhcpInterfaceArgs args, InvokeOptions options)
public static Output<GetDhcpInterfaceResult> getDhcpInterface(GetDhcpInterfaceArgs args, InvokeOptions options)
fn::invoke:
function: scm:index/getDhcpInterface:getDhcpInterface
arguments:
# arguments dictionaryThe following arguments are supported:
getDhcpInterface Result
The following output properties are available:
- Device string
- The device in which the resource is defined
- Folder string
- Id string
- UUID of the resource
- Name string
- Relay
Get
Dhcp Interface Relay - Server
Get
Dhcp Interface Server - Snippet string
- Tfid string
- Device string
- The device in which the resource is defined
- Folder string
- Id string
- UUID of the resource
- Name string
- Relay
Get
Dhcp Interface Relay - Server
Get
Dhcp Interface Server - Snippet string
- Tfid string
- device String
- The device in which the resource is defined
- folder String
- id String
- UUID of the resource
- name String
- relay
Get
Dhcp Interface Relay - server
Get
Dhcp Interface Server - snippet String
- tfid String
- device string
- The device in which the resource is defined
- folder string
- id string
- UUID of the resource
- name string
- relay
Get
Dhcp Interface Relay - server
Get
Dhcp Interface Server - snippet string
- tfid string
- device str
- The device in which the resource is defined
- folder str
- id str
- UUID of the resource
- name str
- relay
Get
Dhcp Interface Relay - server
Get
Dhcp Interface Server - snippet str
- tfid str
- device String
- The device in which the resource is defined
- folder String
- id String
- UUID of the resource
- name String
- relay Property Map
- server Property Map
- snippet String
- tfid String
Supporting Types
GetDhcpInterfaceRelay
GetDhcpInterfaceRelayIp
GetDhcpInterfaceServer
- Ip
Pools List<string> - List of IP address pools
- Mode string
- DHCP server mode
- Option
Get
Dhcp Interface Server Option - Option
- Probe
Ip bool - Ping IP before allocating?
- Reserveds
List<Get
Dhcp Interface Server Reserved> - List of IP reservations
- Ip
Pools []string - List of IP address pools
- Mode string
- DHCP server mode
- Option
Get
Dhcp Interface Server Option - Option
- Probe
Ip bool - Ping IP before allocating?
- Reserveds
[]Get
Dhcp Interface Server Reserved - List of IP reservations
- ip
Pools List<String> - List of IP address pools
- mode String
- DHCP server mode
- option
Get
Dhcp Interface Server Option - Option
- probe
Ip Boolean - Ping IP before allocating?
- reserveds
List<Get
Dhcp Interface Server Reserved> - List of IP reservations
- ip
Pools string[] - List of IP address pools
- mode string
- DHCP server mode
- option
Get
Dhcp Interface Server Option - Option
- probe
Ip boolean - Ping IP before allocating?
- reserveds
Get
Dhcp Interface Server Reserved[] - List of IP reservations
- ip_
pools Sequence[str] - List of IP address pools
- mode str
- DHCP server mode
- option
Get
Dhcp Interface Server Option - Option
- probe_
ip bool - Ping IP before allocating?
- reserveds
Sequence[Get
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
GetDhcpInterfaceServerOption
- Dns
Get
Dhcp Interface Server Option Dns - Dns
- Dns
Suffix string - DNS suffix
- Gateway string
- Default gateway
- Inheritance
Get
Dhcp Interface Server Option Inheritance - Inheritance
- Lease
Get
Dhcp Interface Server Option Lease - Lease
- Nis
Get
Dhcp Interface Server Option Nis - Nis
- Ntp
Get
Dhcp Interface Server Option Ntp - Ntp
- Pop3Server string
- POP3 server
- Smtp
Server string - SMTP server
- Subnet
Mask string - Subnet mask
- User
Defineds List<GetDhcp Interface Server Option User Defined> - Custom DHCP options
- Wins
Get
Dhcp Interface Server Option Wins - Wins
- Dns
Get
Dhcp Interface Server Option Dns - Dns
- Dns
Suffix string - DNS suffix
- Gateway string
- Default gateway
- Inheritance
Get
Dhcp Interface Server Option Inheritance - Inheritance
- Lease
Get
Dhcp Interface Server Option Lease - Lease
- Nis
Get
Dhcp Interface Server Option Nis - Nis
- Ntp
Get
Dhcp Interface Server Option Ntp - Ntp
- Pop3Server string
- POP3 server
- Smtp
Server string - SMTP server
- Subnet
Mask string - Subnet mask
- User
Defineds []GetDhcp Interface Server Option User Defined - Custom DHCP options
- Wins
Get
Dhcp Interface Server Option Wins - Wins
- dns
Get
Dhcp Interface Server Option Dns - Dns
- dns
Suffix String - DNS suffix
- gateway String
- Default gateway
- inheritance
Get
Dhcp Interface Server Option Inheritance - Inheritance
- lease
Get
Dhcp Interface Server Option Lease - Lease
- nis
Get
Dhcp Interface Server Option Nis - Nis
- ntp
Get
Dhcp Interface Server Option Ntp - Ntp
- pop3Server String
- POP3 server
- smtp
Server String - SMTP server
- subnet
Mask String - Subnet mask
- user
Defineds List<GetDhcp Interface Server Option User Defined> - Custom DHCP options
- wins
Get
Dhcp Interface Server Option Wins - Wins
- dns
Get
Dhcp Interface Server Option Dns - Dns
- dns
Suffix string - DNS suffix
- gateway string
- Default gateway
- inheritance
Get
Dhcp Interface Server Option Inheritance - Inheritance
- lease
Get
Dhcp Interface Server Option Lease - Lease
- nis
Get
Dhcp Interface Server Option Nis - Nis
- ntp
Get
Dhcp Interface Server Option Ntp - Ntp
- pop3Server string
- POP3 server
- smtp
Server string - SMTP server
- subnet
Mask string - Subnet mask
- user
Defineds GetDhcp Interface Server Option User Defined[] - Custom DHCP options
- wins
Get
Dhcp Interface Server Option Wins - Wins
- dns
Get
Dhcp Interface Server Option Dns - Dns
- dns_
suffix str - DNS suffix
- gateway str
- Default gateway
- inheritance
Get
Dhcp Interface Server Option Inheritance - Inheritance
- lease
Get
Dhcp Interface Server Option Lease - Lease
- nis
Get
Dhcp Interface Server Option Nis - Nis
- ntp
Get
Dhcp Interface Server Option Ntp - Ntp
- pop3_
server str - POP3 server
- smtp_
server str - SMTP server
- subnet_
mask str - Subnet mask
- user_
defineds Sequence[GetDhcp Interface Server Option User Defined] - Custom DHCP options
- wins
Get
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
GetDhcpInterfaceServerOptionDns
GetDhcpInterfaceServerOptionInheritance
- 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
GetDhcpInterfaceServerOptionLease
- Timeout int
- DHCP lease timeout (minutes)
- Unlimited
Get
Dhcp Interface Server Option Lease Unlimited Unlimited
ℹ️ Note: You must specify exactly one of
timeoutandunlimited.
- Timeout int
- DHCP lease timeout (minutes)
- Unlimited
Get
Dhcp Interface Server Option Lease Unlimited Unlimited
ℹ️ Note: You must specify exactly one of
timeoutandunlimited.
- timeout Integer
- DHCP lease timeout (minutes)
- unlimited
Get
Dhcp Interface Server Option Lease Unlimited Unlimited
ℹ️ Note: You must specify exactly one of
timeoutandunlimited.
- timeout number
- DHCP lease timeout (minutes)
- unlimited
Get
Dhcp Interface Server Option Lease Unlimited Unlimited
ℹ️ Note: You must specify exactly one of
timeoutandunlimited.
- timeout int
- DHCP lease timeout (minutes)
- unlimited
Get
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.
GetDhcpInterfaceServerOptionNis
GetDhcpInterfaceServerOptionNtp
GetDhcpInterfaceServerOptionUserDefined
GetDhcpInterfaceServerOptionWins
GetDhcpInterfaceServerReserved
- 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
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
