fortios.switchcontroller/securitypolicy.Policy8021X
Explore with Pulumi AI
Configure 802.1x MAC Authentication Bypass (MAB) policies.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.switchcontroller.securitypolicy.Policy8021X("trname", {
authFailVlan: "disable",
authFailVlanid: 0,
eapPassthru: "disable",
framevidApply: "enable",
guestAuthDelay: 30,
guestVlan: "disable",
guestVlanid: 100,
macAuthBypass: "disable",
openAuth: "disable",
policyType: "802.1X",
radiusTimeoutOverwrite: "disable",
securityMode: "802.1X",
userGroups: [{
name: "Guest-group",
}],
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.switchcontroller.securitypolicy.Policy8021X("trname",
auth_fail_vlan="disable",
auth_fail_vlanid=0,
eap_passthru="disable",
framevid_apply="enable",
guest_auth_delay=30,
guest_vlan="disable",
guest_vlanid=100,
mac_auth_bypass="disable",
open_auth="disable",
policy_type="802.1X",
radius_timeout_overwrite="disable",
security_mode="802.1X",
user_groups=[fortios.switchcontroller.securitypolicy.Policy8021XUserGroupArgs(
name="Guest-group",
)])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/switchcontroller"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := switchcontroller.NewPolicy8021X(ctx, "trname", &switchcontroller.Policy8021XArgs{
AuthFailVlan: pulumi.String("disable"),
AuthFailVlanid: pulumi.Int(0),
EapPassthru: pulumi.String("disable"),
FramevidApply: pulumi.String("enable"),
GuestAuthDelay: pulumi.Int(30),
GuestVlan: pulumi.String("disable"),
GuestVlanid: pulumi.Int(100),
MacAuthBypass: pulumi.String("disable"),
OpenAuth: pulumi.String("disable"),
PolicyType: pulumi.String("802.1X"),
RadiusTimeoutOverwrite: pulumi.String("disable"),
SecurityMode: pulumi.String("802.1X"),
UserGroups: securitypolicy.Policy8021XUserGroupArray{
&securitypolicy.Policy8021XUserGroupArgs{
Name: pulumi.String("Guest-group"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var trname = new Fortios.Switchcontroller.Securitypolicy.Policy8021X("trname", new()
{
AuthFailVlan = "disable",
AuthFailVlanid = 0,
EapPassthru = "disable",
FramevidApply = "enable",
GuestAuthDelay = 30,
GuestVlan = "disable",
GuestVlanid = 100,
MacAuthBypass = "disable",
OpenAuth = "disable",
PolicyType = "802.1X",
RadiusTimeoutOverwrite = "disable",
SecurityMode = "802.1X",
UserGroups = new[]
{
new Fortios.Switchcontroller.Securitypolicy.Inputs.Policy8021XUserGroupArgs
{
Name = "Guest-group",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.switchcontroller.Policy8021X;
import com.pulumi.fortios.switchcontroller.Policy8021XArgs;
import com.pulumi.fortios.switchcontroller.inputs.Policy8021XUserGroupArgs;
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 trname = new Policy8021X("trname", Policy8021XArgs.builder()
.authFailVlan("disable")
.authFailVlanid(0)
.eapPassthru("disable")
.framevidApply("enable")
.guestAuthDelay(30)
.guestVlan("disable")
.guestVlanid(100)
.macAuthBypass("disable")
.openAuth("disable")
.policyType("802.1X")
.radiusTimeoutOverwrite("disable")
.securityMode("802.1X")
.userGroups(Policy8021XUserGroupArgs.builder()
.name("Guest-group")
.build())
.build());
}
}
resources:
trname:
type: fortios:switchcontroller/securitypolicy:Policy8021X
properties:
authFailVlan: disable
authFailVlanid: 0
eapPassthru: disable
framevidApply: enable
guestAuthDelay: 30
guestVlan: disable
guestVlanid: 100
macAuthBypass: disable
openAuth: disable
policyType: 802.1X
radiusTimeoutOverwrite: disable
securityMode: 802.1X
userGroups:
- name: Guest-group
Create Policy8021X Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Policy8021X(name: string, args?: Policy8021XArgs, opts?: CustomResourceOptions);
@overload
def Policy8021X(resource_name: str,
args: Optional[Policy8021XArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Policy8021X(resource_name: str,
opts: Optional[ResourceOptions] = None,
auth_fail_vlan: Optional[str] = None,
auth_fail_vlan_id: Optional[str] = None,
auth_fail_vlanid: Optional[int] = None,
authserver_timeout_period: Optional[int] = None,
authserver_timeout_vlan: Optional[str] = None,
authserver_timeout_vlanid: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
eap_auto_untagged_vlans: Optional[str] = None,
eap_passthru: Optional[str] = None,
framevid_apply: Optional[str] = None,
get_all_tables: Optional[str] = None,
guest_auth_delay: Optional[int] = None,
guest_vlan: Optional[str] = None,
guest_vlan_id: Optional[str] = None,
guest_vlanid: Optional[int] = None,
mac_auth_bypass: Optional[str] = None,
name: Optional[str] = None,
open_auth: Optional[str] = None,
policy_type: Optional[str] = None,
radius_timeout_overwrite: Optional[str] = None,
security_mode: Optional[str] = None,
user_groups: Optional[Sequence[Policy8021XUserGroupArgs]] = None,
vdomparam: Optional[str] = None)
func NewPolicy8021X(ctx *Context, name string, args *Policy8021XArgs, opts ...ResourceOption) (*Policy8021X, error)
public Policy8021X(string name, Policy8021XArgs? args = null, CustomResourceOptions? opts = null)
public Policy8021X(String name, Policy8021XArgs args)
public Policy8021X(String name, Policy8021XArgs args, CustomResourceOptions options)
type: fortios:switchcontroller/securitypolicy/policy8021X:Policy8021X
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 Policy8021XArgs
- 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 Policy8021XArgs
- 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 Policy8021XArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Policy8021XArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Policy8021XArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Policy8021X Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Policy8021X resource accepts the following input properties:
- Auth
Fail stringVlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - Auth
Fail stringVlan Id - VLAN ID on which authentication failed.
- Auth
Fail intVlanid - VLAN ID on which authentication failed.
- Authserver
Timeout intPeriod - Authentication server timeout period (3 - 15 sec, default = 3).
- Authserver
Timeout stringVlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - Authserver
Timeout stringVlanid - Authentication server timeout VLAN name.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Eap
Auto stringUntagged Vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - Eap
Passthru string - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - Framevid
Apply string - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Guest
Auth intDelay - Guest authentication delay (1 - 900 sec, default = 30).
- Guest
Vlan string - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - Guest
Vlan stringId - Guest VLAN name.
- Guest
Vlanid int - Guest VLAN ID.
- Mac
Auth stringBypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - Name string
- Policy name.
- Open
Auth string - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - Policy
Type string - Policy type. Valid values:
802.1X
. - Radius
Timeout stringOverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - Security
Mode string - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - User
Groups List<Pulumiverse.Fortios. Switchcontroller. Securitypolicy. Inputs. Policy8021XUser Group> - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Auth
Fail stringVlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - Auth
Fail stringVlan Id - VLAN ID on which authentication failed.
- Auth
Fail intVlanid - VLAN ID on which authentication failed.
- Authserver
Timeout intPeriod - Authentication server timeout period (3 - 15 sec, default = 3).
- Authserver
Timeout stringVlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - Authserver
Timeout stringVlanid - Authentication server timeout VLAN name.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Eap
Auto stringUntagged Vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - Eap
Passthru string - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - Framevid
Apply string - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Guest
Auth intDelay - Guest authentication delay (1 - 900 sec, default = 30).
- Guest
Vlan string - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - Guest
Vlan stringId - Guest VLAN name.
- Guest
Vlanid int - Guest VLAN ID.
- Mac
Auth stringBypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - Name string
- Policy name.
- Open
Auth string - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - Policy
Type string - Policy type. Valid values:
802.1X
. - Radius
Timeout stringOverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - Security
Mode string - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - User
Groups []Policy8021XUserGroup Args - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- auth
Fail StringVlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - auth
Fail StringVlan Id - VLAN ID on which authentication failed.
- auth
Fail IntegerVlanid - VLAN ID on which authentication failed.
- authserver
Timeout IntegerPeriod - Authentication server timeout period (3 - 15 sec, default = 3).
- authserver
Timeout StringVlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - authserver
Timeout StringVlanid - Authentication server timeout VLAN name.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- eap
Auto StringUntagged Vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - eap
Passthru String - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - framevid
Apply String - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- guest
Auth IntegerDelay - Guest authentication delay (1 - 900 sec, default = 30).
- guest
Vlan String - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - guest
Vlan StringId - Guest VLAN name.
- guest
Vlanid Integer - Guest VLAN ID.
- mac
Auth StringBypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - name String
- Policy name.
- open
Auth String - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - policy
Type String - Policy type. Valid values:
802.1X
. - radius
Timeout StringOverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - security
Mode String - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - user
Groups List<Policy8021XUserGroup> - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- auth
Fail stringVlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - auth
Fail stringVlan Id - VLAN ID on which authentication failed.
- auth
Fail numberVlanid - VLAN ID on which authentication failed.
- authserver
Timeout numberPeriod - Authentication server timeout period (3 - 15 sec, default = 3).
- authserver
Timeout stringVlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - authserver
Timeout stringVlanid - Authentication server timeout VLAN name.
- dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- eap
Auto stringUntagged Vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - eap
Passthru string - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - framevid
Apply string - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- guest
Auth numberDelay - Guest authentication delay (1 - 900 sec, default = 30).
- guest
Vlan string - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - guest
Vlan stringId - Guest VLAN name.
- guest
Vlanid number - Guest VLAN ID.
- mac
Auth stringBypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - name string
- Policy name.
- open
Auth string - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - policy
Type string - Policy type. Valid values:
802.1X
. - radius
Timeout stringOverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - security
Mode string - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - user
Groups Policy8021XUserGroup[] - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- auth_
fail_ strvlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - auth_
fail_ strvlan_ id - VLAN ID on which authentication failed.
- auth_
fail_ intvlanid - VLAN ID on which authentication failed.
- authserver_
timeout_ intperiod - Authentication server timeout period (3 - 15 sec, default = 3).
- authserver_
timeout_ strvlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - authserver_
timeout_ strvlanid - Authentication server timeout VLAN name.
- dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- eap_
auto_ struntagged_ vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - eap_
passthru str - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - framevid_
apply str - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- guest_
auth_ intdelay - Guest authentication delay (1 - 900 sec, default = 30).
- guest_
vlan str - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - guest_
vlan_ strid - Guest VLAN name.
- guest_
vlanid int - Guest VLAN ID.
- mac_
auth_ strbypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - name str
- Policy name.
- open_
auth str - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - policy_
type str - Policy type. Valid values:
802.1X
. - radius_
timeout_ stroverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - security_
mode str - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - user_
groups Sequence[Policy8021XUserGroup Args] - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- auth
Fail StringVlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - auth
Fail StringVlan Id - VLAN ID on which authentication failed.
- auth
Fail NumberVlanid - VLAN ID on which authentication failed.
- authserver
Timeout NumberPeriod - Authentication server timeout period (3 - 15 sec, default = 3).
- authserver
Timeout StringVlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - authserver
Timeout StringVlanid - Authentication server timeout VLAN name.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- eap
Auto StringUntagged Vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - eap
Passthru String - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - framevid
Apply String - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- guest
Auth NumberDelay - Guest authentication delay (1 - 900 sec, default = 30).
- guest
Vlan String - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - guest
Vlan StringId - Guest VLAN name.
- guest
Vlanid Number - Guest VLAN ID.
- mac
Auth StringBypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - name String
- Policy name.
- open
Auth String - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - policy
Type String - Policy type. Valid values:
802.1X
. - radius
Timeout StringOverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - security
Mode String - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - user
Groups List<Property Map> - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the Policy8021X 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 Policy8021X Resource
Get an existing Policy8021X 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?: Policy8021XState, opts?: CustomResourceOptions): Policy8021X
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth_fail_vlan: Optional[str] = None,
auth_fail_vlan_id: Optional[str] = None,
auth_fail_vlanid: Optional[int] = None,
authserver_timeout_period: Optional[int] = None,
authserver_timeout_vlan: Optional[str] = None,
authserver_timeout_vlanid: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
eap_auto_untagged_vlans: Optional[str] = None,
eap_passthru: Optional[str] = None,
framevid_apply: Optional[str] = None,
get_all_tables: Optional[str] = None,
guest_auth_delay: Optional[int] = None,
guest_vlan: Optional[str] = None,
guest_vlan_id: Optional[str] = None,
guest_vlanid: Optional[int] = None,
mac_auth_bypass: Optional[str] = None,
name: Optional[str] = None,
open_auth: Optional[str] = None,
policy_type: Optional[str] = None,
radius_timeout_overwrite: Optional[str] = None,
security_mode: Optional[str] = None,
user_groups: Optional[Sequence[Policy8021XUserGroupArgs]] = None,
vdomparam: Optional[str] = None) -> Policy8021X
func GetPolicy8021X(ctx *Context, name string, id IDInput, state *Policy8021XState, opts ...ResourceOption) (*Policy8021X, error)
public static Policy8021X Get(string name, Input<string> id, Policy8021XState? state, CustomResourceOptions? opts = null)
public static Policy8021X get(String name, Output<String> id, Policy8021XState 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.
- Auth
Fail stringVlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - Auth
Fail stringVlan Id - VLAN ID on which authentication failed.
- Auth
Fail intVlanid - VLAN ID on which authentication failed.
- Authserver
Timeout intPeriod - Authentication server timeout period (3 - 15 sec, default = 3).
- Authserver
Timeout stringVlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - Authserver
Timeout stringVlanid - Authentication server timeout VLAN name.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Eap
Auto stringUntagged Vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - Eap
Passthru string - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - Framevid
Apply string - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Guest
Auth intDelay - Guest authentication delay (1 - 900 sec, default = 30).
- Guest
Vlan string - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - Guest
Vlan stringId - Guest VLAN name.
- Guest
Vlanid int - Guest VLAN ID.
- Mac
Auth stringBypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - Name string
- Policy name.
- Open
Auth string - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - Policy
Type string - Policy type. Valid values:
802.1X
. - Radius
Timeout stringOverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - Security
Mode string - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - User
Groups List<Pulumiverse.Fortios. Switchcontroller. Securitypolicy. Inputs. Policy8021XUser Group> - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Auth
Fail stringVlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - Auth
Fail stringVlan Id - VLAN ID on which authentication failed.
- Auth
Fail intVlanid - VLAN ID on which authentication failed.
- Authserver
Timeout intPeriod - Authentication server timeout period (3 - 15 sec, default = 3).
- Authserver
Timeout stringVlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - Authserver
Timeout stringVlanid - Authentication server timeout VLAN name.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Eap
Auto stringUntagged Vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - Eap
Passthru string - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - Framevid
Apply string - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Guest
Auth intDelay - Guest authentication delay (1 - 900 sec, default = 30).
- Guest
Vlan string - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - Guest
Vlan stringId - Guest VLAN name.
- Guest
Vlanid int - Guest VLAN ID.
- Mac
Auth stringBypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - Name string
- Policy name.
- Open
Auth string - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - Policy
Type string - Policy type. Valid values:
802.1X
. - Radius
Timeout stringOverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - Security
Mode string - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - User
Groups []Policy8021XUserGroup Args - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- auth
Fail StringVlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - auth
Fail StringVlan Id - VLAN ID on which authentication failed.
- auth
Fail IntegerVlanid - VLAN ID on which authentication failed.
- authserver
Timeout IntegerPeriod - Authentication server timeout period (3 - 15 sec, default = 3).
- authserver
Timeout StringVlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - authserver
Timeout StringVlanid - Authentication server timeout VLAN name.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- eap
Auto StringUntagged Vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - eap
Passthru String - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - framevid
Apply String - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- guest
Auth IntegerDelay - Guest authentication delay (1 - 900 sec, default = 30).
- guest
Vlan String - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - guest
Vlan StringId - Guest VLAN name.
- guest
Vlanid Integer - Guest VLAN ID.
- mac
Auth StringBypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - name String
- Policy name.
- open
Auth String - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - policy
Type String - Policy type. Valid values:
802.1X
. - radius
Timeout StringOverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - security
Mode String - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - user
Groups List<Policy8021XUserGroup> - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- auth
Fail stringVlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - auth
Fail stringVlan Id - VLAN ID on which authentication failed.
- auth
Fail numberVlanid - VLAN ID on which authentication failed.
- authserver
Timeout numberPeriod - Authentication server timeout period (3 - 15 sec, default = 3).
- authserver
Timeout stringVlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - authserver
Timeout stringVlanid - Authentication server timeout VLAN name.
- dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- eap
Auto stringUntagged Vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - eap
Passthru string - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - framevid
Apply string - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- guest
Auth numberDelay - Guest authentication delay (1 - 900 sec, default = 30).
- guest
Vlan string - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - guest
Vlan stringId - Guest VLAN name.
- guest
Vlanid number - Guest VLAN ID.
- mac
Auth stringBypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - name string
- Policy name.
- open
Auth string - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - policy
Type string - Policy type. Valid values:
802.1X
. - radius
Timeout stringOverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - security
Mode string - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - user
Groups Policy8021XUserGroup[] - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- auth_
fail_ strvlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - auth_
fail_ strvlan_ id - VLAN ID on which authentication failed.
- auth_
fail_ intvlanid - VLAN ID on which authentication failed.
- authserver_
timeout_ intperiod - Authentication server timeout period (3 - 15 sec, default = 3).
- authserver_
timeout_ strvlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - authserver_
timeout_ strvlanid - Authentication server timeout VLAN name.
- dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- eap_
auto_ struntagged_ vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - eap_
passthru str - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - framevid_
apply str - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- guest_
auth_ intdelay - Guest authentication delay (1 - 900 sec, default = 30).
- guest_
vlan str - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - guest_
vlan_ strid - Guest VLAN name.
- guest_
vlanid int - Guest VLAN ID.
- mac_
auth_ strbypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - name str
- Policy name.
- open_
auth str - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - policy_
type str - Policy type. Valid values:
802.1X
. - radius_
timeout_ stroverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - security_
mode str - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - user_
groups Sequence[Policy8021XUserGroup Args] - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- auth
Fail StringVlan - Enable to allow limited access to clients that cannot authenticate. Valid values:
disable
,enable
. - auth
Fail StringVlan Id - VLAN ID on which authentication failed.
- auth
Fail NumberVlanid - VLAN ID on which authentication failed.
- authserver
Timeout NumberPeriod - Authentication server timeout period (3 - 15 sec, default = 3).
- authserver
Timeout StringVlan - Enable/disable the authentication server timeout VLAN to allow limited access when RADIUS is unavailable. Valid values:
disable
,enable
. - authserver
Timeout StringVlanid - Authentication server timeout VLAN name.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- eap
Auto StringUntagged Vlans - Enable/disable automatic inclusion of untagged VLANs. Valid values:
disable
,enable
. - eap
Passthru String - Enable/disable EAP pass-through mode, allowing protocols (such as LLDP) to pass through ports for more flexible authentication. Valid values:
disable
,enable
. - framevid
Apply String - Enable/disable the capability to apply the EAP/MAB frame VLAN to the port native VLAN. Valid values:
disable
,enable
. - get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- guest
Auth NumberDelay - Guest authentication delay (1 - 900 sec, default = 30).
- guest
Vlan String - Enable the guest VLAN feature to allow limited access to non-802.1X-compliant clients. Valid values:
disable
,enable
. - guest
Vlan StringId - Guest VLAN name.
- guest
Vlanid Number - Guest VLAN ID.
- mac
Auth StringBypass - Enable/disable MAB for this policy. Valid values:
disable
,enable
. - name String
- Policy name.
- open
Auth String - Enable/disable open authentication for this policy. Valid values:
disable
,enable
. - policy
Type String - Policy type. Valid values:
802.1X
. - radius
Timeout StringOverwrite - Enable to override the global RADIUS session timeout. Valid values:
disable
,enable
. - security
Mode String - Port or MAC based 802.1X security mode. Valid values:
802.1X
,802.1X-mac-based
. - user
Groups List<Property Map> - Name of user-group to assign to this MAC Authentication Bypass (MAB) policy. The structure of
user_group
block is documented below. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Supporting Types
Policy8021XUserGroup, Policy8021XUserGroupArgs
- Name string
- Group name.
- Name string
- Group name.
- name String
- Group name.
- name string
- Group name.
- name str
- Group name.
- name String
- Group name.
Import
SwitchControllerSecurityPolicy 8021X can be imported using any of these accepted formats:
$ pulumi import fortios:switchcontroller/securitypolicy/policy8021X:Policy8021X labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:switchcontroller/securitypolicy/policy8021X:Policy8021X labelname {{name}}
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.