iosxe.Radius
Explore with Pulumi AI
This resource can manage the Radius configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Lbrlabs.PulumiPackage.Iosxe;
return await Deployment.RunAsync(() => 
{
    var example = new Iosxe.Radius("example", new()
    {
        AccountingPort = 1812,
        AuthenticationPort = 1813,
        AutomateTesterIgnoreAcctPort = true,
        AutomateTesterProbeOnConfig = true,
        AutomateTesterUsername = "dummy",
        Ipv4Address = "10.10.15.12",
        Key = "123",
        PacKey = "123",
        PacKeyEncryption = "0",
        Retransmit = 3,
        Timeout = 4,
    });
});
package main
import (
	"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iosxe.NewRadius(ctx, "example", &iosxe.RadiusArgs{
			AccountingPort:               pulumi.Int(1812),
			AuthenticationPort:           pulumi.Int(1813),
			AutomateTesterIgnoreAcctPort: pulumi.Bool(true),
			AutomateTesterProbeOnConfig:  pulumi.Bool(true),
			AutomateTesterUsername:       pulumi.String("dummy"),
			Ipv4Address:                  pulumi.String("10.10.15.12"),
			Key:                          pulumi.String("123"),
			PacKey:                       pulumi.String("123"),
			PacKeyEncryption:             pulumi.String("0"),
			Retransmit:                   pulumi.Int(3),
			Timeout:                      pulumi.Int(4),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.Radius;
import com.pulumi.iosxe.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 example = new Radius("example", RadiusArgs.builder()        
            .accountingPort(1812)
            .authenticationPort(1813)
            .automateTesterIgnoreAcctPort(true)
            .automateTesterProbeOnConfig(true)
            .automateTesterUsername("dummy")
            .ipv4Address("10.10.15.12")
            .key("123")
            .pacKey("123")
            .pacKeyEncryption("0")
            .retransmit(3)
            .timeout(4)
            .build());
    }
}
import pulumi
import lbrlabs_pulumi_iosxe as iosxe
example = iosxe.Radius("example",
    accounting_port=1812,
    authentication_port=1813,
    automate_tester_ignore_acct_port=True,
    automate_tester_probe_on_config=True,
    automate_tester_username="dummy",
    ipv4_address="10.10.15.12",
    key="123",
    pac_key="123",
    pac_key_encryption="0",
    retransmit=3,
    timeout=4)
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@lbrlabs/pulumi-iosxe";
const example = new iosxe.Radius("example", {
    accountingPort: 1812,
    authenticationPort: 1813,
    automateTesterIgnoreAcctPort: true,
    automateTesterProbeOnConfig: true,
    automateTesterUsername: "dummy",
    ipv4Address: "10.10.15.12",
    key: "123",
    pacKey: "123",
    pacKeyEncryption: "0",
    retransmit: 3,
    timeout: 4,
});
resources:
  example:
    type: iosxe:Radius
    properties:
      accountingPort: 1812
      authenticationPort: 1813
      automateTesterIgnoreAcctPort: true
      automateTesterProbeOnConfig: true
      automateTesterUsername: dummy
      ipv4Address: 10.10.15.12
      key: '123'
      pacKey: '123'
      pacKeyEncryption: '0'
      retransmit: 3
      timeout: 4
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: Optional[RadiusArgs] = None,
           opts: Optional[ResourceOptions] = None)
@overload
def Radius(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           accounting_port: Optional[int] = None,
           authentication_port: Optional[int] = None,
           automate_tester_ignore_acct_port: Optional[bool] = None,
           automate_tester_probe_on_config: Optional[bool] = None,
           automate_tester_username: Optional[str] = None,
           device: Optional[str] = None,
           ipv4_address: Optional[str] = None,
           key: Optional[str] = None,
           name: Optional[str] = None,
           pac_key: Optional[str] = None,
           pac_key_encryption: Optional[str] = None,
           retransmit: Optional[int] = None,
           timeout: Optional[int] = None)func NewRadius(ctx *Context, name string, args *RadiusArgs, opts ...ResourceOption) (*Radius, error)public Radius(string name, RadiusArgs? args = null, CustomResourceOptions? opts = null)
