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

routeros.InterfaceDot1xServer

Explore with Pulumi AI

Example Usage

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

const ether2 = new routeros.InterfaceDot1xServer("ether2", {
    authTypes: ["mac-auth"],
    "interface": "ether2",
});
Copy
import pulumi
import pulumi_routeros as routeros

ether2 = routeros.InterfaceDot1xServer("ether2",
    auth_types=["mac-auth"],
    interface="ether2")
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.NewInterfaceDot1xServer(ctx, "ether2", &routeros.InterfaceDot1xServerArgs{
			AuthTypes: pulumi.StringArray{
				pulumi.String("mac-auth"),
			},
			Interface: pulumi.String("ether2"),
		})
		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 ether2 = new Routeros.InterfaceDot1xServer("ether2", new()
    {
        AuthTypes = new[]
        {
            "mac-auth",
        },
        Interface = "ether2",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.InterfaceDot1xServer;
import com.pulumi.routeros.InterfaceDot1xServerArgs;
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 ether2 = new InterfaceDot1xServer("ether2", InterfaceDot1xServerArgs.builder()
            .authTypes("mac-auth")
            .interface_("ether2")
            .build());

    }
}
Copy
resources:
  ether2:
    type: routeros:InterfaceDot1xServer
    properties:
      authTypes:
        - mac-auth
      interface: ether2
Copy

Create InterfaceDot1xServer Resource

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

Constructor syntax

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

@overload
def InterfaceDot1xServer(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         interface: Optional[str] = None,
                         auth_types: Optional[Sequence[str]] = None,
                         interim_update: Optional[str] = None,
                         auth_timeout: Optional[str] = None,
                         ___id_: Optional[float] = None,
                         comment: Optional[str] = None,
                         disabled: Optional[bool] = None,
                         accounting: Optional[bool] = None,
                         guest_vlan_id: Optional[float] = None,
                         interface_dot1x_server_id: Optional[str] = None,
                         ___path_: Optional[str] = None,
                         mac_auth_mode: Optional[str] = None,
                         radius_mac_format: Optional[str] = None,
                         reauth_timeout: Optional[str] = None,
                         reject_vlan_id: Optional[float] = None,
                         retrans_timeout: Optional[str] = None,
                         server_fail_vlan_id: Optional[float] = None)
func NewInterfaceDot1xServer(ctx *Context, name string, args InterfaceDot1xServerArgs, opts ...ResourceOption) (*InterfaceDot1xServer, error)
public InterfaceDot1xServer(string name, InterfaceDot1xServerArgs args, CustomResourceOptions? opts = null)
public InterfaceDot1xServer(String name, InterfaceDot1xServerArgs args)
public InterfaceDot1xServer(String name, InterfaceDot1xServerArgs args, CustomResourceOptions options)
type: routeros:InterfaceDot1xServer
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 This property is required. InterfaceDot1xServerArgs
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 This property is required. InterfaceDot1xServerArgs
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 This property is required. InterfaceDot1xServerArgs
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 This property is required. InterfaceDot1xServerArgs
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. InterfaceDot1xServerArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

InterfaceDot1xServer 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 InterfaceDot1xServer resource accepts the following input properties:

