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
Assign a fixed IP address to hosts.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openwrt from "@pulumi/openwrt";
const testing = openwrt.getDhcpHost({
id: "testing",
});
import pulumi
import pulumi_openwrt as openwrt
testing = openwrt.get_dhcp_host(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.LookupDhcpHost(ctx, &openwrt.LookupDhcpHostArgs{
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.GetDhcpHost.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.GetDhcpHostArgs;
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.getDhcpHost(GetDhcpHostArgs.builder()
.id("testing")
.build());
}
}
variables:
testing:
fn::invoke:
function: openwrt:getDhcpHost
arguments:
id: testing
Using getDhcpHost
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 getDhcpHost(args: GetDhcpHostArgs, opts?: InvokeOptions): Promise<GetDhcpHostResult>
function getDhcpHostOutput(args: GetDhcpHostOutputArgs, opts?: InvokeOptions): Output<GetDhcpHostResult>def get_dhcp_host(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDhcpHostResult
def get_dhcp_host_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDhcpHostResult]func LookupDhcpHost(ctx *Context, args *LookupDhcpHostArgs, opts ...InvokeOption) (*LookupDhcpHostResult, error)
func LookupDhcpHostOutput(ctx *Context, args *LookupDhcpHostOutputArgs, opts ...InvokeOption) LookupDhcpHostResultOutput> Note: This function is named LookupDhcpHost in the Go SDK.
public static class GetDhcpHost
{
public static Task<GetDhcpHostResult> InvokeAsync(GetDhcpHostArgs args, InvokeOptions? opts = null)
public static Output<GetDhcpHostResult> Invoke(GetDhcpHostInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDhcpHostResult> getDhcpHost(GetDhcpHostArgs args, InvokeOptions options)
public static Output<GetDhcpHostResult> getDhcpHost(GetDhcpHostArgs args, InvokeOptions options)
fn::invoke:
function: openwrt:index/getDhcpHost:getDhcpHost
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.
getDhcpHost Result
The following output properties are available:
- Dns bool
- Add static forward and reverse DNS entries for this host.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Ip string
- The IP address to be used for this host, or
ignoreto ignore any DHCP request from this host. - Mac string
- The hardware address(es) of this host, separated by spaces.
- Name string
- Hostname to assign.
- Dns bool
- Add static forward and reverse DNS entries for this host.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Ip string
- The IP address to be used for this host, or
ignoreto ignore any DHCP request from this host. - Mac string
- The hardware address(es) of this host, separated by spaces.
- Name string
- Hostname to assign.
- dns Boolean
- Add static forward and reverse DNS entries for this host.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- ip String
- The IP address to be used for this host, or
ignoreto ignore any DHCP request from this host. - mac String
- The hardware address(es) of this host, separated by spaces.
- name String
- Hostname to assign.
- dns boolean
- Add static forward and reverse DNS entries for this host.
- id string
- Name of the section. This name is only used when interacting with UCI directly.
- ip string
- The IP address to be used for this host, or
ignoreto ignore any DHCP request from this host. - mac string
- The hardware address(es) of this host, separated by spaces.
- name string
- Hostname to assign.
- dns bool
- Add static forward and reverse DNS entries for this host.
- id str
- Name of the section. This name is only used when interacting with UCI directly.
- ip str
- The IP address to be used for this host, or
ignoreto ignore any DHCP request from this host. - mac str
- The hardware address(es) of this host, separated by spaces.
- name str
- Hostname to assign.
- dns Boolean
- Add static forward and reverse DNS entries for this host.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- ip String
- The IP address to be used for this host, or
ignoreto ignore any DHCP request from this host. - mac String
- The hardware address(es) of this host, separated by spaces.
- name String
- Hostname to assign.
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
