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,
});
import pulumi
import pulumi_routeros as routeros
radius = routeros.WifiAccessList("radius",
action="query-radius",
comment="RADIUS",
radius_accounting=True)
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
})
}
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,
});
});
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());
}
}
resources:
radius:
type: routeros:WifiAccessList
properties:
action: query-radius
comment: RADIUS
radiusAccounting: true
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 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 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 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 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 String
- The unique name of the resource.
- args 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.
- Allow
Signal stringOut Of Range - 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 string
- Disabled bool
- Interface string
- Interface name to compare with an interface to which the client actually connects to.
- Mac
Address string - MAC address of the client.
- Mac
Address stringMask - MAC address mask to apply when comparing clients' addresses.
- Passphrase string
- PSK passphrase for the client if some PSK authentication algorithm is used.
- Place
Before 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.
- Radius
Accounting bool - An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
- Signal
Range string - The range in which the client signal must fall.
- Ssid
Regexp 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.
- Vlan
Id string - VLAN ID to use for VLAN tagging or
none
. - Wifi
Access stringList Id - ___
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.
- Allow
Signal stringOut Of Range - 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 string
- Disabled bool
- Interface string
- Interface name to compare with an interface to which the client actually connects to.
- Mac
Address string - MAC address of the client.
- Mac
Address stringMask - MAC address mask to apply when comparing clients' addresses.
- Passphrase string
- PSK passphrase for the client if some PSK authentication algorithm is used.
- Place
Before 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.
- Radius
Accounting bool - An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
- Signal
Range string - The range in which the client signal must fall.
- Ssid
Regexp 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.
- Vlan
Id string - VLAN ID to use for VLAN tagging or
none
. - Wifi
Access stringList Id - ___
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.
- allow
Signal StringOut Of Range - An option that permits the client's signal to be out of the range always or for some time interval.
- client
Isolation 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.
- mac
Address String - MAC address of the client.
- mac
Address StringMask - MAC address mask to apply when comparing clients' addresses.
- passphrase String
- PSK passphrase for the client if some PSK authentication algorithm is used.
- place
Before 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.
- radius
Accounting Boolean - An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
- signal
Range String - The range in which the client signal must fall.
- ssid
Regexp 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.
- vlan
Id String - VLAN ID to use for VLAN tagging or
none
. - wifi
Access StringList Id
- ___
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.
- allow
Signal stringOut Of Range - An option that permits the client's signal to be out of the range always or for some time interval.
- client
Isolation 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.
- mac
Address string - MAC address of the client.
- mac
Address stringMask - MAC address mask to apply when comparing clients' addresses.
- passphrase string
- PSK passphrase for the client if some PSK authentication algorithm is used.
- place
Before 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.
- radius
Accounting boolean - An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
- signal
Range string - The range in which the client signal must fall.
- ssid
Regexp 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.
- vlan
Id string - VLAN ID to use for VLAN tagging or
none
. - wifi
Access stringList Id
- ___
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_ strout_ of_ range - 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_ strmask - 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_ strlist_ id
- ___
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.
- allow
Signal StringOut Of Range - An option that permits the client's signal to be out of the range always or for some time interval.
- client
Isolation 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.
- mac
Address String - MAC address of the client.
- mac
Address StringMask - MAC address mask to apply when comparing clients' addresses.
- passphrase String
- PSK passphrase for the client if some PSK authentication algorithm is used.
- place
Before 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.
- radius
Accounting Boolean - An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
- signal
Range String - The range in which the client signal must fall.
- ssid
Regexp 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.
- vlan
Id String - VLAN ID to use for VLAN tagging or
none
. - wifi
Access StringList Id
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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Action string
- An action to take when a client matches.
- Allow
Signal stringOut Of Range - 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 string
- Disabled bool
- Interface string
- Interface name to compare with an interface to which the client actually connects to.
- Mac
Address string - MAC address of the client.
- Mac
Address stringMask - MAC address mask to apply when comparing clients' addresses.
- Passphrase string
- PSK passphrase for the client if some PSK authentication algorithm is used.
- Place
Before 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.
- Radius
Accounting bool - An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
- Signal
Range string - The range in which the client signal must fall.
- Ssid
Regexp 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.
- Vlan
Id string - VLAN ID to use for VLAN tagging or
none
. - Wifi
Access stringList Id - ___
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.
- Allow
Signal stringOut Of Range - 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 string
- Disabled bool
- Interface string
- Interface name to compare with an interface to which the client actually connects to.
- Mac
Address string - MAC address of the client.
- Mac
Address stringMask - MAC address mask to apply when comparing clients' addresses.
- Passphrase string
- PSK passphrase for the client if some PSK authentication algorithm is used.
- Place
Before 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.
- Radius
Accounting bool - An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
- Signal
Range string - The range in which the client signal must fall.
- Ssid
Regexp 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.
- Vlan
Id string - VLAN ID to use for VLAN tagging or
none
. - Wifi
Access stringList Id - ___
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.
- allow
Signal StringOut Of Range - An option that permits the client's signal to be out of the range always or for some time interval.
- client
Isolation 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.
- mac
Address String - MAC address of the client.
- mac
Address StringMask - MAC address mask to apply when comparing clients' addresses.
- passphrase String
- PSK passphrase for the client if some PSK authentication algorithm is used.
- place
Before 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.
- radius
Accounting Boolean - An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
- signal
Range String - The range in which the client signal must fall.
- ssid
Regexp 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.
- vlan
Id String - VLAN ID to use for VLAN tagging or
none
. - wifi
Access StringList Id
- ___
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.
- allow
Signal stringOut Of Range - An option that permits the client's signal to be out of the range always or for some time interval.
- client
Isolation 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.
- mac
Address string - MAC address of the client.
- mac
Address stringMask - MAC address mask to apply when comparing clients' addresses.
- passphrase string
- PSK passphrase for the client if some PSK authentication algorithm is used.
- place
Before 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.
- radius
Accounting boolean - An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
- signal
Range string - The range in which the client signal must fall.
- ssid
Regexp 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.
- vlan
Id string - VLAN ID to use for VLAN tagging or
none
. - wifi
Access stringList Id
- ___
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_ strout_ of_ range - 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_ strmask - 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_ strlist_ id
- ___
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.
- allow
Signal StringOut Of Range - An option that permits the client's signal to be out of the range always or for some time interval.
- client
Isolation 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.
- mac
Address String - MAC address of the client.
- mac
Address StringMask - MAC address mask to apply when comparing clients' addresses.
- passphrase String
- PSK passphrase for the client if some PSK authentication algorithm is used.
- place
Before 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.
- radius
Accounting Boolean - An option that specifies if RADIUS traffic accounting should be used in case of RADIUS authentication of the client.
- signal
Range String - The range in which the client signal must fall.
- ssid
Regexp 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.
- vlan
Id String - VLAN ID to use for VLAN tagging or
none
. - wifi
Access StringList Id
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'
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.