Interface This property is required. string
Name of the interface.
Accounting bool
Whether to send RADIUS accounting requests to the authentication server.
AuthTimeout string
Total time available for EAP authentication.
AuthTypes List<string>
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
Comment string
Disabled bool
GuestVlanId double
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
InterfaceDot1xServerId string
The ID of this resource.
InterimUpdate string
Interval between scheduled RADIUS Interim-Update messages.
MacAuthMode string
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
RadiusMacFormat string
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
ReauthTimeout string
An option that enables server port re-authentication.
RejectVlanId double
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
RetransTimeout string
The time interval between message re-transmissions if no response is received from the supplicant.
ServerFailVlanId double
Assigned VLAN when RADIUS server is not responding and request timed out.
___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.
Interface This property is required. string
Name of the interface.
Accounting bool
Whether to send RADIUS accounting requests to the authentication server.
AuthTimeout string
Total time available for EAP authentication.
AuthTypes []string
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
Comment string
Disabled bool
GuestVlanId float64
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
InterfaceDot1xServerId string
The ID of this resource.
InterimUpdate string
Interval between scheduled RADIUS Interim-Update messages.
MacAuthMode string
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
RadiusMacFormat string
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
ReauthTimeout string
An option that enables server port re-authentication.
RejectVlanId float64
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
RetransTimeout string
The time interval between message re-transmissions if no response is received from the supplicant.
ServerFailVlanId float64
Assigned VLAN when RADIUS server is not responding and request timed out.
___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.
interface_ This property is required. String
Name of the interface.
___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.
accounting Boolean
Whether to send RADIUS accounting requests to the authentication server.
authTimeout String
Total time available for EAP authentication.
authTypes List<String>
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
comment String
disabled Boolean
guestVlanId Double
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
interfaceDot1xServerId String
The ID of this resource.
interimUpdate String
Interval between scheduled RADIUS Interim-Update messages.
macAuthMode String
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
radiusMacFormat String
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
reauthTimeout String
An option that enables server port re-authentication.
rejectVlanId Double
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
retransTimeout String
The time interval between message re-transmissions if no response is received from the supplicant.
serverFailVlanId Double
Assigned VLAN when RADIUS server is not responding and request timed out.
interface This property is required. string
Name of the interface.
___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.
accounting boolean
Whether to send RADIUS accounting requests to the authentication server.
authTimeout string
Total time available for EAP authentication.
authTypes string[]
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
comment string
disabled boolean
guestVlanId number
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
interfaceDot1xServerId string
The ID of this resource.
interimUpdate string
Interval between scheduled RADIUS Interim-Update messages.
macAuthMode string
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
radiusMacFormat string
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
reauthTimeout string
An option that enables server port re-authentication.
rejectVlanId number
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
retransTimeout string
The time interval between message re-transmissions if no response is received from the supplicant.
serverFailVlanId number
Assigned VLAN when RADIUS server is not responding and request timed out.
interface This property is required. str
Name of the interface.
___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.
accounting bool
Whether to send RADIUS accounting requests to the authentication server.
auth_timeout str
Total time available for EAP authentication.
auth_types Sequence[str]
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
comment str
disabled bool
guest_vlan_id float
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
interface_dot1x_server_id str
The ID of this resource.
interim_update str
Interval between scheduled RADIUS Interim-Update messages.
mac_auth_mode str
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
radius_mac_format str
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
reauth_timeout str
An option that enables server port re-authentication.
reject_vlan_id float
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
retrans_timeout str
The time interval between message re-transmissions if no response is received from the supplicant.
server_fail_vlan_id float
Assigned VLAN when RADIUS server is not responding and request timed out.
interface This property is required. String
Name of the interface.
___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.
accounting Boolean
Whether to send RADIUS accounting requests to the authentication server.
authTimeout String
Total time available for EAP authentication.
authTypes List<String>
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
comment String
disabled Boolean
guestVlanId Number
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
interfaceDot1xServerId String
The ID of this resource.
interimUpdate String
Interval between scheduled RADIUS Interim-Update messages.
macAuthMode String
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
radiusMacFormat String
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
reauthTimeout String
An option that enables server port re-authentication.
rejectVlanId Number
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
retransTimeout String
The time interval between message re-transmissions if no response is received from the supplicant.
serverFailVlanId Number
Assigned VLAN when RADIUS server is not responding and request timed out.

Outputs

All input properties are implicitly available as output properties. Additionally, the InterfaceDot1xServer 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 InterfaceDot1xServer Resource

Get an existing InterfaceDot1xServer 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?: InterfaceDot1xServerState, opts?: CustomResourceOptions): InterfaceDot1xServer
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ___id_: Optional[float] = None,
        ___path_: Optional[str] = None,
        accounting: Optional[bool] = None,
        auth_timeout: Optional[str] = None,
        auth_types: Optional[Sequence[str]] = None,
        comment: Optional[str] = None,
        disabled: Optional[bool] = None,
        guest_vlan_id: Optional[float] = None,
        interface: Optional[str] = None,
        interface_dot1x_server_id: Optional[str] = None,
        interim_update: Optional[str] = None,
        mac_auth_mode: Optional[str] = None,
        radius_mac_format: Optional[str] = None,
        reauth_timeout: Optional[str] = None,
        reject_vlan_id: Optional[float] = None,
        retrans_timeout: Optional[str] = None,
        server_fail_vlan_id: Optional[float] = None) -> InterfaceDot1xServer
