fortios.switchcontroller.Dynamicportpolicy
Explore with Pulumi AI
Configure Dynamic port policy to be applied on the managed FortiSwitch ports through DPP device. Applies to FortiOS Version >= 7.0.1
.
Create Dynamicportpolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Dynamicportpolicy(name: string, args?: DynamicportpolicyArgs, opts?: CustomResourceOptions);
@overload
def Dynamicportpolicy(resource_name: str,
args: Optional[DynamicportpolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Dynamicportpolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
fortilink: Optional[str] = None,
get_all_tables: Optional[str] = None,
name: Optional[str] = None,
policies: Optional[Sequence[DynamicportpolicyPolicyArgs]] = None,
vdomparam: Optional[str] = None)
func NewDynamicportpolicy(ctx *Context, name string, args *DynamicportpolicyArgs, opts ...ResourceOption) (*Dynamicportpolicy, error)
public Dynamicportpolicy(string name, DynamicportpolicyArgs? args = null, CustomResourceOptions? opts = null)
public Dynamicportpolicy(String name, DynamicportpolicyArgs args)
public Dynamicportpolicy(String name, DynamicportpolicyArgs args, CustomResourceOptions options)
type: fortios:switchcontroller:Dynamicportpolicy
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 DynamicportpolicyArgs
- 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 DynamicportpolicyArgs
- 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 DynamicportpolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynamicportpolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynamicportpolicyArgs
- 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 dynamicportpolicyResource = new Fortios.Switchcontroller.Dynamicportpolicy("dynamicportpolicyResource", new()
{
Description = "string",
DynamicSortSubtable = "string",
Fortilink = "string",
GetAllTables = "string",
Name = "string",
Policies = new[]
{
new Fortios.Switchcontroller.Inputs.DynamicportpolicyPolicyArgs
{
BouncePortLink = "string",
Category = "string",
Description = "string",
Family = "string",
Host = "string",
HwVendor = "string",
InterfaceTags = new[]
{
new Fortios.Switchcontroller.Inputs.DynamicportpolicyPolicyInterfaceTagArgs
{
TagName = "string",
},
},
LldpProfile = "string",
Mac = "string",
MatchPeriod = 0,
MatchType = "string",
N8021x = "string",
Name = "string",
QosPolicy = "string",
Status = "string",
Type = "string",
VlanPolicy = "string",
},
},
Vdomparam = "string",
});
example, err := switchcontroller.NewDynamicportpolicy(ctx, "dynamicportpolicyResource", &switchcontroller.DynamicportpolicyArgs{
Description: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
Fortilink: pulumi.String("string"),
GetAllTables: pulumi.String("string"),
Name: pulumi.String("string"),
Policies: switchcontroller.DynamicportpolicyPolicyArray{
&switchcontroller.DynamicportpolicyPolicyArgs{
BouncePortLink: pulumi.String("string"),
Category: pulumi.String("string"),
Description: pulumi.String("string"),
Family: pulumi.String("string"),
Host: pulumi.String("string"),
HwVendor: pulumi.String("string"),
InterfaceTags: switchcontroller.DynamicportpolicyPolicyInterfaceTagArray{
&switchcontroller.DynamicportpolicyPolicyInterfaceTagArgs{
TagName: pulumi.String("string"),
},
},
LldpProfile: pulumi.String("string"),
Mac: pulumi.String("string"),
MatchPeriod: pulumi.Int(0),
MatchType: pulumi.String("string"),
N8021x: pulumi.String("string"),
Name: pulumi.String("string"),
QosPolicy: pulumi.String("string"),
Status: pulumi.String("string"),
Type: pulumi.String("string"),
VlanPolicy: pulumi.String("string"),
},
},
Vdomparam: pulumi.String("string"),
})
var dynamicportpolicyResource = new Dynamicportpolicy("dynamicportpolicyResource", DynamicportpolicyArgs.builder()
.description("string")
.dynamicSortSubtable("string")
.fortilink("string")
.getAllTables("string")
.name("string")
.policies(DynamicportpolicyPolicyArgs.builder()
.bouncePortLink("string")
.category("string")
.description("string")
.family("string")
.host("string")
.hwVendor("string")
.interfaceTags(DynamicportpolicyPolicyInterfaceTagArgs.builder()
.tagName("string")
.build())
.lldpProfile("string")
.mac("string")
.matchPeriod(0)
.matchType("string")
.n8021x("string")
.name("string")
.qosPolicy("string")
.status("string")
.type("string")
.vlanPolicy("string")
.build())
.vdomparam("string")
.build());
dynamicportpolicy_resource = fortios.switchcontroller.Dynamicportpolicy("dynamicportpolicyResource",
description="string",
dynamic_sort_subtable="string",
fortilink="string",
get_all_tables="string",
name="string",
policies=[fortios.switchcontroller.DynamicportpolicyPolicyArgs(
bounce_port_link="string",
category="string",
description="string",
family="string",
host="string",
hw_vendor="string",
interface_tags=[fortios.switchcontroller.DynamicportpolicyPolicyInterfaceTagArgs(
tag_name="string",
)],
lldp_profile="string",
mac="string",
match_period=0,
match_type="string",
n8021x="string",
name="string",
qos_policy="string",
status="string",
type="string",
vlan_policy="string",
)],
vdomparam="string")
const dynamicportpolicyResource = new fortios.switchcontroller.Dynamicportpolicy("dynamicportpolicyResource", {
description: "string",
dynamicSortSubtable: "string",
fortilink: "string",
getAllTables: "string",
name: "string",
policies: [{
bouncePortLink: "string",
category: "string",
description: "string",
family: "string",
host: "string",
hwVendor: "string",
interfaceTags: [{
tagName: "string",
}],
lldpProfile: "string",
mac: "string",
matchPeriod: 0,
matchType: "string",
n8021x: "string",
name: "string",
qosPolicy: "string",
status: "string",
type: "string",
vlanPolicy: "string",
}],
vdomparam: "string",
});
type: fortios:switchcontroller:Dynamicportpolicy
properties:
description: string
dynamicSortSubtable: string
fortilink: string
getAllTables: string
name: string
policies:
- bouncePortLink: string
category: string
description: string
family: string
host: string
hwVendor: string
interfaceTags:
- tagName: string
lldpProfile: string
mac: string
matchPeriod: 0
matchType: string
n8021x: string
name: string
qosPolicy: string
status: string
type: string
vlanPolicy: string
vdomparam: string
Dynamicportpolicy 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 Dynamicportpolicy resource accepts the following input properties:
- Description string
- Description for the Dynamic port policy.
- 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 ].
- Fortilink string
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Name string
- Dynamic port policy name.
- Policies
List<Pulumiverse.
Fortios. Switchcontroller. Inputs. Dynamicportpolicy Policy> - Port policies with matching criteria and actions. The structure of
policy
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.
- Description string
- Description for the Dynamic port policy.
- 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 ].
- Fortilink string
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Name string
- Dynamic port policy name.
- Policies
[]Dynamicportpolicy
Policy Args - Port policies with matching criteria and actions. The structure of
policy
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.
- description String
- Description for the Dynamic port policy.
- 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 ].
- fortilink String
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- name String
- Dynamic port policy name.
- policies
List<Dynamicportpolicy
Policy> - Port policies with matching criteria and actions. The structure of
policy
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.
- description string
- Description for the Dynamic port policy.
- 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 ].
- fortilink string
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- name string
- Dynamic port policy name.
- policies
Dynamicportpolicy
Policy[] - Port policies with matching criteria and actions. The structure of
policy
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.
- description str
- Description for the Dynamic port policy.
- 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 ].
- fortilink str
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- name str
- Dynamic port policy name.
- policies
Sequence[Dynamicportpolicy
Policy Args] - Port policies with matching criteria and actions. The structure of
policy
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.
- description String
- Description for the Dynamic port policy.
- 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 ].
- fortilink String
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- name String
- Dynamic port policy name.
- policies List<Property Map>
- Port policies with matching criteria and actions. The structure of
policy
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 Dynamicportpolicy 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 Dynamicportpolicy Resource
Get an existing Dynamicportpolicy 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?: DynamicportpolicyState, opts?: CustomResourceOptions): Dynamicportpolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
fortilink: Optional[str] = None,
get_all_tables: Optional[str] = None,
name: Optional[str] = None,
policies: Optional[Sequence[DynamicportpolicyPolicyArgs]] = None,
vdomparam: Optional[str] = None) -> Dynamicportpolicy
func GetDynamicportpolicy(ctx *Context, name string, id IDInput, state *DynamicportpolicyState, opts ...ResourceOption) (*Dynamicportpolicy, error)
public static Dynamicportpolicy Get(string name, Input<string> id, DynamicportpolicyState? state, CustomResourceOptions? opts = null)
public static Dynamicportpolicy get(String name, Output<String> id, DynamicportpolicyState 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.
- Description string
- Description for the Dynamic port policy.
- 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 ].
- Fortilink string
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Name string
- Dynamic port policy name.
- Policies
List<Pulumiverse.
Fortios. Switchcontroller. Inputs. Dynamicportpolicy Policy> - Port policies with matching criteria and actions. The structure of
policy
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.
- Description string
- Description for the Dynamic port policy.
- 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 ].
- Fortilink string
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Name string
- Dynamic port policy name.
- Policies
[]Dynamicportpolicy
Policy Args - Port policies with matching criteria and actions. The structure of
policy
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.
- description String
- Description for the Dynamic port policy.
- 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 ].
- fortilink String
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- name String
- Dynamic port policy name.
- policies
List<Dynamicportpolicy
Policy> - Port policies with matching criteria and actions. The structure of
policy
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.
- description string
- Description for the Dynamic port policy.
- 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 ].
- fortilink string
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- name string
- Dynamic port policy name.
- policies
Dynamicportpolicy
Policy[] - Port policies with matching criteria and actions. The structure of
policy
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.
- description str
- Description for the Dynamic port policy.
- 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 ].
- fortilink str
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- name str
- Dynamic port policy name.
- policies
Sequence[Dynamicportpolicy
Policy Args] - Port policies with matching criteria and actions. The structure of
policy
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.
- description String
- Description for the Dynamic port policy.
- 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 ].
- fortilink String
- FortiLink interface for which this Dynamic port policy belongs to.
- 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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- name String
- Dynamic port policy name.
- policies List<Property Map>
- Port policies with matching criteria and actions. The structure of
policy
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
DynamicportpolicyPolicy, DynamicportpolicyPolicyArgs
- Bounce
Port stringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - Category string
- Category of Dynamic port policy. Valid values:
device
,interface-tag
. - Description string
- Description for the policy.
- Family string
- Policy matching family.
- Host string
- Policy matching host.
- Hw
Vendor string - Match policy based on hardware vendor.
- List<Pulumiverse.
Fortios. Switchcontroller. Inputs. Dynamicportpolicy Policy Interface Tag> - Policy matching the FortiSwitch interface object tags. The structure of
interface_tags
block is documented below. - Lldp
Profile string - LLDP profile to be applied when using this policy.
- Mac string
- Policy matching MAC address.
- Match
Period int - Number of days the matched devices will be retained (0 - 120, 0 = always retain).
- Match
Type string - Match and retain the devices based on the type. Valid values:
dynamic
,override
. - N8021x string
- 802.1x security policy to be applied when using this policy.
- Name string
- Policy name.
- Qos
Policy string - QoS policy to be applied when using this policy.
- Status string
- Enable/disable policy. Valid values:
enable
,disable
. - Type string
- Policy matching type.
- Vlan
Policy string - VLAN policy to be applied when using this policy.
- Bounce
Port stringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - Category string
- Category of Dynamic port policy. Valid values:
device
,interface-tag
. - Description string
- Description for the policy.
- Family string
- Policy matching family.
- Host string
- Policy matching host.
- Hw
Vendor string - Match policy based on hardware vendor.
- []Dynamicportpolicy
Policy Interface Tag - Policy matching the FortiSwitch interface object tags. The structure of
interface_tags
block is documented below. - Lldp
Profile string - LLDP profile to be applied when using this policy.
- Mac string
- Policy matching MAC address.
- Match
Period int - Number of days the matched devices will be retained (0 - 120, 0 = always retain).
- Match
Type string - Match and retain the devices based on the type. Valid values:
dynamic
,override
. - N8021x string
- 802.1x security policy to be applied when using this policy.
- Name string
- Policy name.
- Qos
Policy string - QoS policy to be applied when using this policy.
- Status string
- Enable/disable policy. Valid values:
enable
,disable
. - Type string
- Policy matching type.
- Vlan
Policy string - VLAN policy to be applied when using this policy.
- bounce
Port StringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - category String
- Category of Dynamic port policy. Valid values:
device
,interface-tag
. - description String
- Description for the policy.
- family String
- Policy matching family.
- host String
- Policy matching host.
- hw
Vendor String - Match policy based on hardware vendor.
- List<Dynamicportpolicy
Policy Interface Tag> - Policy matching the FortiSwitch interface object tags. The structure of
interface_tags
block is documented below. - lldp
Profile String - LLDP profile to be applied when using this policy.
- mac String
- Policy matching MAC address.
- match
Period Integer - Number of days the matched devices will be retained (0 - 120, 0 = always retain).
- match
Type String - Match and retain the devices based on the type. Valid values:
dynamic
,override
. - n8021x String
- 802.1x security policy to be applied when using this policy.
- name String
- Policy name.
- qos
Policy String - QoS policy to be applied when using this policy.
- status String
- Enable/disable policy. Valid values:
enable
,disable
. - type String
- Policy matching type.
- vlan
Policy String - VLAN policy to be applied when using this policy.
- bounce
Port stringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - category string
- Category of Dynamic port policy. Valid values:
device
,interface-tag
. - description string
- Description for the policy.
- family string
- Policy matching family.
- host string
- Policy matching host.
- hw
Vendor string - Match policy based on hardware vendor.
- Dynamicportpolicy
Policy Interface Tag[] - Policy matching the FortiSwitch interface object tags. The structure of
interface_tags
block is documented below. - lldp
Profile string - LLDP profile to be applied when using this policy.
- mac string
- Policy matching MAC address.
- match
Period number - Number of days the matched devices will be retained (0 - 120, 0 = always retain).
- match
Type string - Match and retain the devices based on the type. Valid values:
dynamic
,override
. - n8021x string
- 802.1x security policy to be applied when using this policy.
- name string
- Policy name.
- qos
Policy string - QoS policy to be applied when using this policy.
- status string
- Enable/disable policy. Valid values:
enable
,disable
. - type string
- Policy matching type.
- vlan
Policy string - VLAN policy to be applied when using this policy.
- bounce_
port_ strlink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - category str
- Category of Dynamic port policy. Valid values:
device
,interface-tag
. - description str
- Description for the policy.
- family str
- Policy matching family.
- host str
- Policy matching host.
- hw_
vendor str - Match policy based on hardware vendor.
- Sequence[Dynamicportpolicy
Policy Interface Tag] - Policy matching the FortiSwitch interface object tags. The structure of
interface_tags
block is documented below. - lldp_
profile str - LLDP profile to be applied when using this policy.
- mac str
- Policy matching MAC address.
- match_
period int - Number of days the matched devices will be retained (0 - 120, 0 = always retain).
- match_
type str - Match and retain the devices based on the type. Valid values:
dynamic
,override
. - n8021x str
- 802.1x security policy to be applied when using this policy.
- name str
- Policy name.
- qos_
policy str - QoS policy to be applied when using this policy.
- status str
- Enable/disable policy. Valid values:
enable
,disable
. - type str
- Policy matching type.
- vlan_
policy str - VLAN policy to be applied when using this policy.
- bounce
Port StringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - category String
- Category of Dynamic port policy. Valid values:
device
,interface-tag
. - description String
- Description for the policy.
- family String
- Policy matching family.
- host String
- Policy matching host.
- hw
Vendor String - Match policy based on hardware vendor.
- List<Property Map>
- Policy matching the FortiSwitch interface object tags. The structure of
interface_tags
block is documented below. - lldp
Profile String - LLDP profile to be applied when using this policy.
- mac String
- Policy matching MAC address.
- match
Period Number - Number of days the matched devices will be retained (0 - 120, 0 = always retain).
- match
Type String - Match and retain the devices based on the type. Valid values:
dynamic
,override
. - n8021x String
- 802.1x security policy to be applied when using this policy.
- name String
- Policy name.
- qos
Policy String - QoS policy to be applied when using this policy.
- status String
- Enable/disable policy. Valid values:
enable
,disable
. - type String
- Policy matching type.
- vlan
Policy String - VLAN policy to be applied when using this policy.
DynamicportpolicyPolicyInterfaceTag, DynamicportpolicyPolicyInterfaceTagArgs
- Tag
Name string - FortiSwitch port tag name.
- Tag
Name string - FortiSwitch port tag name.
- tag
Name String - FortiSwitch port tag name.
- tag
Name string - FortiSwitch port tag name.
- tag_
name str - FortiSwitch port tag name.
- tag
Name String - FortiSwitch port tag name.
Import
SwitchController DynamicPortPolicy can be imported using any of these accepted formats:
$ pulumi import fortios:switchcontroller/dynamicportpolicy:Dynamicportpolicy labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:switchcontroller/dynamicportpolicy:Dynamicportpolicy 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.