unifi.RadiusProfile
Explore with Pulumi AI
unifi.RadiusProfile
manages RADIUS profiles.
Create RadiusProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RadiusProfile(name: string, args?: RadiusProfileArgs, opts?: CustomResourceOptions);
@overload
def RadiusProfile(resource_name: str,
args: Optional[RadiusProfileArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RadiusProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
accounting_enabled: Optional[bool] = None,
acct_servers: Optional[Sequence[RadiusProfileAcctServerArgs]] = None,
auth_servers: Optional[Sequence[RadiusProfileAuthServerArgs]] = None,
interim_update_enabled: Optional[bool] = None,
interim_update_interval: Optional[int] = None,
name: Optional[str] = None,
site: Optional[str] = None,
use_usg_acct_server: Optional[bool] = None,
use_usg_auth_server: Optional[bool] = None,
vlan_enabled: Optional[bool] = None,
vlan_wlan_mode: Optional[str] = None)
func NewRadiusProfile(ctx *Context, name string, args *RadiusProfileArgs, opts ...ResourceOption) (*RadiusProfile, error)
public RadiusProfile(string name, RadiusProfileArgs? args = null, CustomResourceOptions? opts = null)
public RadiusProfile(String name, RadiusProfileArgs args)
public RadiusProfile(String name, RadiusProfileArgs args, CustomResourceOptions options)
type: unifi:RadiusProfile
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 RadiusProfileArgs
- 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 RadiusProfileArgs
- 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 RadiusProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RadiusProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RadiusProfileArgs
- 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 radiusProfileResource = new Unifi.RadiusProfile("radiusProfileResource", new()
{
AccountingEnabled = false,
AcctServers = new[]
{
new Unifi.Inputs.RadiusProfileAcctServerArgs
{
Ip = "string",
Xsecret = "string",
Port = 0,
},
},
AuthServers = new[]
{
new Unifi.Inputs.RadiusProfileAuthServerArgs
{
Ip = "string",
Xsecret = "string",
Port = 0,
},
},
InterimUpdateEnabled = false,
InterimUpdateInterval = 0,
Name = "string",
Site = "string",
UseUsgAcctServer = false,
UseUsgAuthServer = false,
VlanEnabled = false,
VlanWlanMode = "string",
});
example, err := unifi.NewRadiusProfile(ctx, "radiusProfileResource", &unifi.RadiusProfileArgs{
AccountingEnabled: pulumi.Bool(false),
AcctServers: unifi.RadiusProfileAcctServerArray{
&unifi.RadiusProfileAcctServerArgs{
Ip: pulumi.String("string"),
Xsecret: pulumi.String("string"),
Port: pulumi.Int(0),
},
},
AuthServers: unifi.RadiusProfileAuthServerArray{
&unifi.RadiusProfileAuthServerArgs{
Ip: pulumi.String("string"),
Xsecret: pulumi.String("string"),
Port: pulumi.Int(0),
},
},
InterimUpdateEnabled: pulumi.Bool(false),
InterimUpdateInterval: pulumi.Int(0),
Name: pulumi.String("string"),
Site: pulumi.String("string"),
UseUsgAcctServer: pulumi.Bool(false),
UseUsgAuthServer: pulumi.Bool(false),
VlanEnabled: pulumi.Bool(false),
VlanWlanMode: pulumi.String("string"),
})
var radiusProfileResource = new RadiusProfile("radiusProfileResource", RadiusProfileArgs.builder()
.accountingEnabled(false)
.acctServers(RadiusProfileAcctServerArgs.builder()
.ip("string")
.xsecret("string")
.port(0)
.build())
.authServers(RadiusProfileAuthServerArgs.builder()
.ip("string")
.xsecret("string")
.port(0)
.build())
.interimUpdateEnabled(false)
.interimUpdateInterval(0)
.name("string")
.site("string")
.useUsgAcctServer(false)
.useUsgAuthServer(false)
.vlanEnabled(false)
.vlanWlanMode("string")
.build());
radius_profile_resource = unifi.RadiusProfile("radiusProfileResource",
accounting_enabled=False,
acct_servers=[{
"ip": "string",
"xsecret": "string",
"port": 0,
}],
auth_servers=[{
"ip": "string",
"xsecret": "string",
"port": 0,
}],
interim_update_enabled=False,
interim_update_interval=0,
name="string",
site="string",
use_usg_acct_server=False,
use_usg_auth_server=False,
vlan_enabled=False,
vlan_wlan_mode="string")
const radiusProfileResource = new unifi.RadiusProfile("radiusProfileResource", {
accountingEnabled: false,
acctServers: [{
ip: "string",
xsecret: "string",
port: 0,
}],
authServers: [{
ip: "string",
xsecret: "string",
port: 0,
}],
interimUpdateEnabled: false,
interimUpdateInterval: 0,
name: "string",
site: "string",
useUsgAcctServer: false,
useUsgAuthServer: false,
vlanEnabled: false,
vlanWlanMode: "string",
});
type: unifi:RadiusProfile
properties:
accountingEnabled: false
acctServers:
- ip: string
port: 0
xsecret: string
authServers:
- ip: string
port: 0
xsecret: string
interimUpdateEnabled: false
interimUpdateInterval: 0
name: string
site: string
useUsgAcctServer: false
useUsgAuthServer: false
vlanEnabled: false
vlanWlanMode: string
RadiusProfile 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 RadiusProfile resource accepts the following input properties:
- Accounting
Enabled bool - Specifies whether to use RADIUS accounting. Defaults to
false
. - Acct
Servers List<Pulumiverse.Unifi. Inputs. Radius Profile Acct Server> - RADIUS accounting servers.
- Auth
Servers List<Pulumiverse.Unifi. Inputs. Radius Profile Auth Server> - RADIUS authentication servers.
- Interim
Update boolEnabled - Specifies whether to use interim_update. Defaults to
false
. - Interim
Update intInterval - Specifies interim_update interval. Defaults to
3600
. - Name string
- The name of the profile.
- Site string
- The name of the site to associate the settings with.
- Use
Usg boolAcct Server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - Use
Usg boolAuth Server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - Vlan
Enabled bool - Specifies whether to use vlan on wired connections. Defaults to
false
. - Vlan
Wlan stringMode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
- Accounting
Enabled bool - Specifies whether to use RADIUS accounting. Defaults to
false
. - Acct
Servers []RadiusProfile Acct Server Args - RADIUS accounting servers.
- Auth
Servers []RadiusProfile Auth Server Args - RADIUS authentication servers.
- Interim
Update boolEnabled - Specifies whether to use interim_update. Defaults to
false
. - Interim
Update intInterval - Specifies interim_update interval. Defaults to
3600
. - Name string
- The name of the profile.
- Site string
- The name of the site to associate the settings with.
- Use
Usg boolAcct Server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - Use
Usg boolAuth Server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - Vlan
Enabled bool - Specifies whether to use vlan on wired connections. Defaults to
false
. - Vlan
Wlan stringMode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
- accounting
Enabled Boolean - Specifies whether to use RADIUS accounting. Defaults to
false
. - acct
Servers List<RadiusProfile Acct Server> - RADIUS accounting servers.
- auth
Servers List<RadiusProfile Auth Server> - RADIUS authentication servers.
- interim
Update BooleanEnabled - Specifies whether to use interim_update. Defaults to
false
. - interim
Update IntegerInterval - Specifies interim_update interval. Defaults to
3600
. - name String
- The name of the profile.
- site String
- The name of the site to associate the settings with.
- use
Usg BooleanAcct Server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - use
Usg BooleanAuth Server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - vlan
Enabled Boolean - Specifies whether to use vlan on wired connections. Defaults to
false
. - vlan
Wlan StringMode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
- accounting
Enabled boolean - Specifies whether to use RADIUS accounting. Defaults to
false
. - acct
Servers RadiusProfile Acct Server[] - RADIUS accounting servers.
- auth
Servers RadiusProfile Auth Server[] - RADIUS authentication servers.
- interim
Update booleanEnabled - Specifies whether to use interim_update. Defaults to
false
. - interim
Update numberInterval - Specifies interim_update interval. Defaults to
3600
. - name string
- The name of the profile.
- site string
- The name of the site to associate the settings with.
- use
Usg booleanAcct Server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - use
Usg booleanAuth Server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - vlan
Enabled boolean - Specifies whether to use vlan on wired connections. Defaults to
false
. - vlan
Wlan stringMode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
- accounting_
enabled bool - Specifies whether to use RADIUS accounting. Defaults to
false
. - acct_
servers Sequence[RadiusProfile Acct Server Args] - RADIUS accounting servers.
- auth_
servers Sequence[RadiusProfile Auth Server Args] - RADIUS authentication servers.
- interim_
update_ boolenabled - Specifies whether to use interim_update. Defaults to
false
. - interim_
update_ intinterval - Specifies interim_update interval. Defaults to
3600
. - name str
- The name of the profile.
- site str
- The name of the site to associate the settings with.
- use_
usg_ boolacct_ server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - use_
usg_ boolauth_ server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - vlan_
enabled bool - Specifies whether to use vlan on wired connections. Defaults to
false
. - vlan_
wlan_ strmode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
- accounting
Enabled Boolean - Specifies whether to use RADIUS accounting. Defaults to
false
. - acct
Servers List<Property Map> - RADIUS accounting servers.
- auth
Servers List<Property Map> - RADIUS authentication servers.
- interim
Update BooleanEnabled - Specifies whether to use interim_update. Defaults to
false
. - interim
Update NumberInterval - Specifies interim_update interval. Defaults to
3600
. - name String
- The name of the profile.
- site String
- The name of the site to associate the settings with.
- use
Usg BooleanAcct Server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - use
Usg BooleanAuth Server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - vlan
Enabled Boolean - Specifies whether to use vlan on wired connections. Defaults to
false
. - vlan
Wlan StringMode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
Outputs
All input properties are implicitly available as output properties. Additionally, the RadiusProfile 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 RadiusProfile Resource
Get an existing RadiusProfile 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?: RadiusProfileState, opts?: CustomResourceOptions): RadiusProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accounting_enabled: Optional[bool] = None,
acct_servers: Optional[Sequence[RadiusProfileAcctServerArgs]] = None,
auth_servers: Optional[Sequence[RadiusProfileAuthServerArgs]] = None,
interim_update_enabled: Optional[bool] = None,
interim_update_interval: Optional[int] = None,
name: Optional[str] = None,
site: Optional[str] = None,
use_usg_acct_server: Optional[bool] = None,
use_usg_auth_server: Optional[bool] = None,
vlan_enabled: Optional[bool] = None,
vlan_wlan_mode: Optional[str] = None) -> RadiusProfile
func GetRadiusProfile(ctx *Context, name string, id IDInput, state *RadiusProfileState, opts ...ResourceOption) (*RadiusProfile, error)
public static RadiusProfile Get(string name, Input<string> id, RadiusProfileState? state, CustomResourceOptions? opts = null)
public static RadiusProfile get(String name, Output<String> id, RadiusProfileState 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.
- Accounting
Enabled bool - Specifies whether to use RADIUS accounting. Defaults to
false
. - Acct
Servers List<Pulumiverse.Unifi. Inputs. Radius Profile Acct Server> - RADIUS accounting servers.
- Auth
Servers List<Pulumiverse.Unifi. Inputs. Radius Profile Auth Server> - RADIUS authentication servers.
- Interim
Update boolEnabled - Specifies whether to use interim_update. Defaults to
false
. - Interim
Update intInterval - Specifies interim_update interval. Defaults to
3600
. - Name string
- The name of the profile.
- Site string
- The name of the site to associate the settings with.
- Use
Usg boolAcct Server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - Use
Usg boolAuth Server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - Vlan
Enabled bool - Specifies whether to use vlan on wired connections. Defaults to
false
. - Vlan
Wlan stringMode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
- Accounting
Enabled bool - Specifies whether to use RADIUS accounting. Defaults to
false
. - Acct
Servers []RadiusProfile Acct Server Args - RADIUS accounting servers.
- Auth
Servers []RadiusProfile Auth Server Args - RADIUS authentication servers.
- Interim
Update boolEnabled - Specifies whether to use interim_update. Defaults to
false
. - Interim
Update intInterval - Specifies interim_update interval. Defaults to
3600
. - Name string
- The name of the profile.
- Site string
- The name of the site to associate the settings with.
- Use
Usg boolAcct Server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - Use
Usg boolAuth Server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - Vlan
Enabled bool - Specifies whether to use vlan on wired connections. Defaults to
false
. - Vlan
Wlan stringMode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
- accounting
Enabled Boolean - Specifies whether to use RADIUS accounting. Defaults to
false
. - acct
Servers List<RadiusProfile Acct Server> - RADIUS accounting servers.
- auth
Servers List<RadiusProfile Auth Server> - RADIUS authentication servers.
- interim
Update BooleanEnabled - Specifies whether to use interim_update. Defaults to
false
. - interim
Update IntegerInterval - Specifies interim_update interval. Defaults to
3600
. - name String
- The name of the profile.
- site String
- The name of the site to associate the settings with.
- use
Usg BooleanAcct Server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - use
Usg BooleanAuth Server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - vlan
Enabled Boolean - Specifies whether to use vlan on wired connections. Defaults to
false
. - vlan
Wlan StringMode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
- accounting
Enabled boolean - Specifies whether to use RADIUS accounting. Defaults to
false
. - acct
Servers RadiusProfile Acct Server[] - RADIUS accounting servers.
- auth
Servers RadiusProfile Auth Server[] - RADIUS authentication servers.
- interim
Update booleanEnabled - Specifies whether to use interim_update. Defaults to
false
. - interim
Update numberInterval - Specifies interim_update interval. Defaults to
3600
. - name string
- The name of the profile.
- site string
- The name of the site to associate the settings with.
- use
Usg booleanAcct Server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - use
Usg booleanAuth Server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - vlan
Enabled boolean - Specifies whether to use vlan on wired connections. Defaults to
false
. - vlan
Wlan stringMode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
- accounting_
enabled bool - Specifies whether to use RADIUS accounting. Defaults to
false
. - acct_
servers Sequence[RadiusProfile Acct Server Args] - RADIUS accounting servers.
- auth_
servers Sequence[RadiusProfile Auth Server Args] - RADIUS authentication servers.
- interim_
update_ boolenabled - Specifies whether to use interim_update. Defaults to
false
. - interim_
update_ intinterval - Specifies interim_update interval. Defaults to
3600
. - name str
- The name of the profile.
- site str
- The name of the site to associate the settings with.
- use_
usg_ boolacct_ server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - use_
usg_ boolauth_ server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - vlan_
enabled bool - Specifies whether to use vlan on wired connections. Defaults to
false
. - vlan_
wlan_ strmode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
- accounting
Enabled Boolean - Specifies whether to use RADIUS accounting. Defaults to
false
. - acct
Servers List<Property Map> - RADIUS accounting servers.
- auth
Servers List<Property Map> - RADIUS authentication servers.
- interim
Update BooleanEnabled - Specifies whether to use interim_update. Defaults to
false
. - interim
Update NumberInterval - Specifies interim_update interval. Defaults to
3600
. - name String
- The name of the profile.
- site String
- The name of the site to associate the settings with.
- use
Usg BooleanAcct Server - Specifies whether to use usg as a RADIUS accounting server. Defaults to
false
. - use
Usg BooleanAuth Server - Specifies whether to use usg as a RADIUS authentication server. Defaults to
false
. - vlan
Enabled Boolean - Specifies whether to use vlan on wired connections. Defaults to
false
. - vlan
Wlan StringMode - Specifies whether to use vlan on wireless connections. Must be one of
disabled
,optional
, orrequired
. Defaults to ``.
Supporting Types
RadiusProfileAcctServer, RadiusProfileAcctServerArgs
RadiusProfileAuthServer, RadiusProfileAuthServerArgs
Package Details
- Repository
- unifi pulumiverse/pulumi-unifi
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
unifi
Terraform Provider.