routeros.InterfaceDot1xClient
Explore with Pulumi AI
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:
- Eap
Methods 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.
- Anon
Identity string - Identity for outer layer EAP authentication. Used only with
eap-ttls
andeap-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
- Interface
Dot1x stringClient Id - 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.
- Eap
Methods []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.
- Anon
Identity string - Identity for outer layer EAP authentication. Used only with
eap-ttls
andeap-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
- Interface
Dot1x stringClient Id - 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.
- eap
Methods 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.
- anon
Identity String - Identity for outer layer EAP authentication. Used only with
eap-ttls
andeap-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
- interface
Dot1x StringClient Id - The ID of this resource.
- password String
- Cleartext password for the supplicant.
- eap
Methods 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.
- anon
Identity string - Identity for outer layer EAP authentication. Used only with
eap-ttls
andeap-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
- interface
Dot1x stringClient Id - 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
andeap-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_ strclient_ id - The ID of this resource.
- password str
- Cleartext password for the supplicant.
- eap
Methods 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.
- anon
Identity String - Identity for outer layer EAP authentication. Used only with
eap-ttls
andeap-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
- interface
Dot1x StringClient Id - 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:
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.
- Anon
Identity string - Identity for outer layer EAP authentication. Used only with
eap-ttls
andeap-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
- Eap
Methods 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.
- Interface
Dot1x stringClient Id - 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.
- Anon
Identity string - Identity for outer layer EAP authentication. Used only with
eap-ttls
andeap-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
- Eap
Methods []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.
- Interface
Dot1x stringClient Id - 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.
- anon
Identity String - Identity for outer layer EAP authentication. Used only with
eap-ttls
andeap-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
- eap
Methods 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
Dot1x StringClient Id - 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.
- anon
Identity string - Identity for outer layer EAP authentication. Used only with
eap-ttls
andeap-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
- eap
Methods 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.
- interface
Dot1x stringClient Id - 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
andeap-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_ strclient_ id - 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.
- anon
Identity String - Identity for outer layer EAP authentication. Used only with
eap-ttls
andeap-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
- eap
Methods 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.
- interface
Dot1x StringClient Id - 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.