Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
Binds a domain name to an IP address.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openwrt from "@pulumi/openwrt";
const testing = openwrt.getDhcpDomain({
id: "testing",
});
import pulumi
import pulumi_openwrt as openwrt
testing = openwrt.get_dhcp_domain(id="testing")
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.LookupDhcpDomain(ctx, &openwrt.LookupDhcpDomainArgs{
Id: "testing",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Openwrt = Pulumi.Openwrt;
return await Deployment.RunAsync(() =>
{
var testing = Openwrt.GetDhcpDomain.Invoke(new()
{
Id = "testing",
});
});
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.GetDhcpDomainArgs;
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.getDhcpDomain(GetDhcpDomainArgs.builder()
.id("testing")
.build());
}
}
variables:
testing:
fn::invoke:
function: openwrt:getDhcpDomain
arguments:
id: testing
Using getDhcpDomain
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 getDhcpDomain(args: GetDhcpDomainArgs, opts?: InvokeOptions): Promise<GetDhcpDomainResult>
function getDhcpDomainOutput(args: GetDhcpDomainOutputArgs, opts?: InvokeOptions): Output<GetDhcpDomainResult>def get_dhcp_domain(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDhcpDomainResult
def get_dhcp_domain_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDhcpDomainResult]func LookupDhcpDomain(ctx *Context, args *LookupDhcpDomainArgs, opts ...InvokeOption) (*LookupDhcpDomainResult, error)
func LookupDhcpDomainOutput(ctx *Context, args *LookupDhcpDomainOutputArgs, opts ...InvokeOption) LookupDhcpDomainResultOutput> Note: This function is named LookupDhcpDomain in the Go SDK.
public static class GetDhcpDomain
{
public static Task<GetDhcpDomainResult> InvokeAsync(GetDhcpDomainArgs args, InvokeOptions? opts = null)
public static Output<GetDhcpDomainResult> Invoke(GetDhcpDomainInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDhcpDomainResult> getDhcpDomain(GetDhcpDomainArgs args, InvokeOptions options)
public static Output<GetDhcpDomainResult> getDhcpDomain(GetDhcpDomainArgs args, InvokeOptions options)
fn::invoke:
function: openwrt:index/getDhcpDomain:getDhcpDomain
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- id string
- Name of the section. This name is only used when interacting with UCI directly.
- id str
- Name of the section. This name is only used when interacting with UCI directly.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
getDhcpDomain Result
The following output properties are available:
Package Details
- Repository
- openwrt joneshf/terraform-provider-openwrt
- License
- Notes
- This Pulumi package is based on the
openwrtTerraform Provider.
Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
