1. Packages
  2. Routeros Provider
  3. API Docs
  4. WifiAccessList
routeros 1.83.0 published on Wednesday, Apr 16, 2025 by terraform-routeros

routeros.WifiAccessList

Explore with Pulumi AI

# routeros.WifiAccessList (Resource)

This resource requires a minimum version of RouterOS 7.13.

Example Usage

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

const radius = new routeros.WifiAccessList("radius", {
    action: "query-radius",
    comment: "RADIUS",
    radiusAccounting: true,
});
Copy
import pulumi
import pulumi_routeros as routeros

radius = routeros.WifiAccessList("radius",
    action="query-radius",
    comment="RADIUS",
    radius_accounting=True)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := routeros.NewWifiAccessList(ctx, "radius", &routeros.WifiAccessListArgs{
			Action:           pulumi.String("query-radius"),
			Comment:          pulumi.String("RADIUS"),
			RadiusAccounting: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;

return await Deployment.RunAsync(() => 
{
    var radius = new Routeros.WifiAccessList("radius", new()
    {
        Action = "query-radius",
        Comment = "RADIUS",
        RadiusAccounting = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.WifiAccessList;
import com.pulumi.routeros.WifiAccessListArgs;
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) {
        var radius = new WifiAccessList("radius", WifiAccessListArgs.builder()
            .action("query-radius")
            .comment("RADIUS")
            .radiusAccounting(true)
            .build());

    }
}
Copy
resources:
  radius:
    type: routeros:WifiAccessList
    properties:
      action: query-radius
      comment: RADIUS
      radiusAccounting: true
Copy

Create WifiAccessList Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new WifiAccessList(name: string, args?: WifiAccessListArgs, opts?: CustomResourceOptions);
@overload
def WifiAccessList(resource_name: str,
                   args: Optional[WifiAccessListArgs] = None,
                   opts: Optional[ResourceOptions] = None)

@overload
def WifiAccessList(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   ___id_: Optional[float] = None,
                   ___path_: Optional[str] = None,
                   action: Optional[str] = None,
                   allow_signal_out_of_range: Optional[str] = None,
                   client_isolation: Optional[bool] = None,
                   comment: Optional[str] = None,
                   disabled: Optional[bool] = None,
                   interface: Optional[str] = None,
                   mac_address: Optional[str] = None,
                   mac_address_mask: Optional[str] = None,
                   passphrase: Optional[str] = None,
                   place_before: Optional[str] = None,
                   radius_accounting: Optional[bool] = None,
                   signal_range: Optional[str] = None,
                   ssid_regexp: Optional[str] = None,
                   time: Optional[str] = None,
                   vlan_id: Optional[str] = None,
                   wifi_access_list_id: Optional[str] = None)
func NewWifiAccessList(ctx *Context, name string, args *WifiAccessListArgs, opts ...ResourceOption) (*WifiAccessList, error)
public WifiAccessList(string name, WifiAccessListArgs? args = null, CustomResourceOptions? opts = null)
public WifiAccessList(String name, WifiAccessListArgs args)
public WifiAccessList(String name, WifiAccessListArgs args, CustomResourceOptions options)
type: routeros:WifiAccessList
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args WifiAccessListArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args WifiAccessListArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args WifiAccessListArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args WifiAccessListArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WifiAccessListArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

WifiAccessList Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The WifiAccessList resource accepts the following input properties:

Action string
An action to take when a client matches.
AllowSignalOutOfRange string
An option that permits the client's signal to be out of the range always or for some time interval.
ClientIsolation bool
An option that specifies whether to deny forwarding data between clients connected to the same interface.
Comment string
Disabled bool
Interface string
Interface name to compare with an interface to which the client actually connects to.
MacAddress string
MAC address of the client.
MacAddressMask string
MAC address mask to apply when comparing clients' addresses.
Passphrase string
PSK passphrase for the client if some PSK authentication algorithm is used.
PlaceBefore string
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
RadiusAccounting bool
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
SignalRange string
The range in which the client signal must fall.
SsidRegexp string
The regular expression to compare the actual SSID the client connects to.
Time string
Time of the day and days of the week when the rule is applicable.
VlanId string
VLAN ID to use for VLAN tagging or none.
WifiAccessListId string
___id_ double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
Action string
An action to take when a client matches.
AllowSignalOutOfRange string
An option that permits the client's signal to be out of the range always or for some time interval.
ClientIsolation bool
An option that specifies whether to deny forwarding data between clients connected to the same interface.
Comment string
Disabled bool
Interface string
Interface name to compare with an interface to which the client actually connects to.
MacAddress string
MAC address of the client.
MacAddressMask string
MAC address mask to apply when comparing clients' addresses.
Passphrase string
PSK passphrase for the client if some PSK authentication algorithm is used.
PlaceBefore string
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
RadiusAccounting bool
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
SignalRange string
The range in which the client signal must fall.
SsidRegexp string
The regular expression to compare the actual SSID the client connects to.
Time string
Time of the day and days of the week when the rule is applicable.
VlanId string
VLAN ID to use for VLAN tagging or none.
WifiAccessListId string
___id_ float64
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
___id_ Double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
action String
An action to take when a client matches.
allowSignalOutOfRange String
An option that permits the client's signal to be out of the range always or for some time interval.
clientIsolation Boolean
An option that specifies whether to deny forwarding data between clients connected to the same interface.
comment String
disabled Boolean
interface_ String
Interface name to compare with an interface to which the client actually connects to.
macAddress String
MAC address of the client.
macAddressMask String
MAC address mask to apply when comparing clients' addresses.
passphrase String
PSK passphrase for the client if some PSK authentication algorithm is used.
placeBefore String
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
radiusAccounting Boolean
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
signalRange String
The range in which the client signal must fall.
ssidRegexp String
The regular expression to compare the actual SSID the client connects to.
time String
Time of the day and days of the week when the rule is applicable.
vlanId String
VLAN ID to use for VLAN tagging or none.
wifiAccessListId String
___id_ number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
action string
An action to take when a client matches.
allowSignalOutOfRange string
An option that permits the client's signal to be out of the range always or for some time interval.
clientIsolation boolean
An option that specifies whether to deny forwarding data between clients connected to the same interface.
comment string
disabled boolean
interface string
Interface name to compare with an interface to which the client actually connects to.
macAddress string
MAC address of the client.
macAddressMask string
MAC address mask to apply when comparing clients' addresses.
passphrase string
PSK passphrase for the client if some PSK authentication algorithm is used.
placeBefore string
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
radiusAccounting boolean
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
signalRange string
The range in which the client signal must fall.
ssidRegexp string
The regular expression to compare the actual SSID the client connects to.
time string
Time of the day and days of the week when the rule is applicable.
vlanId string
VLAN ID to use for VLAN tagging or none.
wifiAccessListId string
___id_ float
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ str
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
action str
An action to take when a client matches.
allow_signal_out_of_range str
An option that permits the client's signal to be out of the range always or for some time interval.
client_isolation bool
An option that specifies whether to deny forwarding data between clients connected to the same interface.
comment str
disabled bool
interface str
Interface name to compare with an interface to which the client actually connects to.
mac_address str
MAC address of the client.
mac_address_mask str
MAC address mask to apply when comparing clients' addresses.
passphrase str
PSK passphrase for the client if some PSK authentication algorithm is used.
place_before str
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
radius_accounting bool
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
signal_range str
The range in which the client signal must fall.
ssid_regexp str
The regular expression to compare the actual SSID the client connects to.
time str
Time of the day and days of the week when the rule is applicable.
vlan_id str
VLAN ID to use for VLAN tagging or none.
wifi_access_list_id str
___id_ Number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
action String
An action to take when a client matches.
allowSignalOutOfRange String
An option that permits the client's signal to be out of the range always or for some time interval.
clientIsolation Boolean
An option that specifies whether to deny forwarding data between clients connected to the same interface.
comment String
disabled Boolean
interface String
Interface name to compare with an interface to which the client actually connects to.
macAddress String
MAC address of the client.
macAddressMask String
MAC address mask to apply when comparing clients' addresses.
passphrase String
PSK passphrase for the client if some PSK authentication algorithm is used.
placeBefore String
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
radiusAccounting Boolean
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
signalRange String
The range in which the client signal must fall.
ssidRegexp String
The regular expression to compare the actual SSID the client connects to.
time String
Time of the day and days of the week when the rule is applicable.
vlanId String
VLAN ID to use for VLAN tagging or none.
wifiAccessListId String

Outputs

All input properties are implicitly available as output properties. Additionally, the WifiAccessList resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing WifiAccessList Resource

Get an existing WifiAccessList resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: WifiAccessListState, opts?: CustomResourceOptions): WifiAccessList
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ___id_: Optional[float] = None,
        ___path_: Optional[str] = None,
        action: Optional[str] = None,
        allow_signal_out_of_range: Optional[str] = None,
        client_isolation: Optional[bool] = None,
        comment: Optional[str] = None,
        disabled: Optional[bool] = None,
        interface: Optional[str] = None,
        mac_address: Optional[str] = None,
        mac_address_mask: Optional[str] = None,
        passphrase: Optional[str] = None,
        place_before: Optional[str] = None,
        radius_accounting: Optional[bool] = None,
        signal_range: Optional[str] = None,
        ssid_regexp: Optional[str] = None,
        time: Optional[str] = None,
        vlan_id: Optional[str] = None,
        wifi_access_list_id: Optional[str] = None) -> WifiAccessList
func GetWifiAccessList(ctx *Context, name string, id IDInput, state *WifiAccessListState, opts ...ResourceOption) (*WifiAccessList, error)
public static WifiAccessList Get(string name, Input<string> id, WifiAccessListState? state, CustomResourceOptions? opts = null)
public static WifiAccessList get(String name, Output<String> id, WifiAccessListState state, CustomResourceOptions options)
resources:  _:    type: routeros:WifiAccessList    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Action string
An action to take when a client matches.
AllowSignalOutOfRange string
An option that permits the client's signal to be out of the range always or for some time interval.
ClientIsolation bool
An option that specifies whether to deny forwarding data between clients connected to the same interface.
Comment string
Disabled bool
Interface string
Interface name to compare with an interface to which the client actually connects to.
MacAddress string
MAC address of the client.
MacAddressMask string
MAC address mask to apply when comparing clients' addresses.
Passphrase string
PSK passphrase for the client if some PSK authentication algorithm is used.
PlaceBefore string
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
RadiusAccounting bool
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
SignalRange string
The range in which the client signal must fall.
SsidRegexp string
The regular expression to compare the actual SSID the client connects to.
Time string
Time of the day and days of the week when the rule is applicable.
VlanId string
VLAN ID to use for VLAN tagging or none.
WifiAccessListId string
___id_ double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
Action string
An action to take when a client matches.
AllowSignalOutOfRange string
An option that permits the client's signal to be out of the range always or for some time interval.
ClientIsolation bool
An option that specifies whether to deny forwarding data between clients connected to the same interface.
Comment string
Disabled bool
Interface string
Interface name to compare with an interface to which the client actually connects to.
MacAddress string
MAC address of the client.
MacAddressMask string
MAC address mask to apply when comparing clients' addresses.
Passphrase string
PSK passphrase for the client if some PSK authentication algorithm is used.
PlaceBefore string
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
RadiusAccounting bool
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
SignalRange string
The range in which the client signal must fall.
SsidRegexp string
The regular expression to compare the actual SSID the client connects to.
Time string
Time of the day and days of the week when the rule is applicable.
VlanId string
VLAN ID to use for VLAN tagging or none.
WifiAccessListId string
___id_ float64
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
___id_ Double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
action String
An action to take when a client matches.
allowSignalOutOfRange String
An option that permits the client's signal to be out of the range always or for some time interval.
clientIsolation Boolean
An option that specifies whether to deny forwarding data between clients connected to the same interface.
comment String
disabled Boolean
interface_ String
Interface name to compare with an interface to which the client actually connects to.
macAddress String
MAC address of the client.
macAddressMask String
MAC address mask to apply when comparing clients' addresses.
passphrase String
PSK passphrase for the client if some PSK authentication algorithm is used.
placeBefore String
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
radiusAccounting Boolean
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
signalRange String
The range in which the client signal must fall.
ssidRegexp String
The regular expression to compare the actual SSID the client connects to.
time String
Time of the day and days of the week when the rule is applicable.
vlanId String
VLAN ID to use for VLAN tagging or none.
wifiAccessListId String
___id_ number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
action string
An action to take when a client matches.
allowSignalOutOfRange string
An option that permits the client's signal to be out of the range always or for some time interval.
clientIsolation boolean
An option that specifies whether to deny forwarding data between clients connected to the same interface.
comment string
disabled boolean
interface string
Interface name to compare with an interface to which the client actually connects to.
macAddress string
MAC address of the client.
macAddressMask string
MAC address mask to apply when comparing clients' addresses.
passphrase string
PSK passphrase for the client if some PSK authentication algorithm is used.
placeBefore string
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
radiusAccounting boolean
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
signalRange string
The range in which the client signal must fall.
ssidRegexp string
The regular expression to compare the actual SSID the client connects to.
time string
Time of the day and days of the week when the rule is applicable.
vlanId string
VLAN ID to use for VLAN tagging or none.
wifiAccessListId string
___id_ float
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ str
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
action str
An action to take when a client matches.
allow_signal_out_of_range str
An option that permits the client's signal to be out of the range always or for some time interval.
client_isolation bool
An option that specifies whether to deny forwarding data between clients connected to the same interface.
comment str
disabled bool
interface str
Interface name to compare with an interface to which the client actually connects to.
mac_address str
MAC address of the client.
mac_address_mask str
MAC address mask to apply when comparing clients' addresses.
passphrase str
PSK passphrase for the client if some PSK authentication algorithm is used.
place_before str
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
radius_accounting bool
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
signal_range str
The range in which the client signal must fall.
ssid_regexp str
The regular expression to compare the actual SSID the client connects to.
time str
Time of the day and days of the week when the rule is applicable.
vlan_id str
VLAN ID to use for VLAN tagging or none.
wifi_access_list_id str
___id_ Number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
action String
An action to take when a client matches.
allowSignalOutOfRange String
An option that permits the client's signal to be out of the range always or for some time interval.
clientIsolation Boolean
An option that specifies whether to deny forwarding data between clients connected to the same interface.
comment String
disabled Boolean
interface String
Interface name to compare with an interface to which the client actually connects to.
macAddress String
MAC address of the client.
macAddressMask String
MAC address mask to apply when comparing clients' addresses.
passphrase String
PSK passphrase for the client if some PSK authentication algorithm is used.
placeBefore String
Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
radiusAccounting Boolean
An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
signalRange String
The range in which the client signal must fall.
ssidRegexp String
The regular expression to compare the actual SSID the client connects to.
time String
Time of the day and days of the week when the rule is applicable.
vlanId String
VLAN ID to use for VLAN tagging or none.
wifiAccessListId String

Import

#The ID can be found via API or the terminal

#The command for the terminal is -> :put [/interface/wifi/access-list get [print show-ids]]

$ pulumi import routeros:index/wifiAccessList:WifiAccessList radius '*1'
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

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