public Radius(String name, RadiusArgs args)
public Radius(String name, RadiusArgs args, CustomResourceOptions options)
type: iosxe: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.
Constructor example
The following reference example uses placeholder values for all input properties.
var radiusResource = new Iosxe.Radius("radiusResource", new()
{
    AccountingPort = 0,
    AuthenticationPort = 0,
    AutomateTesterIgnoreAcctPort = false,
    AutomateTesterProbeOnConfig = false,
    AutomateTesterUsername = "string",
    Device = "string",
    Ipv4Address = "string",
    Key = "string",
    Name = "string",
    PacKey = "string",
    PacKeyEncryption = "string",
    Retransmit = 0,
    Timeout = 0,
});
example, err := iosxe.NewRadius(ctx, "radiusResource", &iosxe.RadiusArgs{
	AccountingPort:               pulumi.Int(0),
	AuthenticationPort:           pulumi.Int(0),
	AutomateTesterIgnoreAcctPort: pulumi.Bool(false),
	AutomateTesterProbeOnConfig:  pulumi.Bool(false),
	AutomateTesterUsername:       pulumi.String("string"),
	Device:                       pulumi.String("string"),
	Ipv4Address:                  pulumi.String("string"),
	Key:                          pulumi.String("string"),
	Name:                         pulumi.String("string"),
	PacKey:                       pulumi.String("string"),
	PacKeyEncryption:             pulumi.String("string"),
	Retransmit:                   pulumi.Int(0),
	Timeout:                      pulumi.Int(0),
})
var radiusResource = new Radius("radiusResource", RadiusArgs.builder()
    .accountingPort(0)
    .authenticationPort(0)
    .automateTesterIgnoreAcctPort(false)
    .automateTesterProbeOnConfig(false)
    .automateTesterUsername("string")
    .device("string")
    .ipv4Address("string")
    .key("string")
    .name("string")
    .pacKey("string")
    .pacKeyEncryption("string")
    .retransmit(0)
    .timeout(0)
    .build());
radius_resource = iosxe.Radius("radiusResource",
    accounting_port=0,
    authentication_port=0,
    automate_tester_ignore_acct_port=False,
    automate_tester_probe_on_config=False,
    automate_tester_username="string",
    device="string",
    ipv4_address="string",
    key="string",
    name="string",
    pac_key="string",
    pac_key_encryption="string",
    retransmit=0,
    timeout=0)
