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

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",
    ],
});
Copy
import pulumi
import pulumi_routeros as routeros

user_manager = routeros.Radius("userManager",
    address="127.0.0.1",
    services=[
        "ppp",
        "login",
    ])
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.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
	})
}
Copy
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",
        },
    });

});
Copy
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());

    }
}
Copy
resources:
  userManager:
    type: routeros:Radius
    properties:
      address: 127.0.0.1
      services:
        - ppp
        - login
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. RadiusArgs
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. 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 This property is required. string
The unique name of the resource.
args This property is required. RadiusArgs
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. RadiusArgs
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. 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 This property is required. string
IPv4 or IPv6 address of RADIUS server.
AccountingBackup bool
An option whether the configuration is for the backup RADIUS server.
AccountingPort double
RADIUS server port used for accounting.
AuthenticationPort double
RADIUS server port used for authentication.
CalledId 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.
RadiusId 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.
RequireMessageAuth string
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.
SrcAddress 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 This property is required. string
IPv4 or IPv6 address of RADIUS server.
AccountingBackup bool
An option whether the configuration is for the backup RADIUS server.
AccountingPort float64
RADIUS server port used for accounting.
AuthenticationPort float64
RADIUS server port used for authentication.
CalledId 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.
RadiusId 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.
RequireMessageAuth string
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.
SrcAddress 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 This property is required. 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.
accountingBackup Boolean
An option whether the configuration is for the backup RADIUS server.
accountingPort Double
RADIUS server port used for accounting.
authenticationPort Double
RADIUS server port used for authentication.
calledId 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.
radiusId 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.
requireMessageAuth String
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.
srcAddress 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 This property is required. 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.
accountingBackup boolean
An option whether the configuration is for the backup RADIUS server.
accountingPort number
RADIUS server port used for accounting.
authenticationPort number
RADIUS server port used for authentication.
calledId 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.
radiusId 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.
requireMessageAuth string
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.
srcAddress 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 This property is required. 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_auth str
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 This property is required. 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.
accountingBackup Boolean
An option whether the configuration is for the backup RADIUS server.
accountingPort Number
RADIUS server port used for accounting.
authenticationPort Number
RADIUS server port used for authentication.
calledId 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.
radiusId 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.
requireMessageAuth String
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.
srcAddress 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 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:
AccountingBackup bool
An option whether the configuration is for the backup RADIUS server.
AccountingPort double
RADIUS server port used for accounting.
Address string
IPv4 or IPv6 address of RADIUS server.
AuthenticationPort double
RADIUS server port used for authentication.
CalledId 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.
RadiusId 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.
RequireMessageAuth string
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.
SrcAddress 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.
AccountingBackup bool
An option whether the configuration is for the backup RADIUS server.
AccountingPort float64
RADIUS server port used for accounting.
Address string
IPv4 or IPv6 address of RADIUS server.
AuthenticationPort float64
RADIUS server port used for authentication.
CalledId 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.
RadiusId 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.
RequireMessageAuth string
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.
SrcAddress 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.
accountingBackup Boolean
An option whether the configuration is for the backup RADIUS server.
accountingPort Double
RADIUS server port used for accounting.
address String
IPv4 or IPv6 address of RADIUS server.
authenticationPort Double
RADIUS server port used for authentication.
calledId 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.
radiusId 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.
requireMessageAuth String
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.
srcAddress 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.
accountingBackup boolean
An option whether the configuration is for the backup RADIUS server.
accountingPort number
RADIUS server port used for accounting.
address string
IPv4 or IPv6 address of RADIUS server.
authenticationPort number
RADIUS server port used for authentication.
calledId 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.
radiusId 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.
requireMessageAuth string
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.
srcAddress 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_auth str
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.
accountingBackup Boolean
An option whether the configuration is for the backup RADIUS server.
accountingPort Number
RADIUS server port used for accounting.
address String
IPv4 or IPv6 address of RADIUS server.
authenticationPort Number
RADIUS server port used for authentication.
calledId 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.
radiusId 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.
requireMessageAuth String
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.
srcAddress 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
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.