routeros.Radius
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const userManager = new routeros.Radius("userManager", {
address: "127.0.0.1",
services: [
"ppp",
"login",
],
});
import pulumi
import pulumi_routeros as routeros
user_manager = routeros.Radius("userManager",
address="127.0.0.1",
services=[
"ppp",
"login",
])
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.NewRadius(ctx, "userManager", &routeros.RadiusArgs{
Address: pulumi.String("127.0.0.1"),
Services: pulumi.StringArray{
pulumi.String("ppp"),
pulumi.String("login"),
},
})
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 userManager = new Routeros.Radius("userManager", new()
{
Address = "127.0.0.1",
Services = new[]
{
"ppp",
"login",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.Radius;
import com.pulumi.routeros.RadiusArgs;
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 userManager = new Radius("userManager", RadiusArgs.builder()
.address("127.0.0.1")
.services(
"ppp",
"login")
.build());
}
}
resources:
userManager:
type: routeros:Radius
properties:
address: 127.0.0.1
services:
- ppp
- login
Create Radius Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Radius(name: string, args: RadiusArgs, opts?: CustomResourceOptions);
@overload
def Radius(resource_name: str,
args: RadiusArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Radius(resource_name: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
comment: Optional[str] = None,
protocol: Optional[str] = None,
accounting_port: Optional[float] = None,
___path_: Optional[str] = None,
authentication_port: Optional[float] = None,
called_id: Optional[str] = None,
certificate: Optional[str] = None,
___id_: Optional[float] = None,
accounting_backup: Optional[bool] = None,
disabled: Optional[bool] = None,
domain: Optional[str] = None,
radius_id: Optional[str] = None,
realm: Optional[str] = None,
require_message_auth: Optional[str] = None,
secret: Optional[str] = None,
services: Optional[Sequence[str]] = None,
src_address: Optional[str] = None,
timeout: Optional[str] = None)
func NewRadius(ctx *Context, name string, args RadiusArgs, opts ...ResourceOption) (*Radius, error)
public Radius(string name, RadiusArgs args, CustomResourceOptions? opts = null)
public Radius(String name, RadiusArgs args)
public Radius(String name, RadiusArgs args, CustomResourceOptions options)
type: routeros:Radius
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 RadiusArgs
- 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 RadiusArgs
- 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 RadiusArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RadiusArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RadiusArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Radius 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 Radius resource accepts the following input properties:
- Address string
- IPv4 or IPv6 address of RADIUS server.
- Accounting
Backup bool - An option whether the configuration is for the backup RADIUS server.
- Accounting
Port double - RADIUS server port used for accounting.
- Authentication
Port double - RADIUS server port used for authentication.
- Called
Id string - RADIUS calling station identifier.
- Certificate string
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- Comment string
- Disabled bool
- Domain string
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- Protocol string
- An option specifies the protocol to use when communicating with the RADIUS Server.
- Radius
Id string - The ID of this resource.
- Realm string
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- Require
Message stringAuth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - Secret string
- The shared secret to access the RADIUS server.
- Services List<string>
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - Src
Address string - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- Timeout string
- A timeout, after which the request should be resent.
- ___
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.
- Address string
- IPv4 or IPv6 address of RADIUS server.
- Accounting
Backup bool - An option whether the configuration is for the backup RADIUS server.
- Accounting
Port float64 - RADIUS server port used for accounting.
- Authentication
Port float64 - RADIUS server port used for authentication.
- Called
Id string - RADIUS calling station identifier.
- Certificate string
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- Comment string
- Disabled bool
- Domain string
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- Protocol string
- An option specifies the protocol to use when communicating with the RADIUS Server.
- Radius
Id string - The ID of this resource.
- Realm string
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- Require
Message stringAuth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - Secret string
- The shared secret to access the RADIUS server.
- Services []string
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - Src
Address string - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- Timeout string
- A timeout, after which the request should be resent.
- ___
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.
- address String
- IPv4 or IPv6 address of RADIUS server.
- ___
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
Backup Boolean - An option whether the configuration is for the backup RADIUS server.
- accounting
Port Double - RADIUS server port used for accounting.
- authentication
Port Double - RADIUS server port used for authentication.
- called
Id String - RADIUS calling station identifier.
- certificate String
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- comment String
- disabled Boolean
- domain String
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- protocol String
- An option specifies the protocol to use when communicating with the RADIUS Server.
- radius
Id String - The ID of this resource.
- realm String
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- require
Message StringAuth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - secret String
- The shared secret to access the RADIUS server.
- services List<String>
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - src
Address String - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- timeout String
- A timeout, after which the request should be resent.
- address string
- IPv4 or IPv6 address of RADIUS server.
- ___
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
Backup boolean - An option whether the configuration is for the backup RADIUS server.
- accounting
Port number - RADIUS server port used for accounting.
- authentication
Port number - RADIUS server port used for authentication.
- called
Id string - RADIUS calling station identifier.
- certificate string
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- comment string
- disabled boolean
- domain string
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- protocol string
- An option specifies the protocol to use when communicating with the RADIUS Server.
- radius
Id string - The ID of this resource.
- realm string
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- require
Message stringAuth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - secret string
- The shared secret to access the RADIUS server.
- services string[]
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - src
Address string - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- timeout string
- A timeout, after which the request should be resent.
- address str
- IPv4 or IPv6 address of RADIUS server.
- ___
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_
backup bool - An option whether the configuration is for the backup RADIUS server.
- accounting_
port float - RADIUS server port used for accounting.
- authentication_
port float - RADIUS server port used for authentication.
- called_
id str - RADIUS calling station identifier.
- certificate str
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- comment str
- disabled bool
- domain str
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- protocol str
- An option specifies the protocol to use when communicating with the RADIUS Server.
- radius_
id str - The ID of this resource.
- realm str
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- require_
message_ strauth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - secret str
- The shared secret to access the RADIUS server.
- services Sequence[str]
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - src_
address str - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- timeout str
- A timeout, after which the request should be resent.
- address String
- IPv4 or IPv6 address of RADIUS server.
- ___
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
Backup Boolean - An option whether the configuration is for the backup RADIUS server.
- accounting
Port Number - RADIUS server port used for accounting.
- authentication
Port Number - RADIUS server port used for authentication.
- called
Id String - RADIUS calling station identifier.
- certificate String
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- comment String
- disabled Boolean
- domain String
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- protocol String
- An option specifies the protocol to use when communicating with the RADIUS Server.
- radius
Id String - The ID of this resource.
- realm String
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- require
Message StringAuth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - secret String
- The shared secret to access the RADIUS server.
- services List<String>
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - src
Address String - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- timeout String
- A timeout, after which the request should be resent.
Outputs
All input properties are implicitly available as output properties. Additionally, the Radius 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 Radius Resource
Get an existing Radius 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?: RadiusState, opts?: CustomResourceOptions): Radius
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
accounting_backup: Optional[bool] = None,
accounting_port: Optional[float] = None,
address: Optional[str] = None,
authentication_port: Optional[float] = None,
called_id: Optional[str] = None,
certificate: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
domain: Optional[str] = None,
protocol: Optional[str] = None,
radius_id: Optional[str] = None,
realm: Optional[str] = None,
require_message_auth: Optional[str] = None,
secret: Optional[str] = None,
services: Optional[Sequence[str]] = None,
src_address: Optional[str] = None,
timeout: Optional[str] = None) -> Radius
func GetRadius(ctx *Context, name string, id IDInput, state *RadiusState, opts ...ResourceOption) (*Radius, error)
public static Radius Get(string name, Input<string> id, RadiusState? state, CustomResourceOptions? opts = null)
public static Radius get(String name, Output<String> id, RadiusState state, CustomResourceOptions options)
resources: _: type: routeros:Radius 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.
- Accounting
Backup bool - An option whether the configuration is for the backup RADIUS server.
- Accounting
Port double - RADIUS server port used for accounting.
- Address string
- IPv4 or IPv6 address of RADIUS server.
- Authentication
Port double - RADIUS server port used for authentication.
- Called
Id string - RADIUS calling station identifier.
- Certificate string
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- Comment string
- Disabled bool
- Domain string
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- Protocol string
- An option specifies the protocol to use when communicating with the RADIUS Server.
- Radius
Id string - The ID of this resource.
- Realm string
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- Require
Message stringAuth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - Secret string
- The shared secret to access the RADIUS server.
- Services List<string>
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - Src
Address string - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- Timeout string
- A timeout, after which the request should be resent.
- ___
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
Backup bool - An option whether the configuration is for the backup RADIUS server.
- Accounting
Port float64 - RADIUS server port used for accounting.
- Address string
- IPv4 or IPv6 address of RADIUS server.
- Authentication
Port float64 - RADIUS server port used for authentication.
- Called
Id string - RADIUS calling station identifier.
- Certificate string
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- Comment string
- Disabled bool
- Domain string
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- Protocol string
- An option specifies the protocol to use when communicating with the RADIUS Server.
- Radius
Id string - The ID of this resource.
- Realm string
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- Require
Message stringAuth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - Secret string
- The shared secret to access the RADIUS server.
- Services []string
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - Src
Address string - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- Timeout string
- A timeout, after which the request should be resent.
- ___
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
Backup Boolean - An option whether the configuration is for the backup RADIUS server.
- accounting
Port Double - RADIUS server port used for accounting.
- address String
- IPv4 or IPv6 address of RADIUS server.
- authentication
Port Double - RADIUS server port used for authentication.
- called
Id String - RADIUS calling station identifier.
- certificate String
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- comment String
- disabled Boolean
- domain String
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- protocol String
- An option specifies the protocol to use when communicating with the RADIUS Server.
- radius
Id String - The ID of this resource.
- realm String
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- require
Message StringAuth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - secret String
- The shared secret to access the RADIUS server.
- services List<String>
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - src
Address String - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- timeout String
- A timeout, after which the request should be resent.
- ___
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
Backup boolean - An option whether the configuration is for the backup RADIUS server.
- accounting
Port number - RADIUS server port used for accounting.
- address string
- IPv4 or IPv6 address of RADIUS server.
- authentication
Port number - RADIUS server port used for authentication.
- called
Id string - RADIUS calling station identifier.
- certificate string
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- comment string
- disabled boolean
- domain string
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- protocol string
- An option specifies the protocol to use when communicating with the RADIUS Server.
- radius
Id string - The ID of this resource.
- realm string
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- require
Message stringAuth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - secret string
- The shared secret to access the RADIUS server.
- services string[]
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - src
Address string - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- timeout string
- A timeout, after which the request should be resent.
- ___
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_
backup bool - An option whether the configuration is for the backup RADIUS server.
- accounting_
port float - RADIUS server port used for accounting.
- address str
- IPv4 or IPv6 address of RADIUS server.
- authentication_
port float - RADIUS server port used for authentication.
- called_
id str - RADIUS calling station identifier.
- certificate str
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- comment str
- disabled bool
- domain str
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- protocol str
- An option specifies the protocol to use when communicating with the RADIUS Server.
- radius_
id str - The ID of this resource.
- realm str
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- require_
message_ strauth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - secret str
- The shared secret to access the RADIUS server.
- services Sequence[str]
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - src_
address str - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- timeout str
- A timeout, after which the request should be resent.
- ___
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
Backup Boolean - An option whether the configuration is for the backup RADIUS server.
- accounting
Port Number - RADIUS server port used for accounting.
- address String
- IPv4 or IPv6 address of RADIUS server.
- authentication
Port Number - RADIUS server port used for authentication.
- called
Id String - RADIUS calling station identifier.
- certificate String
- Certificate to use for communication with RADIUS Server with RadSec enabled.
- comment String
- disabled Boolean
- domain String
- Microsoft Windows domain of client passed to RADIUS servers that require domain validation.
- protocol String
- An option specifies the protocol to use when communicating with the RADIUS Server.
- radius
Id String - The ID of this resource.
- realm String
- Explicitly stated realm (user domain), so the users do not have to provide proper ISP domain name in the user name.
- require
Message StringAuth - An option whether to require
Message-Authenticator
in received Access-Accept/Challenge/Reject messages. - secret String
- The shared secret to access the RADIUS server.
- services List<String>
- A set of router services that will use the RADIUS server. Possible values:
hotspot
,login
,ppp
,wireless
,dhcp
,ipsec
,dot1x
. - src
Address String - Source IPv4/IPv6 address of the packets sent to the RADIUS server.
- timeout String
- A timeout, after which the request should be resent.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/radius get [print show-ids]]
$ pulumi import routeros:index/radius:Radius user_manager *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.