const radiusResource = new iosxe.Radius("radiusResource", {
    accountingPort: 0,
    authenticationPort: 0,
    automateTesterIgnoreAcctPort: false,
    automateTesterProbeOnConfig: false,
    automateTesterUsername: "string",
    device: "string",
    ipv4Address: "string",
    key: "string",
    name: "string",
    pacKey: "string",
    pacKeyEncryption: "string",
    retransmit: 0,
    timeout: 0,
});
type: iosxe:Radius
properties:
    accountingPort: 0
    authenticationPort: 0
    automateTesterIgnoreAcctPort: false
    automateTesterProbeOnConfig: false
    automateTesterUsername: string
    device: string
    ipv4Address: string
    key: string
    name: string
    pacKey: string
    pacKeyEncryption: string
    retransmit: 0
    timeout: 0
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:
- AccountingPort int
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- AuthenticationPort int
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- AutomateTester boolIgnore Acct Port 
- Do not test accounting ports of the servers.
- AutomateTester boolProbe On Config 
- Send a packet to verify the server status
- AutomateTester stringUsername 
- Device string
- A device name from the provider configuration.
- Ipv4Address string
- IPv4 address or Hostname for radius server
- Key string
- Name string
- Name for the radius server configuration
- PacKey string
- The UNENCRYPTED (cleartext) server key
- PacKey stringEncryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- Retransmit int
- Number of retries to active server (overrides default) - Range: 0-100
- Timeout int
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
- AccountingPort int
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- AuthenticationPort int
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- AutomateTester boolIgnore Acct Port 
- Do not test accounting ports of the servers.
- AutomateTester boolProbe On Config 
- Send a packet to verify the server status
- AutomateTester stringUsername 
- Device string
- A device name from the provider configuration.
- Ipv4Address string
- IPv4 address or Hostname for radius server
- Key string
- Name string
- Name for the radius server configuration
- PacKey string
- The UNENCRYPTED (cleartext) server key
- PacKey stringEncryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- Retransmit int
- Number of retries to active server (overrides default) - Range: 0-100
- Timeout int
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
- accountingPort Integer
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- authenticationPort Integer
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- automateTester BooleanIgnore Acct Port 
- Do not test accounting ports of the servers.
- automateTester BooleanProbe On Config 
- Send a packet to verify the server status
- automateTester StringUsername 
- device String
- A device name from the provider configuration.
- ipv4Address String
- IPv4 address or Hostname for radius server
- key String
- name String
- Name for the radius server configuration
- pacKey String
- The UNENCRYPTED (cleartext) server key
- pacKey StringEncryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- retransmit Integer
- Number of retries to active server (overrides default) - Range: 0-100
- timeout Integer
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
- accountingPort number
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- authenticationPort number
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- automateTester booleanIgnore Acct Port 
- Do not test accounting ports of the servers.
- automateTester booleanProbe On Config 
- Send a packet to verify the server status
- automateTester stringUsername 
- device string
- A device name from the provider configuration.
- ipv4Address string
- IPv4 address or Hostname for radius server
- key string
- name string
- Name for the radius server configuration
- pacKey string
- The UNENCRYPTED (cleartext) server key
- pacKey stringEncryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- retransmit number
- Number of retries to active server (overrides default) - Range: 0-100
- timeout number
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
- accounting_port int
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- authentication_port int
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- automate_tester_ boolignore_ acct_ port 
- Do not test accounting ports of the servers.
- automate_tester_ boolprobe_ on_ config 
- Send a packet to verify the server status
- automate_tester_ strusername 
- device str
- A device name from the provider configuration.
- ipv4_address str
- IPv4 address or Hostname for radius server
- key str
- name str
- Name for the radius server configuration
- pac_key str
- The UNENCRYPTED (cleartext) server key
- pac_key_ strencryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- retransmit int
- Number of retries to active server (overrides default) - Range: 0-100
- timeout int
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
- accountingPort Number
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- authenticationPort Number
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- automateTester BooleanIgnore Acct Port 
- Do not test accounting ports of the servers.
- automateTester BooleanProbe On Config 
- Send a packet to verify the server status
- automateTester StringUsername 
- device String
- A device name from the provider configuration.
- ipv4Address String
- IPv4 address or Hostname for radius server
- key String
- name String
- Name for the radius server configuration
- pacKey String
- The UNENCRYPTED (cleartext) server key
- pacKey StringEncryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- retransmit Number
- Number of retries to active server (overrides default) - Range: 0-100
- timeout Number
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
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,
        accounting_port: Optional[int] = None,
        authentication_port: Optional[int] = None,
        automate_tester_ignore_acct_port: Optional[bool] = None,
        automate_tester_probe_on_config: Optional[bool] = None,
        automate_tester_username: Optional[str] = None,
        device: Optional[str] = None,
        ipv4_address: Optional[str] = None,
        key: Optional[str] = None,
        name: Optional[str] = None,
        pac_key: Optional[str] = None,
        pac_key_encryption: Optional[str] = None,
        retransmit: Optional[int] = None,
        timeout: Optional[int] = None) -> Radiusfunc 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)Resource lookup is not supported in YAML- 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.
