1. Packages
  2. Openwrt Provider
  3. API Docs
  4. getDhcpOdhcpd
openwrt 0.0.20 published on Friday, Mar 7, 2025 by joneshf

openwrt.getDhcpOdhcpd

Explore with Pulumi AI

openwrt 0.0.20 published on Friday, Mar 7, 2025 by joneshf

An embedded DHCP/DHCPv6/RA server & NDP relay.

Example Usage

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

const testing = openwrt.getDhcpOdhcpd({
    id: "testing",
});
Copy
import pulumi
import pulumi_openwrt as openwrt

testing = openwrt.get_dhcp_odhcpd(id="testing")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/openwrt/openwrt"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := openwrt.LookupDhcpOdhcpd(ctx, &openwrt.LookupDhcpOdhcpdArgs{
			Id: "testing",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Openwrt = Pulumi.Openwrt;

return await Deployment.RunAsync(() => 
{
    var testing = Openwrt.GetDhcpOdhcpd.Invoke(new()
    {
        Id = "testing",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openwrt.OpenwrtFunctions;
import com.pulumi.openwrt.inputs.GetDhcpOdhcpdArgs;
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 testing = OpenwrtFunctions.getDhcpOdhcpd(GetDhcpOdhcpdArgs.builder()
            .id("testing")
            .build());

    }
}
Copy
variables:
  testing:
    fn::invoke:
      function: openwrt:getDhcpOdhcpd
      arguments:
        id: testing
Copy

Using getDhcpOdhcpd

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 getDhcpOdhcpd(args: GetDhcpOdhcpdArgs, opts?: InvokeOptions): Promise<GetDhcpOdhcpdResult>
function getDhcpOdhcpdOutput(args: GetDhcpOdhcpdOutputArgs, opts?: InvokeOptions): Output<GetDhcpOdhcpdResult>
Copy
def get_dhcp_odhcpd(id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDhcpOdhcpdResult
def get_dhcp_odhcpd_output(id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDhcpOdhcpdResult]
Copy
func LookupDhcpOdhcpd(ctx *Context, args *LookupDhcpOdhcpdArgs, opts ...InvokeOption) (*LookupDhcpOdhcpdResult, error)
func LookupDhcpOdhcpdOutput(ctx *Context, args *LookupDhcpOdhcpdOutputArgs, opts ...InvokeOption) LookupDhcpOdhcpdResultOutput
Copy

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

public static class GetDhcpOdhcpd 
{
    public static Task<GetDhcpOdhcpdResult> InvokeAsync(GetDhcpOdhcpdArgs args, InvokeOptions? opts = null)
    public static Output<GetDhcpOdhcpdResult> Invoke(GetDhcpOdhcpdInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDhcpOdhcpdResult> getDhcpOdhcpd(GetDhcpOdhcpdArgs args, InvokeOptions options)
public static Output<GetDhcpOdhcpdResult> getDhcpOdhcpd(GetDhcpOdhcpdArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: openwrt:index/getDhcpOdhcpd:getDhcpOdhcpd
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
Name of the section. This name is only used when interacting with UCI directly.
Id This property is required. string
Name of the section. This name is only used when interacting with UCI directly.
id This property is required. String
Name of the section. This name is only used when interacting with UCI directly.
id This property is required. string
Name of the section. This name is only used when interacting with UCI directly.
id This property is required. str
Name of the section. This name is only used when interacting with UCI directly.
id This property is required. String
Name of the section. This name is only used when interacting with UCI directly.

getDhcpOdhcpd Result

The following output properties are available:

Id string
Name of the section. This name is only used when interacting with UCI directly.
Leasefile string
Location of the lease/hostfile for DHCPv4 and DHCPv6.
Leasetrigger string
Location of the lease trigger script.
Legacy bool
Enable DHCPv4 if the 'dhcp' section constains a start option, but no dhcpv4 option set.
Loglevel double
Syslog level priority (0-7).
Maindhcp bool
Use odhcpd as the main DHCPv4 service.
Id string
Name of the section. This name is only used when interacting with UCI directly.
Leasefile string
Location of the lease/hostfile for DHCPv4 and DHCPv6.
Leasetrigger string
Location of the lease trigger script.
Legacy bool
Enable DHCPv4 if the 'dhcp' section constains a start option, but no dhcpv4 option set.
Loglevel float64
Syslog level priority (0-7).
Maindhcp bool
Use odhcpd as the main DHCPv4 service.
id String
Name of the section. This name is only used when interacting with UCI directly.
leasefile String
Location of the lease/hostfile for DHCPv4 and DHCPv6.
leasetrigger String
Location of the lease trigger script.
legacy Boolean
Enable DHCPv4 if the 'dhcp' section constains a start option, but no dhcpv4 option set.
loglevel Double
Syslog level priority (0-7).
maindhcp Boolean
Use odhcpd as the main DHCPv4 service.
id string
Name of the section. This name is only used when interacting with UCI directly.
leasefile string
Location of the lease/hostfile for DHCPv4 and DHCPv6.
leasetrigger string
Location of the lease trigger script.
legacy boolean
Enable DHCPv4 if the 'dhcp' section constains a start option, but no dhcpv4 option set.
loglevel number
Syslog level priority (0-7).
maindhcp boolean
Use odhcpd as the main DHCPv4 service.
id str
Name of the section. This name is only used when interacting with UCI directly.
leasefile str
Location of the lease/hostfile for DHCPv4 and DHCPv6.
leasetrigger str
Location of the lease trigger script.
legacy bool
Enable DHCPv4 if the 'dhcp' section constains a start option, but no dhcpv4 option set.
loglevel float
Syslog level priority (0-7).
maindhcp bool
Use odhcpd as the main DHCPv4 service.
id String
Name of the section. This name is only used when interacting with UCI directly.
leasefile String
Location of the lease/hostfile for DHCPv4 and DHCPv6.
leasetrigger String
Location of the lease trigger script.
legacy Boolean
Enable DHCPv4 if the 'dhcp' section constains a start option, but no dhcpv4 option set.
loglevel Number
Syslog level priority (0-7).
maindhcp Boolean
Use odhcpd as the main DHCPv4 service.

Package Details

Repository
openwrt joneshf/terraform-provider-openwrt
License
Notes
This Pulumi package is based on the openwrt Terraform Provider.
openwrt 0.0.20 published on Friday, Mar 7, 2025 by joneshf