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

openwrt.getWirelessWifiDevice

Explore with Pulumi AI

The physical radio device.

Example Usage

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

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

testing = openwrt.get_wireless_wifi_device(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.LookupWirelessWifiDevice(ctx, &openwrt.LookupWirelessWifiDeviceArgs{
			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.GetWirelessWifiDevice.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.GetWirelessWifiDeviceArgs;
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.getWirelessWifiDevice(GetWirelessWifiDeviceArgs.builder()
            .id("testing")
            .build());

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

Using getWirelessWifiDevice

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 getWirelessWifiDevice(args: GetWirelessWifiDeviceArgs, opts?: InvokeOptions): Promise<GetWirelessWifiDeviceResult>
function getWirelessWifiDeviceOutput(args: GetWirelessWifiDeviceOutputArgs, opts?: InvokeOptions): Output<GetWirelessWifiDeviceResult>
Copy
def get_wireless_wifi_device(id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetWirelessWifiDeviceResult
def get_wireless_wifi_device_output(id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetWirelessWifiDeviceResult]
Copy
func LookupWirelessWifiDevice(ctx *Context, args *LookupWirelessWifiDeviceArgs, opts ...InvokeOption) (*LookupWirelessWifiDeviceResult, error)
func LookupWirelessWifiDeviceOutput(ctx *Context, args *LookupWirelessWifiDeviceOutputArgs, opts ...InvokeOption) LookupWirelessWifiDeviceResultOutput
Copy

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

public static class GetWirelessWifiDevice 
{
    public static Task<GetWirelessWifiDeviceResult> InvokeAsync(GetWirelessWifiDeviceArgs args, InvokeOptions? opts = null)
    public static Output<GetWirelessWifiDeviceResult> Invoke(GetWirelessWifiDeviceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetWirelessWifiDeviceResult> getWirelessWifiDevice(GetWirelessWifiDeviceArgs args, InvokeOptions options)
public static Output<GetWirelessWifiDeviceResult> getWirelessWifiDevice(GetWirelessWifiDeviceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: openwrt:index/getWirelessWifiDevice:getWirelessWifiDevice
  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.

getWirelessWifiDevice Result

The following output properties are available:

Band string
Channel width. Must be one of: "2g", "5g", "6g".
CellDensity double
Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3.
Channel string
The wireless channel. Currently, only "auto" is supported.
Country string
Two-digit country code. E.g. "US".
Htmode string
Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160".
Id string
Name of the section. This name is only used when interacting with UCI directly.
Path string
Path of the device in /sys/devices.
Type string
The type of device. Currently only "mac80211" is supported.
Band string
Channel width. Must be one of: "2g", "5g", "6g".
CellDensity float64
Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3.
Channel string
The wireless channel. Currently, only "auto" is supported.
Country string
Two-digit country code. E.g. "US".
Htmode string
Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160".
Id string
Name of the section. This name is only used when interacting with UCI directly.
Path string
Path of the device in /sys/devices.
Type string
The type of device. Currently only "mac80211" is supported.
band String
Channel width. Must be one of: "2g", "5g", "6g".
cellDensity Double
Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3.
channel String
The wireless channel. Currently, only "auto" is supported.
country String
Two-digit country code. E.g. "US".
htmode String
Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160".
id String
Name of the section. This name is only used when interacting with UCI directly.
path String
Path of the device in /sys/devices.
type String
The type of device. Currently only "mac80211" is supported.
band string
Channel width. Must be one of: "2g", "5g", "6g".
cellDensity number
Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3.
channel string
The wireless channel. Currently, only "auto" is supported.
country string
Two-digit country code. E.g. "US".
htmode string
Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160".
id string
Name of the section. This name is only used when interacting with UCI directly.
path string
Path of the device in /sys/devices.
type string
The type of device. Currently only "mac80211" is supported.
band str
Channel width. Must be one of: "2g", "5g", "6g".
cell_density float
Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3.
channel str
The wireless channel. Currently, only "auto" is supported.
country str
Two-digit country code. E.g. "US".
htmode str
Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160".
id str
Name of the section. This name is only used when interacting with UCI directly.
path str
Path of the device in /sys/devices.
type str
The type of device. Currently only "mac80211" is supported.
band String
Channel width. Must be one of: "2g", "5g", "6g".
cellDensity Number
Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3.
channel String
The wireless channel. Currently, only "auto" is supported.
country String
Two-digit country code. E.g. "US".
htmode String
Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160".
id String
Name of the section. This name is only used when interacting with UCI directly.
path String
Path of the device in /sys/devices.
type String
The type of device. Currently only "mac80211" is supported.

Package Details

Repository
openwrt joneshf/terraform-provider-openwrt
License
Notes
This Pulumi package is based on the openwrt Terraform Provider.