- AccountingPort int
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- AuthenticationPort int
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- AutomateTester boolIgnore Acct Port 
- Do not test accounting ports of the servers.
- AutomateTester boolProbe On Config 
- Send a packet to verify the server status
- AutomateTester stringUsername 
- Device string
- A device name from the provider configuration.
- Ipv4Address string
- IPv4 address or Hostname for radius server
- Key string
- Name string
- Name for the radius server configuration
- PacKey string
- The UNENCRYPTED (cleartext) server key
- PacKey stringEncryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- Retransmit int
- Number of retries to active server (overrides default) - Range: 0-100
- Timeout int
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
- AccountingPort int
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- AuthenticationPort int
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- AutomateTester boolIgnore Acct Port 
- Do not test accounting ports of the servers.
- AutomateTester boolProbe On Config 
- Send a packet to verify the server status
- AutomateTester stringUsername 
- Device string
- A device name from the provider configuration.
- Ipv4Address string
- IPv4 address or Hostname for radius server
- Key string
- Name string
- Name for the radius server configuration
- PacKey string
- The UNENCRYPTED (cleartext) server key
- PacKey stringEncryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- Retransmit int
- Number of retries to active server (overrides default) - Range: 0-100
- Timeout int
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
- accountingPort Integer
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- authenticationPort Integer
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- automateTester BooleanIgnore Acct Port 
- Do not test accounting ports of the servers.
- automateTester BooleanProbe On Config 
- Send a packet to verify the server status
- automateTester StringUsername 
- device String
- A device name from the provider configuration.
- ipv4Address String
- IPv4 address or Hostname for radius server
- key String
- name String
- Name for the radius server configuration
- pacKey String
- The UNENCRYPTED (cleartext) server key
- pacKey StringEncryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- retransmit Integer
- Number of retries to active server (overrides default) - Range: 0-100
- timeout Integer
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
- accountingPort number
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- authenticationPort number
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- automateTester booleanIgnore Acct Port 
- Do not test accounting ports of the servers.
- automateTester booleanProbe On Config 
- Send a packet to verify the server status
- automateTester stringUsername 
- device string
- A device name from the provider configuration.
- ipv4Address string
- IPv4 address or Hostname for radius server
- key string
- name string
- Name for the radius server configuration
- pacKey string
- The UNENCRYPTED (cleartext) server key
- pacKey stringEncryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- retransmit number
- Number of retries to active server (overrides default) - Range: 0-100
- timeout number
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
- accounting_port int
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- authentication_port int
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- automate_tester_ boolignore_ acct_ port 
- Do not test accounting ports of the servers.
- automate_tester_ boolprobe_ on_ config 
- Send a packet to verify the server status
- automate_tester_ strusername 
- device str
- A device name from the provider configuration.
- ipv4_address str
- IPv4 address or Hostname for radius server
- key str
- name str
- Name for the radius server configuration
- pac_key str
- The UNENCRYPTED (cleartext) server key
- pac_key_ strencryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- retransmit int
- Number of retries to active server (overrides default) - Range: 0-100
- timeout int
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
- accountingPort Number
- UDP port for RADIUS accounting server (default is 1813) - Range: 0-65534
- authenticationPort Number
- UDP port for RADIUS authentication server (default is 1812) - Range: 0-65534
- automateTester BooleanIgnore Acct Port 
- Do not test accounting ports of the servers.
- automateTester BooleanProbe On Config 
- Send a packet to verify the server status
- automateTester StringUsername 
- device String
- A device name from the provider configuration.
- ipv4Address String
- IPv4 address or Hostname for radius server
- key String
- name String
- Name for the radius server configuration
- pacKey String
- The UNENCRYPTED (cleartext) server key
- pacKey StringEncryption 
- 0 - Specifies an UNENCRYPTED key will follow 6 - Specifies an ENCRYPTED key will follow 7 - Specifies HIDDEN key will
follow - Choices: 0,6,7
- retransmit Number
- Number of retries to active server (overrides default) - Range: 0-100
- timeout Number
- Time to wait for a RADIUS server to reply (overrides default) - Range: 1-1000
Import
 $ pulumi import iosxe:index/radius:Radius example "Cisco-IOS-XE-native:native/radius/Cisco-IOS-XE-aaa:server=radius_10.10.15.12"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the iosxeTerraform Provider.