func GetInterfaceDot1xServer(ctx *Context, name string, id IDInput, state *InterfaceDot1xServerState, opts ...ResourceOption) (*InterfaceDot1xServer, error)
public static InterfaceDot1xServer Get(string name, Input<string> id, InterfaceDot1xServerState? state, CustomResourceOptions? opts = null)
public static InterfaceDot1xServer get(String name, Output<String> id, InterfaceDot1xServerState state, CustomResourceOptions options)
resources:  _:    type: routeros:InterfaceDot1xServer    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:
Accounting bool
Whether to send RADIUS accounting requests to the authentication server.
AuthTimeout string
Total time available for EAP authentication.
AuthTypes List<string>
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
Comment string
Disabled bool
GuestVlanId double
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
Interface string
Name of the interface.
InterfaceDot1xServerId string
The ID of this resource.
InterimUpdate string
Interval between scheduled RADIUS Interim-Update messages.
MacAuthMode string
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
RadiusMacFormat string
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
ReauthTimeout string
An option that enables server port re-authentication.
RejectVlanId double
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
RetransTimeout string
The time interval between message re-transmissions if no response is received from the supplicant.
ServerFailVlanId double
Assigned VLAN when RADIUS server is not responding and request timed out.
___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.
Accounting bool
Whether to send RADIUS accounting requests to the authentication server.
AuthTimeout string
Total time available for EAP authentication.
AuthTypes []string
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
Comment string
Disabled bool
GuestVlanId float64
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
Interface string
Name of the interface.
InterfaceDot1xServerId string
The ID of this resource.
InterimUpdate string
Interval between scheduled RADIUS Interim-Update messages.
MacAuthMode string
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
RadiusMacFormat string
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
ReauthTimeout string
An option that enables server port re-authentication.
RejectVlanId float64
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
RetransTimeout string
The time interval between message re-transmissions if no response is received from the supplicant.
ServerFailVlanId float64
Assigned VLAN when RADIUS server is not responding and request timed out.
___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.
accounting Boolean
Whether to send RADIUS accounting requests to the authentication server.
authTimeout String
Total time available for EAP authentication.
authTypes List<String>
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
comment String
disabled Boolean
guestVlanId Double
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
interfaceDot1xServerId String
The ID of this resource.
interface_ String
Name of the interface.
interimUpdate String
Interval between scheduled RADIUS Interim-Update messages.
macAuthMode String
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
radiusMacFormat String
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
reauthTimeout String
An option that enables server port re-authentication.
rejectVlanId Double
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
retransTimeout String
The time interval between message re-transmissions if no response is received from the supplicant.
serverFailVlanId Double
Assigned VLAN when RADIUS server is not responding and request timed out.
___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.
accounting boolean
Whether to send RADIUS accounting requests to the authentication server.
authTimeout string
Total time available for EAP authentication.
authTypes string[]
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
comment string
disabled boolean
guestVlanId number
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
interface string
Name of the interface.
interfaceDot1xServerId string
The ID of this resource.
interimUpdate string
Interval between scheduled RADIUS Interim-Update messages.
macAuthMode string
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
radiusMacFormat string
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
reauthTimeout string
An option that enables server port re-authentication.
rejectVlanId number
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
retransTimeout string
The time interval between message re-transmissions if no response is received from the supplicant.
serverFailVlanId number
Assigned VLAN when RADIUS server is not responding and request timed out.
___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.
accounting bool
Whether to send RADIUS accounting requests to the authentication server.
auth_timeout str
Total time available for EAP authentication.
auth_types Sequence[str]
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
comment str
disabled bool
guest_vlan_id float
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
interface str
Name of the interface.
interface_dot1x_server_id str
The ID of this resource.
interim_update str
Interval between scheduled RADIUS Interim-Update messages.
mac_auth_mode str
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
radius_mac_format str
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
reauth_timeout str
An option that enables server port re-authentication.
reject_vlan_id float
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
retrans_timeout str
The time interval between message re-transmissions if no response is received from the supplicant.
server_fail_vlan_id float
Assigned VLAN when RADIUS server is not responding and request timed out.
___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.
accounting Boolean
Whether to send RADIUS accounting requests to the authentication server.
authTimeout String
Total time available for EAP authentication.
authTypes List<String>
Used authentication type on a server interface. Comma-separated list of dot1x and mac-auth.
comment String
disabled Boolean
guestVlanId Number
Assigned VLAN when end devices do not support dot1x authentication and no mac-auth fallback is configured.
interface String
Name of the interface.
interfaceDot1xServerId String
The ID of this resource.
interimUpdate String
Interval between scheduled RADIUS Interim-Update messages.
macAuthMode String
An option that allows to control User-Name and User-Password RADIUS attributes when using MAC authentication.
radiusMacFormat String
An option that controls how the MAC address of the client is encoded in the User-Name and User-Password attributes when using MAC authentication.
reauthTimeout String
An option that enables server port re-authentication.
rejectVlanId Number
Assigned VLAN when authentication failed, and a RADIUS server responded with an Access-Reject message.
retransTimeout String
The time interval between message re-transmissions if no response is received from the supplicant.
serverFailVlanId Number
Assigned VLAN when RADIUS server is not responding and request timed out.

Import

#The ID can be found via API or the terminal

#The command for the terminal is -> :put [/interface/dot1x/server get [print show-ids]]

$ pulumi import routeros:index/interfaceDot1xServer:InterfaceDot1xServer ether2 *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.