1. Packages
  2. Routeros Provider
  3. API Docs
  4. InterfaceDot1xClient
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

routeros.InterfaceDot1xClient

Explore with Pulumi AI

routeros logo
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as routeros from "@pulumi/routeros";
    
    const ether2 = new routeros.InterfaceDot1xClient("ether2", {
        eapMethods: [
            "eap-peap",
            "eap-mschapv2",
        ],
        identity: "router",
        "interface": "ether2",
    });
    
    import pulumi
    import pulumi_routeros as routeros
    
    ether2 = routeros.InterfaceDot1xClient("ether2",
        eap_methods=[
            "eap-peap",
            "eap-mschapv2",
        ],
        identity="router",
        interface="ether2")
    
    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.NewInterfaceDot1xClient(ctx, "ether2", &routeros.InterfaceDot1xClientArgs{
    			EapMethods: pulumi.StringArray{
    				pulumi.String("eap-peap"),
    				pulumi.String("eap-mschapv2"),
    			},
    			Identity:  pulumi.String("router"),
    			Interface: pulumi.String("ether2"),
    		})
    		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 ether2 = new Routeros.InterfaceDot1xClient("ether2", new()
        {
            EapMethods = new[]
            {
                "eap-peap",
                "eap-mschapv2",
            },
            Identity = "router",
            Interface = "ether2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.InterfaceDot1xClient;
    import com.pulumi.routeros.InterfaceDot1xClientArgs;
    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 InterfaceDot1xClient("ether2", InterfaceDot1xClientArgs.builder()
                .eapMethods(            
                    "eap-peap",
                    "eap-mschapv2")
                .identity("router")
                .interface_("ether2")
                .build());
    
        }
    }
    
    resources:
      ether2:
        type: routeros:InterfaceDot1xClient
        properties:
          eapMethods:
            - eap-peap
            - eap-mschapv2
          identity: router
          interface: ether2
    

    Create InterfaceDot1xClient Resource

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

    Constructor syntax

    new InterfaceDot1xClient(name: string, args: InterfaceDot1xClientArgs, opts?: CustomResourceOptions);
    @overload
    def InterfaceDot1xClient(resource_name: str,
                             args: InterfaceDot1xClientArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def InterfaceDot1xClient(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             eap_methods: Optional[Sequence[str]] = None,
                             identity: Optional[str] = None,
                             interface: Optional[str] = None,
                             ___id_: Optional[float] = None,
                             ___path_: Optional[str] = None,
                             anon_identity: Optional[str] = None,
                             certificate: Optional[str] = None,
                             comment: Optional[str] = None,
                             disabled: Optional[bool] = None,
                             interface_dot1x_client_id: Optional[str] = None,
                             password: Optional[str] = None)
    func NewInterfaceDot1xClient(ctx *Context, name string, args InterfaceDot1xClientArgs, opts ...ResourceOption) (*InterfaceDot1xClient, error)
    public InterfaceDot1xClient(string name, InterfaceDot1xClientArgs args, CustomResourceOptions? opts = null)
    public InterfaceDot1xClient(String name, InterfaceDot1xClientArgs args)
    public InterfaceDot1xClient(String name, InterfaceDot1xClientArgs args, CustomResourceOptions options)
    
    type: routeros:InterfaceDot1xClient
    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 InterfaceDot1xClientArgs
    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 InterfaceDot1xClientArgs
    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 InterfaceDot1xClientArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InterfaceDot1xClientArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InterfaceDot1xClientArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    EapMethods List<string>
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    Identity string
    The supplicant identity that is used for EAP authentication.
    Interface string
    Name of the interface.
    AnonIdentity string
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    Certificate string
    Name of a certificate. Required when the eap-tls method is used.
    Comment string
    Disabled bool
    InterfaceDot1xClientId string
    The ID of this resource.
    Password string
    Cleartext password for the supplicant.
    ___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.
    EapMethods []string
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    Identity string
    The supplicant identity that is used for EAP authentication.
    Interface string
    Name of the interface.
    AnonIdentity string
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    Certificate string
    Name of a certificate. Required when the eap-tls method is used.
    Comment string
    Disabled bool
    InterfaceDot1xClientId string
    The ID of this resource.
    Password string
    Cleartext password for the supplicant.
    ___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.
    eapMethods List<String>
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    identity String
    The supplicant identity that is used for EAP authentication.
    interface_ 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.
    anonIdentity String
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    certificate String
    Name of a certificate. Required when the eap-tls method is used.
    comment String
    disabled Boolean
    interfaceDot1xClientId String
    The ID of this resource.
    password String
    Cleartext password for the supplicant.
    eapMethods string[]
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    identity string
    The supplicant identity that is used for EAP authentication.
    interface 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.
    anonIdentity string
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    certificate string
    Name of a certificate. Required when the eap-tls method is used.
    comment string
    disabled boolean
    interfaceDot1xClientId string
    The ID of this resource.
    password string
    Cleartext password for the supplicant.
    eap_methods Sequence[str]
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    identity str
    The supplicant identity that is used for EAP authentication.
    interface 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.
    anon_identity str
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    certificate str
    Name of a certificate. Required when the eap-tls method is used.
    comment str
    disabled bool
    interface_dot1x_client_id str
    The ID of this resource.
    password str
    Cleartext password for the supplicant.
    eapMethods List<String>
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    identity String
    The supplicant identity that is used for EAP authentication.
    interface 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.
    anonIdentity String
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    certificate String
    Name of a certificate. Required when the eap-tls method is used.
    comment String
    disabled Boolean
    interfaceDot1xClientId String
    The ID of this resource.
    password String
    Cleartext password for the supplicant.

    Outputs

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

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

    Look up Existing InterfaceDot1xClient Resource

    Get an existing InterfaceDot1xClient 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?: InterfaceDot1xClientState, opts?: CustomResourceOptions): InterfaceDot1xClient
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            anon_identity: Optional[str] = None,
            certificate: Optional[str] = None,
            comment: Optional[str] = None,
            disabled: Optional[bool] = None,
            eap_methods: Optional[Sequence[str]] = None,
            identity: Optional[str] = None,
            interface: Optional[str] = None,
            interface_dot1x_client_id: Optional[str] = None,
            password: Optional[str] = None,
            status: Optional[str] = None) -> InterfaceDot1xClient
    func GetInterfaceDot1xClient(ctx *Context, name string, id IDInput, state *InterfaceDot1xClientState, opts ...ResourceOption) (*InterfaceDot1xClient, error)
    public static InterfaceDot1xClient Get(string name, Input<string> id, InterfaceDot1xClientState? state, CustomResourceOptions? opts = null)
    public static InterfaceDot1xClient get(String name, Output<String> id, InterfaceDot1xClientState state, CustomResourceOptions options)
    resources:  _:    type: routeros:InterfaceDot1xClient    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.
    The following state arguments are supported:
    AnonIdentity string
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    Certificate string
    Name of a certificate. Required when the eap-tls method is used.
    Comment string
    Disabled bool
    EapMethods List<string>
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    Identity string
    The supplicant identity that is used for EAP authentication.
    Interface string
    Name of the interface.
    InterfaceDot1xClientId string
    The ID of this resource.
    Password string
    Cleartext password for the supplicant.
    Status 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.
    AnonIdentity string
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    Certificate string
    Name of a certificate. Required when the eap-tls method is used.
    Comment string
    Disabled bool
    EapMethods []string
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    Identity string
    The supplicant identity that is used for EAP authentication.
    Interface string
    Name of the interface.
    InterfaceDot1xClientId string
    The ID of this resource.
    Password string
    Cleartext password for the supplicant.
    Status 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.
    anonIdentity String
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    certificate String
    Name of a certificate. Required when the eap-tls method is used.
    comment String
    disabled Boolean
    eapMethods List<String>
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    identity String
    The supplicant identity that is used for EAP authentication.
    interfaceDot1xClientId String
    The ID of this resource.
    interface_ String
    Name of the interface.
    password String
    Cleartext password for the supplicant.
    status 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.
    anonIdentity string
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    certificate string
    Name of a certificate. Required when the eap-tls method is used.
    comment string
    disabled boolean
    eapMethods string[]
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    identity string
    The supplicant identity that is used for EAP authentication.
    interface string
    Name of the interface.
    interfaceDot1xClientId string
    The ID of this resource.
    password string
    Cleartext password for the supplicant.
    status 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.
    anon_identity str
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    certificate str
    Name of a certificate. Required when the eap-tls method is used.
    comment str
    disabled bool
    eap_methods Sequence[str]
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    identity str
    The supplicant identity that is used for EAP authentication.
    interface str
    Name of the interface.
    interface_dot1x_client_id str
    The ID of this resource.
    password str
    Cleartext password for the supplicant.
    status 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.
    anonIdentity String
    Identity for outer layer EAP authentication. Used only with eap-ttls and eap-peap methods. If not set, the value from the identity parameter will be used for outer layer EAP authentication.
    certificate String
    Name of a certificate. Required when the eap-tls method is used.
    comment String
    disabled Boolean
    eapMethods List<String>
    A set of EAP methods used for authentication: eap-tls, eap-ttls, eap-peap, eap-mschapv2.
    identity String
    The supplicant identity that is used for EAP authentication.
    interface String
    Name of the interface.
    interfaceDot1xClientId String
    The ID of this resource.
    password String
    Cleartext password for the supplicant.
    status String

    Import

    #The ID can be found via API or the terminal

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

    $ pulumi import routeros:index/interfaceDot1xClient:InterfaceDot1xClient ether2 *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.
    routeros logo
    routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros