fortios.switchcontroller.Portpolicy
Explore with Pulumi AI
Configure port policy to be applied on the managed FortiSwitch ports through NAC device. Applies to FortiOS Version 6.4.0,6.4.1,6.4.2,6.4.10,6.4.11,6.4.12,6.4.13,6.4.14,6.4.15,7.0.0
.
Create Portpolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Portpolicy(name: string, args?: PortpolicyArgs, opts?: CustomResourceOptions);
@overload
def Portpolicy(resource_name: str,
args: Optional[PortpolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Portpolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
bounce_port_link: Optional[str] = None,
description: Optional[str] = None,
fortilink: Optional[str] = None,
lldp_profile: Optional[str] = None,
n8021x: Optional[str] = None,
name: Optional[str] = None,
qos_policy: Optional[str] = None,
vdomparam: Optional[str] = None,
vlan_policy: Optional[str] = None)
func NewPortpolicy(ctx *Context, name string, args *PortpolicyArgs, opts ...ResourceOption) (*Portpolicy, error)
public Portpolicy(string name, PortpolicyArgs? args = null, CustomResourceOptions? opts = null)
public Portpolicy(String name, PortpolicyArgs args)
public Portpolicy(String name, PortpolicyArgs args, CustomResourceOptions options)
type: fortios:switchcontroller:Portpolicy
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 PortpolicyArgs
- 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 PortpolicyArgs
- 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 PortpolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PortpolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PortpolicyArgs
- 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 portpolicyResource = new Fortios.Switchcontroller.Portpolicy("portpolicyResource", new()
{
BouncePortLink = "string",
Description = "string",
Fortilink = "string",
LldpProfile = "string",
N8021x = "string",
Name = "string",
QosPolicy = "string",
Vdomparam = "string",
VlanPolicy = "string",
});
example, err := switchcontroller.NewPortpolicy(ctx, "portpolicyResource", &switchcontroller.PortpolicyArgs{
BouncePortLink: pulumi.String("string"),
Description: pulumi.String("string"),
Fortilink: pulumi.String("string"),
LldpProfile: pulumi.String("string"),
N8021x: pulumi.String("string"),
Name: pulumi.String("string"),
QosPolicy: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
VlanPolicy: pulumi.String("string"),
})
var portpolicyResource = new Portpolicy("portpolicyResource", PortpolicyArgs.builder()
.bouncePortLink("string")
.description("string")
.fortilink("string")
.lldpProfile("string")
.n8021x("string")
.name("string")
.qosPolicy("string")
.vdomparam("string")
.vlanPolicy("string")
.build());
portpolicy_resource = fortios.switchcontroller.Portpolicy("portpolicyResource",
bounce_port_link="string",
description="string",
fortilink="string",
lldp_profile="string",
n8021x="string",
name="string",
qos_policy="string",
vdomparam="string",
vlan_policy="string")
const portpolicyResource = new fortios.switchcontroller.Portpolicy("portpolicyResource", {
bouncePortLink: "string",
description: "string",
fortilink: "string",
lldpProfile: "string",
n8021x: "string",
name: "string",
qosPolicy: "string",
vdomparam: "string",
vlanPolicy: "string",
});
type: fortios:switchcontroller:Portpolicy
properties:
bouncePortLink: string
description: string
fortilink: string
lldpProfile: string
n8021x: string
name: string
qosPolicy: string
vdomparam: string
vlanPolicy: string
Portpolicy 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 Portpolicy resource accepts the following input properties:
- Bounce
Port stringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - Description string
- Description for the port policy.
- Fortilink string
- FortiLink interface for which this port policy belongs to.
- Lldp
Profile string - LLDP profile to be applied when using this port-policy.
- N8021x string
- 802.1x security policy to be applied when using this port-policy.
- Name string
- Port policy name.
- Qos
Policy string - QoS policy to be applied when using this port-policy.
- 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.
- Vlan
Policy string - VLAN policy to be applied when using this port-policy.
- Bounce
Port stringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - Description string
- Description for the port policy.
- Fortilink string
- FortiLink interface for which this port policy belongs to.
- Lldp
Profile string - LLDP profile to be applied when using this port-policy.
- N8021x string
- 802.1x security policy to be applied when using this port-policy.
- Name string
- Port policy name.
- Qos
Policy string - QoS policy to be applied when using this port-policy.
- 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.
- Vlan
Policy string - VLAN policy to be applied when using this port-policy.
- bounce
Port StringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - description String
- Description for the port policy.
- fortilink String
- FortiLink interface for which this port policy belongs to.
- lldp
Profile String - LLDP profile to be applied when using this port-policy.
- n8021x String
- 802.1x security policy to be applied when using this port-policy.
- name String
- Port policy name.
- qos
Policy String - QoS policy to be applied when using this port-policy.
- 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.
- vlan
Policy String - VLAN policy to be applied when using this port-policy.
- bounce
Port stringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - description string
- Description for the port policy.
- fortilink string
- FortiLink interface for which this port policy belongs to.
- lldp
Profile string - LLDP profile to be applied when using this port-policy.
- n8021x string
- 802.1x security policy to be applied when using this port-policy.
- name string
- Port policy name.
- qos
Policy string - QoS policy to be applied when using this port-policy.
- 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.
- vlan
Policy string - VLAN policy to be applied when using this port-policy.
- bounce_
port_ strlink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - description str
- Description for the port policy.
- fortilink str
- FortiLink interface for which this port policy belongs to.
- lldp_
profile str - LLDP profile to be applied when using this port-policy.
- n8021x str
- 802.1x security policy to be applied when using this port-policy.
- name str
- Port policy name.
- qos_
policy str - QoS policy to be applied when using this port-policy.
- 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.
- vlan_
policy str - VLAN policy to be applied when using this port-policy.
- bounce
Port StringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - description String
- Description for the port policy.
- fortilink String
- FortiLink interface for which this port policy belongs to.
- lldp
Profile String - LLDP profile to be applied when using this port-policy.
- n8021x String
- 802.1x security policy to be applied when using this port-policy.
- name String
- Port policy name.
- qos
Policy String - QoS policy to be applied when using this port-policy.
- 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.
- vlan
Policy String - VLAN policy to be applied when using this port-policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the Portpolicy 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 Portpolicy Resource
Get an existing Portpolicy 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?: PortpolicyState, opts?: CustomResourceOptions): Portpolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bounce_port_link: Optional[str] = None,
description: Optional[str] = None,
fortilink: Optional[str] = None,
lldp_profile: Optional[str] = None,
n8021x: Optional[str] = None,
name: Optional[str] = None,
qos_policy: Optional[str] = None,
vdomparam: Optional[str] = None,
vlan_policy: Optional[str] = None) -> Portpolicy
func GetPortpolicy(ctx *Context, name string, id IDInput, state *PortpolicyState, opts ...ResourceOption) (*Portpolicy, error)
public static Portpolicy Get(string name, Input<string> id, PortpolicyState? state, CustomResourceOptions? opts = null)
public static Portpolicy get(String name, Output<String> id, PortpolicyState 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.
- Bounce
Port stringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - Description string
- Description for the port policy.
- Fortilink string
- FortiLink interface for which this port policy belongs to.
- Lldp
Profile string - LLDP profile to be applied when using this port-policy.
- N8021x string
- 802.1x security policy to be applied when using this port-policy.
- Name string
- Port policy name.
- Qos
Policy string - QoS policy to be applied when using this port-policy.
- 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.
- Vlan
Policy string - VLAN policy to be applied when using this port-policy.
- Bounce
Port stringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - Description string
- Description for the port policy.
- Fortilink string
- FortiLink interface for which this port policy belongs to.
- Lldp
Profile string - LLDP profile to be applied when using this port-policy.
- N8021x string
- 802.1x security policy to be applied when using this port-policy.
- Name string
- Port policy name.
- Qos
Policy string - QoS policy to be applied when using this port-policy.
- 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.
- Vlan
Policy string - VLAN policy to be applied when using this port-policy.
- bounce
Port StringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - description String
- Description for the port policy.
- fortilink String
- FortiLink interface for which this port policy belongs to.
- lldp
Profile String - LLDP profile to be applied when using this port-policy.
- n8021x String
- 802.1x security policy to be applied when using this port-policy.
- name String
- Port policy name.
- qos
Policy String - QoS policy to be applied when using this port-policy.
- 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.
- vlan
Policy String - VLAN policy to be applied when using this port-policy.
- bounce
Port stringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - description string
- Description for the port policy.
- fortilink string
- FortiLink interface for which this port policy belongs to.
- lldp
Profile string - LLDP profile to be applied when using this port-policy.
- n8021x string
- 802.1x security policy to be applied when using this port-policy.
- name string
- Port policy name.
- qos
Policy string - QoS policy to be applied when using this port-policy.
- 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.
- vlan
Policy string - VLAN policy to be applied when using this port-policy.
- bounce_
port_ strlink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - description str
- Description for the port policy.
- fortilink str
- FortiLink interface for which this port policy belongs to.
- lldp_
profile str - LLDP profile to be applied when using this port-policy.
- n8021x str
- 802.1x security policy to be applied when using this port-policy.
- name str
- Port policy name.
- qos_
policy str - QoS policy to be applied when using this port-policy.
- 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.
- vlan_
policy str - VLAN policy to be applied when using this port-policy.
- bounce
Port StringLink - Enable/disable bouncing (administratively bring the link down, up) of a switch port where this port policy is applied. Helps to clear and reassign VLAN from lldp-profile. Valid values:
disable
,enable
. - description String
- Description for the port policy.
- fortilink String
- FortiLink interface for which this port policy belongs to.
- lldp
Profile String - LLDP profile to be applied when using this port-policy.
- n8021x String
- 802.1x security policy to be applied when using this port-policy.
- name String
- Port policy name.
- qos
Policy String - QoS policy to be applied when using this port-policy.
- 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.
- vlan
Policy String - VLAN policy to be applied when using this port-policy.
Import
SwitchController PortPolicy can be imported using any of these accepted formats:
$ pulumi import fortios:switchcontroller/portpolicy:Portpolicy labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:switchcontroller/portpolicy:Portpolicy 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.