routeros.WifiChannel
Explore with Pulumi AI
# routeros.WifiChannel (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 channel1 = new routeros.WifiChannel("channel1", {
band: "2ghz-n",
frequencies: ["2412"],
secondaryFrequencies: ["disabled"],
skipDfsChannels: "disabled",
width: "20mhz",
});
import pulumi
import pulumi_routeros as routeros
channel1 = routeros.WifiChannel("channel1",
band="2ghz-n",
frequencies=["2412"],
secondary_frequencies=["disabled"],
skip_dfs_channels="disabled",
width="20mhz")
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.NewWifiChannel(ctx, "channel1", &routeros.WifiChannelArgs{
Band: pulumi.String("2ghz-n"),
Frequencies: pulumi.StringArray{
pulumi.String("2412"),
},
SecondaryFrequencies: pulumi.StringArray{
pulumi.String("disabled"),
},
SkipDfsChannels: pulumi.String("disabled"),
Width: pulumi.String("20mhz"),
})
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 channel1 = new Routeros.WifiChannel("channel1", new()
{
Band = "2ghz-n",
Frequencies = new[]
{
"2412",
},
SecondaryFrequencies = new[]
{
"disabled",
},
SkipDfsChannels = "disabled",
Width = "20mhz",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.WifiChannel;
import com.pulumi.routeros.WifiChannelArgs;
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 channel1 = new WifiChannel("channel1", WifiChannelArgs.builder()
.band("2ghz-n")
.frequencies(2412)
.secondaryFrequencies("disabled")
.skipDfsChannels("disabled")
.width("20mhz")
.build());
}
}
resources:
channel1:
type: routeros:WifiChannel
properties:
band: 2ghz-n
frequencies:
- 2412
secondaryFrequencies:
- disabled
skipDfsChannels: disabled
width: 20mhz
Create WifiChannel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WifiChannel(name: string, args?: WifiChannelArgs, opts?: CustomResourceOptions);
@overload
def WifiChannel(resource_name: str,
args: Optional[WifiChannelArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def WifiChannel(resource_name: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
band: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
frequencies: Optional[Sequence[str]] = None,
name: Optional[str] = None,
reselect_interval: Optional[str] = None,
secondary_frequencies: Optional[Sequence[str]] = None,
skip_dfs_channels: Optional[str] = None,
width: Optional[str] = None,
wifi_channel_id: Optional[str] = None)
func NewWifiChannel(ctx *Context, name string, args *WifiChannelArgs, opts ...ResourceOption) (*WifiChannel, error)
public WifiChannel(string name, WifiChannelArgs? args = null, CustomResourceOptions? opts = null)
public WifiChannel(String name, WifiChannelArgs args)
public WifiChannel(String name, WifiChannelArgs args, CustomResourceOptions options)
type: routeros:WifiChannel
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 WifiChannelArgs
- 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 WifiChannelArgs
- 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 WifiChannelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WifiChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WifiChannelArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WifiChannel 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 WifiChannel resource accepts the following input properties:
- Band string
- Frequency band and wireless standard that will be used by the AP.
- Comment string
- Disabled bool
- Frequencies List<string>
- Channel frequency value or range in MHz on which AP or station will operate.
- Name string
- Name of the channel.
- Reselect
Interval string - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- Secondary
Frequencies List<string> - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - Skip
Dfs stringChannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- Width string
- Channel width.
- Wifi
Channel stringId - The ID of this resource.
- ___
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.
- Band string
- Frequency band and wireless standard that will be used by the AP.
- Comment string
- Disabled bool
- Frequencies []string
- Channel frequency value or range in MHz on which AP or station will operate.
- Name string
- Name of the channel.
- Reselect
Interval string - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- Secondary
Frequencies []string - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - Skip
Dfs stringChannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- Width string
- Channel width.
- Wifi
Channel stringId - The ID of this resource.
- ___
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.
- band String
- Frequency band and wireless standard that will be used by the AP.
- comment String
- disabled Boolean
- frequencies List<String>
- Channel frequency value or range in MHz on which AP or station will operate.
- name String
- Name of the channel.
- reselect
Interval String - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- secondary
Frequencies List<String> - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - skip
Dfs StringChannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- width String
- Channel width.
- wifi
Channel StringId - The ID of this resource.
- ___
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.
- band string
- Frequency band and wireless standard that will be used by the AP.
- comment string
- disabled boolean
- frequencies string[]
- Channel frequency value or range in MHz on which AP or station will operate.
- name string
- Name of the channel.
- reselect
Interval string - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- secondary
Frequencies string[] - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - skip
Dfs stringChannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- width string
- Channel width.
- wifi
Channel stringId - The ID of this resource.
- ___
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.
- band str
- Frequency band and wireless standard that will be used by the AP.
- comment str
- disabled bool
- frequencies Sequence[str]
- Channel frequency value or range in MHz on which AP or station will operate.
- name str
- Name of the channel.
- reselect_
interval str - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- secondary_
frequencies Sequence[str] - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - skip_
dfs_ strchannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- width str
- Channel width.
- wifi_
channel_ strid - The ID of this resource.
- ___
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.
- band String
- Frequency band and wireless standard that will be used by the AP.
- comment String
- disabled Boolean
- frequencies List<String>
- Channel frequency value or range in MHz on which AP or station will operate.
- name String
- Name of the channel.
- reselect
Interval String - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- secondary
Frequencies List<String> - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - skip
Dfs StringChannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- width String
- Channel width.
- wifi
Channel StringId - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WifiChannel 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 WifiChannel Resource
Get an existing WifiChannel 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?: WifiChannelState, opts?: CustomResourceOptions): WifiChannel
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
band: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
frequencies: Optional[Sequence[str]] = None,
name: Optional[str] = None,
reselect_interval: Optional[str] = None,
secondary_frequencies: Optional[Sequence[str]] = None,
skip_dfs_channels: Optional[str] = None,
width: Optional[str] = None,
wifi_channel_id: Optional[str] = None) -> WifiChannel
func GetWifiChannel(ctx *Context, name string, id IDInput, state *WifiChannelState, opts ...ResourceOption) (*WifiChannel, error)
public static WifiChannel Get(string name, Input<string> id, WifiChannelState? state, CustomResourceOptions? opts = null)
public static WifiChannel get(String name, Output<String> id, WifiChannelState state, CustomResourceOptions options)
resources: _: type: routeros:WifiChannel 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.
- Band string
- Frequency band and wireless standard that will be used by the AP.
- Comment string
- Disabled bool
- Frequencies List<string>
- Channel frequency value or range in MHz on which AP or station will operate.
- Name string
- Name of the channel.
- Reselect
Interval string - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- Secondary
Frequencies List<string> - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - Skip
Dfs stringChannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- Width string
- Channel width.
- Wifi
Channel stringId - The ID of this resource.
- ___
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.
- Band string
- Frequency band and wireless standard that will be used by the AP.
- Comment string
- Disabled bool
- Frequencies []string
- Channel frequency value or range in MHz on which AP or station will operate.
- Name string
- Name of the channel.
- Reselect
Interval string - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- Secondary
Frequencies []string - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - Skip
Dfs stringChannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- Width string
- Channel width.
- Wifi
Channel stringId - The ID of this resource.
- ___
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.
- band String
- Frequency band and wireless standard that will be used by the AP.
- comment String
- disabled Boolean
- frequencies List<String>
- Channel frequency value or range in MHz on which AP or station will operate.
- name String
- Name of the channel.
- reselect
Interval String - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- secondary
Frequencies List<String> - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - skip
Dfs StringChannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- width String
- Channel width.
- wifi
Channel StringId - The ID of this resource.
- ___
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.
- band string
- Frequency band and wireless standard that will be used by the AP.
- comment string
- disabled boolean
- frequencies string[]
- Channel frequency value or range in MHz on which AP or station will operate.
- name string
- Name of the channel.
- reselect
Interval string - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- secondary
Frequencies string[] - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - skip
Dfs stringChannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- width string
- Channel width.
- wifi
Channel stringId - The ID of this resource.
- ___
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.
- band str
- Frequency band and wireless standard that will be used by the AP.
- comment str
- disabled bool
- frequencies Sequence[str]
- Channel frequency value or range in MHz on which AP or station will operate.
- name str
- Name of the channel.
- reselect_
interval str - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- secondary_
frequencies Sequence[str] - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - skip_
dfs_ strchannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- width str
- Channel width.
- wifi_
channel_ strid - The ID of this resource.
- ___
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.
- band String
- Frequency band and wireless standard that will be used by the AP.
- comment String
- disabled Boolean
- frequencies List<String>
- Channel frequency value or range in MHz on which AP or station will operate.
- name String
- Name of the channel.
- reselect
Interval String - An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.
- secondary
Frequencies List<String> - Specifies the second frequency that will be used for 80+80MHz configuration. Set it to
disabled
in order to disable 80+80MHz capability. - skip
Dfs StringChannels - An option to avoid using channels on which channel availability check (listening for the presence of radar signals) is required.
- width String
- Channel width.
- wifi
Channel StringId - The ID of this resource.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/interface/wifi/channel get [print show-ids]]
$ pulumi import routeros:index/wifiChannel:WifiChannel channel1 '*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.