1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectSwitchcontrollerDynamicportpolicyPolicy
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicy

Explore with Pulumi AI

Port policies with matching criteria and actions.

This resource is a sub resource for variable policy of resource fortimanager.ObjectSwitchcontrollerDynamicportpolicy. Conflict and overwrite may occur if use both of them.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trnameObjectSwitchcontrollerDynamicportpolicy = new fortimanager.ObjectSwitchcontrollerDynamicportpolicy("trnameObjectSwitchcontrollerDynamicportpolicy", {});
const trnameObjectSwitchcontrollerDynamicportpolicyPolicy = new fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicy("trnameObjectSwitchcontrollerDynamicportpolicyPolicy", {
    dynamicPortPolicy: trnameObjectSwitchcontrollerDynamicportpolicy.name,
    mac: "02:42:ac:11:00:02",
    status: "disable",
}, {
    dependsOn: [trnameObjectSwitchcontrollerDynamicportpolicy],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_switchcontroller_dynamicportpolicy = fortimanager.ObjectSwitchcontrollerDynamicportpolicy("trnameObjectSwitchcontrollerDynamicportpolicy")
trname_object_switchcontroller_dynamicportpolicy_policy = fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicy("trnameObjectSwitchcontrollerDynamicportpolicyPolicy",
    dynamic_port_policy=trname_object_switchcontroller_dynamicportpolicy.name,
    mac="02:42:ac:11:00:02",
    status="disable",
    opts = pulumi.ResourceOptions(depends_on=[trname_object_switchcontroller_dynamicportpolicy]))
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		trnameObjectSwitchcontrollerDynamicportpolicy, err := fortimanager.NewObjectSwitchcontrollerDynamicportpolicy(ctx, "trnameObjectSwitchcontrollerDynamicportpolicy", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectSwitchcontrollerDynamicportpolicyPolicy(ctx, "trnameObjectSwitchcontrollerDynamicportpolicyPolicy", &fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicyArgs{
			DynamicPortPolicy: trnameObjectSwitchcontrollerDynamicportpolicy.Name,
			Mac:               pulumi.String("02:42:ac:11:00:02"),
			Status:            pulumi.String("disable"),
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectSwitchcontrollerDynamicportpolicy,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trnameObjectSwitchcontrollerDynamicportpolicy = new Fortimanager.ObjectSwitchcontrollerDynamicportpolicy("trnameObjectSwitchcontrollerDynamicportpolicy");

    var trnameObjectSwitchcontrollerDynamicportpolicyPolicy = new Fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicy("trnameObjectSwitchcontrollerDynamicportpolicyPolicy", new()
    {
        DynamicPortPolicy = trnameObjectSwitchcontrollerDynamicportpolicy.Name,
        Mac = "02:42:ac:11:00:02",
        Status = "disable",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectSwitchcontrollerDynamicportpolicy,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectSwitchcontrollerDynamicportpolicy;
import com.pulumi.fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicy;
import com.pulumi.fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicyArgs;
import com.pulumi.resources.CustomResourceOptions;
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 trnameObjectSwitchcontrollerDynamicportpolicy = new ObjectSwitchcontrollerDynamicportpolicy("trnameObjectSwitchcontrollerDynamicportpolicy");

        var trnameObjectSwitchcontrollerDynamicportpolicyPolicy = new ObjectSwitchcontrollerDynamicportpolicyPolicy("trnameObjectSwitchcontrollerDynamicportpolicyPolicy", ObjectSwitchcontrollerDynamicportpolicyPolicyArgs.builder()
            .dynamicPortPolicy(trnameObjectSwitchcontrollerDynamicportpolicy.name())
            .mac("02:42:ac:11:00:02")
            .status("disable")
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectSwitchcontrollerDynamicportpolicy)
                .build());

    }
}
Copy
resources:
  trnameObjectSwitchcontrollerDynamicportpolicyPolicy:
    type: fortimanager:ObjectSwitchcontrollerDynamicportpolicyPolicy
    properties:
      dynamicPortPolicy: ${trnameObjectSwitchcontrollerDynamicportpolicy.name}
      mac: 02:42:ac:11:00:02
      status: disable
    options:
      dependsOn:
        - ${trnameObjectSwitchcontrollerDynamicportpolicy}
  trnameObjectSwitchcontrollerDynamicportpolicy:
    type: fortimanager:ObjectSwitchcontrollerDynamicportpolicy
Copy

Create ObjectSwitchcontrollerDynamicportpolicyPolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ObjectSwitchcontrollerDynamicportpolicyPolicy(name: string, args: ObjectSwitchcontrollerDynamicportpolicyPolicyArgs, opts?: CustomResourceOptions);
@overload
def ObjectSwitchcontrollerDynamicportpolicyPolicy(resource_name: str,
                                                  args: ObjectSwitchcontrollerDynamicportpolicyPolicyInitArgs,
                                                  opts: Optional[ResourceOptions] = None)

@overload
def ObjectSwitchcontrollerDynamicportpolicyPolicy(resource_name: str,
                                                  opts: Optional[ResourceOptions] = None,
                                                  dynamic_port_policy: Optional[str] = None,
                                                  interface_tags: Optional[Sequence[str]] = None,
                                                  n8021x: Optional[str] = None,
                                                  description: Optional[str] = None,
                                                  bounce_port_link: Optional[str] = None,
                                                  family: Optional[str] = None,
                                                  host: Optional[str] = None,
                                                  hw_vendor: Optional[str] = None,
                                                  adom: Optional[str] = None,
                                                  category: Optional[str] = None,
                                                  lldp_profile: Optional[str] = None,
                                                  mac: Optional[str] = None,
                                                  name: Optional[str] = None,
                                                  object_switchcontroller_dynamicportpolicy_policy_id: Optional[str] = None,
                                                  qos_policy: Optional[str] = None,
                                                  scopetype: Optional[str] = None,
                                                  status: Optional[str] = None,
                                                  type: Optional[str] = None,
                                                  vlan_policy: Optional[str] = None)
func NewObjectSwitchcontrollerDynamicportpolicyPolicy(ctx *Context, name string, args ObjectSwitchcontrollerDynamicportpolicyPolicyArgs, opts ...ResourceOption) (*ObjectSwitchcontrollerDynamicportpolicyPolicy, error)
public ObjectSwitchcontrollerDynamicportpolicyPolicy(string name, ObjectSwitchcontrollerDynamicportpolicyPolicyArgs args, CustomResourceOptions? opts = null)
public ObjectSwitchcontrollerDynamicportpolicyPolicy(String name, ObjectSwitchcontrollerDynamicportpolicyPolicyArgs args)
public ObjectSwitchcontrollerDynamicportpolicyPolicy(String name, ObjectSwitchcontrollerDynamicportpolicyPolicyArgs args, CustomResourceOptions options)
type: fortimanager:ObjectSwitchcontrollerDynamicportpolicyPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ObjectSwitchcontrollerDynamicportpolicyPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ObjectSwitchcontrollerDynamicportpolicyPolicyInitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectSwitchcontrollerDynamicportpolicyPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectSwitchcontrollerDynamicportpolicyPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ObjectSwitchcontrollerDynamicportpolicyPolicyArgs
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 objectSwitchcontrollerDynamicportpolicyPolicyResource = new Fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicy("objectSwitchcontrollerDynamicportpolicyPolicyResource", new()
{
    DynamicPortPolicy = "string",
    InterfaceTags = new[]
    {
        "string",
    },
    N8021x = "string",
    Description = "string",
    BouncePortLink = "string",
    Family = "string",
    Host = "string",
    HwVendor = "string",
    Adom = "string",
    Category = "string",
    LldpProfile = "string",
    Mac = "string",
    Name = "string",
    ObjectSwitchcontrollerDynamicportpolicyPolicyId = "string",
    QosPolicy = "string",
    Scopetype = "string",
    Status = "string",
    Type = "string",
    VlanPolicy = "string",
});
Copy
example, err := fortimanager.NewObjectSwitchcontrollerDynamicportpolicyPolicy(ctx, "objectSwitchcontrollerDynamicportpolicyPolicyResource", &fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicyArgs{
DynamicPortPolicy: pulumi.String("string"),
InterfaceTags: pulumi.StringArray{
pulumi.String("string"),
},
N8021x: pulumi.String("string"),
Description: pulumi.String("string"),
BouncePortLink: pulumi.String("string"),
Family: pulumi.String("string"),
Host: pulumi.String("string"),
HwVendor: pulumi.String("string"),
Adom: pulumi.String("string"),
Category: pulumi.String("string"),
LldpProfile: pulumi.String("string"),
Mac: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectSwitchcontrollerDynamicportpolicyPolicyId: pulumi.String("string"),
QosPolicy: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Status: pulumi.String("string"),
Type: pulumi.String("string"),
VlanPolicy: pulumi.String("string"),
})
Copy
var objectSwitchcontrollerDynamicportpolicyPolicyResource = new ObjectSwitchcontrollerDynamicportpolicyPolicy("objectSwitchcontrollerDynamicportpolicyPolicyResource", ObjectSwitchcontrollerDynamicportpolicyPolicyArgs.builder()
    .dynamicPortPolicy("string")
    .interfaceTags("string")
    .n8021x("string")
    .description("string")
    .bouncePortLink("string")
    .family("string")
    .host("string")
    .hwVendor("string")
    .adom("string")
    .category("string")
    .lldpProfile("string")
    .mac("string")
    .name("string")
    .objectSwitchcontrollerDynamicportpolicyPolicyId("string")
    .qosPolicy("string")
    .scopetype("string")
    .status("string")
    .type("string")
    .vlanPolicy("string")
    .build());
Copy
object_switchcontroller_dynamicportpolicy_policy_resource = fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicy("objectSwitchcontrollerDynamicportpolicyPolicyResource",
    dynamic_port_policy="string",
    interface_tags=["string"],
    n8021x="string",
    description="string",
    bounce_port_link="string",
    family="string",
    host="string",
    hw_vendor="string",
    adom="string",
    category="string",
    lldp_profile="string",
    mac="string",
    name="string",
    object_switchcontroller_dynamicportpolicy_policy_id="string",
    qos_policy="string",
    scopetype="string",
    status="string",
    type="string",
    vlan_policy="string")
Copy
const objectSwitchcontrollerDynamicportpolicyPolicyResource = new fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicy("objectSwitchcontrollerDynamicportpolicyPolicyResource", {
    dynamicPortPolicy: "string",
    interfaceTags: ["string"],
    n8021x: "string",
    description: "string",
    bouncePortLink: "string",
    family: "string",
    host: "string",
    hwVendor: "string",
    adom: "string",
    category: "string",
    lldpProfile: "string",
    mac: "string",
    name: "string",
    objectSwitchcontrollerDynamicportpolicyPolicyId: "string",
    qosPolicy: "string",
    scopetype: "string",
    status: "string",
    type: "string",
    vlanPolicy: "string",
});
Copy
type: fortimanager:ObjectSwitchcontrollerDynamicportpolicyPolicy
properties:
    adom: string
    bouncePortLink: string
    category: string
    description: string
    dynamicPortPolicy: string
    family: string
    host: string
    hwVendor: string
    interfaceTags:
        - string
    lldpProfile: string
    mac: string
    n8021x: string
    name: string
    objectSwitchcontrollerDynamicportpolicyPolicyId: string
    qosPolicy: string
    scopetype: string
    status: string
    type: string
    vlanPolicy: string
Copy

ObjectSwitchcontrollerDynamicportpolicyPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ObjectSwitchcontrollerDynamicportpolicyPolicy resource accepts the following input properties:

DynamicPortPolicy This property is required. string
Dynamic Port Policy.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
BouncePortLink string
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
Match policy based on family.
Host string
Match policy based on host.
HwVendor string
Match policy based on hardware vendor.
InterfaceTags List<string>
Match policy based on the FortiSwitch interface object tags.
LldpProfile string
LLDP profile to be applied when using this policy.
Mac string
Match policy based on MAC address.
N8021x string
802.1x security policy to be applied when using this policy.
Name string
Policy name.
ObjectSwitchcontrollerDynamicportpolicyPolicyId string
an identifier for the resource with format {{name}}.
QosPolicy string
QoS policy to be applied when using this policy.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable policy. Valid values: disable, enable.
Type string
Match policy based on type.
VlanPolicy string
VLAN policy to be applied when using this policy.
DynamicPortPolicy This property is required. string
Dynamic Port Policy.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
BouncePortLink string
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
Match policy based on family.
Host string
Match policy based on host.
HwVendor string
Match policy based on hardware vendor.
InterfaceTags []string
Match policy based on the FortiSwitch interface object tags.
LldpProfile string
LLDP profile to be applied when using this policy.
Mac string
Match policy based on MAC address.
N8021x string
802.1x security policy to be applied when using this policy.
Name string
Policy name.
ObjectSwitchcontrollerDynamicportpolicyPolicyId string
an identifier for the resource with format {{name}}.
QosPolicy string
QoS policy to be applied when using this policy.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable policy. Valid values: disable, enable.
Type string
Match policy based on type.
VlanPolicy string
VLAN policy to be applied when using this policy.
dynamicPortPolicy This property is required. String
Dynamic Port Policy.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bouncePortLink String
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
Match policy based on family.
host String
Match policy based on host.
hwVendor String
Match policy based on hardware vendor.
interfaceTags List<String>
Match policy based on the FortiSwitch interface object tags.
lldpProfile String
LLDP profile to be applied when using this policy.
mac String
Match policy based on MAC address.
n8021x String
802.1x security policy to be applied when using this policy.
name String
Policy name.
objectSwitchcontrollerDynamicportpolicyPolicyId String
an identifier for the resource with format {{name}}.
qosPolicy String
QoS policy to be applied when using this policy.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable policy. Valid values: disable, enable.
type String
Match policy based on type.
vlanPolicy String
VLAN policy to be applied when using this policy.
dynamicPortPolicy This property is required. string
Dynamic Port Policy.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bouncePortLink string
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
Match policy based on family.
host string
Match policy based on host.
hwVendor string
Match policy based on hardware vendor.
interfaceTags string[]
Match policy based on the FortiSwitch interface object tags.
lldpProfile string
LLDP profile to be applied when using this policy.
mac string
Match policy based on MAC address.
n8021x string
802.1x security policy to be applied when using this policy.
name string
Policy name.
objectSwitchcontrollerDynamicportpolicyPolicyId string
an identifier for the resource with format {{name}}.
qosPolicy string
QoS policy to be applied when using this policy.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status string
Enable/disable policy. Valid values: disable, enable.
type string
Match policy based on type.
vlanPolicy string
VLAN policy to be applied when using this policy.
dynamic_port_policy This property is required. str
Dynamic Port Policy.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bounce_port_link str
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
Match policy based on family.
host str
Match policy based on host.
hw_vendor str
Match policy based on hardware vendor.
interface_tags Sequence[str]
Match policy based on the FortiSwitch interface object tags.
lldp_profile str
LLDP profile to be applied when using this policy.
mac str
Match policy based on MAC address.
n8021x str
802.1x security policy to be applied when using this policy.
name str
Policy name.
object_switchcontroller_dynamicportpolicy_policy_id str
an identifier for the resource with format {{name}}.
qos_policy str
QoS policy to be applied when using this policy.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status str
Enable/disable policy. Valid values: disable, enable.
type str
Match policy based on type.
vlan_policy str
VLAN policy to be applied when using this policy.
dynamicPortPolicy This property is required. String
Dynamic Port Policy.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bouncePortLink String
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
Match policy based on family.
host String
Match policy based on host.
hwVendor String
Match policy based on hardware vendor.
interfaceTags List<String>
Match policy based on the FortiSwitch interface object tags.
lldpProfile String
LLDP profile to be applied when using this policy.
mac String
Match policy based on MAC address.
n8021x String
802.1x security policy to be applied when using this policy.
name String
Policy name.
objectSwitchcontrollerDynamicportpolicyPolicyId String
an identifier for the resource with format {{name}}.
qosPolicy String
QoS policy to be applied when using this policy.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable policy. Valid values: disable, enable.
type String
Match policy based on type.
vlanPolicy String
VLAN policy to be applied when using this policy.

Outputs

All input properties are implicitly available as output properties. Additionally, the ObjectSwitchcontrollerDynamicportpolicyPolicy 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 ObjectSwitchcontrollerDynamicportpolicyPolicy Resource

Get an existing ObjectSwitchcontrollerDynamicportpolicyPolicy 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?: ObjectSwitchcontrollerDynamicportpolicyPolicyState, opts?: CustomResourceOptions): ObjectSwitchcontrollerDynamicportpolicyPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        bounce_port_link: Optional[str] = None,
        category: Optional[str] = None,
        description: Optional[str] = None,
        dynamic_port_policy: Optional[str] = None,
        family: Optional[str] = None,
        host: Optional[str] = None,
        hw_vendor: Optional[str] = None,
        interface_tags: Optional[Sequence[str]] = None,
        lldp_profile: Optional[str] = None,
        mac: Optional[str] = None,
        n8021x: Optional[str] = None,
        name: Optional[str] = None,
        object_switchcontroller_dynamicportpolicy_policy_id: Optional[str] = None,
        qos_policy: Optional[str] = None,
        scopetype: Optional[str] = None,
        status: Optional[str] = None,
        type: Optional[str] = None,
        vlan_policy: Optional[str] = None) -> ObjectSwitchcontrollerDynamicportpolicyPolicy
func GetObjectSwitchcontrollerDynamicportpolicyPolicy(ctx *Context, name string, id IDInput, state *ObjectSwitchcontrollerDynamicportpolicyPolicyState, opts ...ResourceOption) (*ObjectSwitchcontrollerDynamicportpolicyPolicy, error)
public static ObjectSwitchcontrollerDynamicportpolicyPolicy Get(string name, Input<string> id, ObjectSwitchcontrollerDynamicportpolicyPolicyState? state, CustomResourceOptions? opts = null)
public static ObjectSwitchcontrollerDynamicportpolicyPolicy get(String name, Output<String> id, ObjectSwitchcontrollerDynamicportpolicyPolicyState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectSwitchcontrollerDynamicportpolicyPolicy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
BouncePortLink string
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.
DynamicPortPolicy string
Dynamic Port Policy.
Family string
Match policy based on family.
Host string
Match policy based on host.
HwVendor string
Match policy based on hardware vendor.
InterfaceTags List<string>
Match policy based on the FortiSwitch interface object tags.
LldpProfile string
LLDP profile to be applied when using this policy.
Mac string
Match policy based on MAC address.
N8021x string
802.1x security policy to be applied when using this policy.
Name string
Policy name.
ObjectSwitchcontrollerDynamicportpolicyPolicyId string
an identifier for the resource with format {{name}}.
QosPolicy string
QoS policy to be applied when using this policy.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable policy. Valid values: disable, enable.
Type string
Match policy based on type.
VlanPolicy string
VLAN policy to be applied when using this policy.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
BouncePortLink string
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.
DynamicPortPolicy string
Dynamic Port Policy.
Family string
Match policy based on family.
Host string
Match policy based on host.
HwVendor string
Match policy based on hardware vendor.
InterfaceTags []string
Match policy based on the FortiSwitch interface object tags.
LldpProfile string
LLDP profile to be applied when using this policy.
Mac string
Match policy based on MAC address.
N8021x string
802.1x security policy to be applied when using this policy.
Name string
Policy name.
ObjectSwitchcontrollerDynamicportpolicyPolicyId string
an identifier for the resource with format {{name}}.
QosPolicy string
QoS policy to be applied when using this policy.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable policy. Valid values: disable, enable.
Type string
Match policy based on type.
VlanPolicy string
VLAN policy to be applied when using this policy.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bouncePortLink String
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.
dynamicPortPolicy String
Dynamic Port Policy.
family String
Match policy based on family.
host String
Match policy based on host.
hwVendor String
Match policy based on hardware vendor.
interfaceTags List<String>
Match policy based on the FortiSwitch interface object tags.
lldpProfile String
LLDP profile to be applied when using this policy.
mac String
Match policy based on MAC address.
n8021x String
802.1x security policy to be applied when using this policy.
name String
Policy name.
objectSwitchcontrollerDynamicportpolicyPolicyId String
an identifier for the resource with format {{name}}.
qosPolicy String
QoS policy to be applied when using this policy.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable policy. Valid values: disable, enable.
type String
Match policy based on type.
vlanPolicy String
VLAN policy to be applied when using this policy.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bouncePortLink string
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.
dynamicPortPolicy string
Dynamic Port Policy.
family string
Match policy based on family.
host string
Match policy based on host.
hwVendor string
Match policy based on hardware vendor.
interfaceTags string[]
Match policy based on the FortiSwitch interface object tags.
lldpProfile string
LLDP profile to be applied when using this policy.
mac string
Match policy based on MAC address.
n8021x string
802.1x security policy to be applied when using this policy.
name string
Policy name.
objectSwitchcontrollerDynamicportpolicyPolicyId string
an identifier for the resource with format {{name}}.
qosPolicy string
QoS policy to be applied when using this policy.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status string
Enable/disable policy. Valid values: disable, enable.
type string
Match policy based on type.
vlanPolicy string
VLAN policy to be applied when using this policy.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bounce_port_link str
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.
dynamic_port_policy str
Dynamic Port Policy.
family str
Match policy based on family.
host str
Match policy based on host.
hw_vendor str
Match policy based on hardware vendor.
interface_tags Sequence[str]
Match policy based on the FortiSwitch interface object tags.
lldp_profile str
LLDP profile to be applied when using this policy.
mac str
Match policy based on MAC address.
n8021x str
802.1x security policy to be applied when using this policy.
name str
Policy name.
object_switchcontroller_dynamicportpolicy_policy_id str
an identifier for the resource with format {{name}}.
qos_policy str
QoS policy to be applied when using this policy.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status str
Enable/disable policy. Valid values: disable, enable.
type str
Match policy based on type.
vlan_policy str
VLAN policy to be applied when using this policy.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bouncePortLink String
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.
dynamicPortPolicy String
Dynamic Port Policy.
family String
Match policy based on family.
host String
Match policy based on host.
hwVendor String
Match policy based on hardware vendor.
interfaceTags List<String>
Match policy based on the FortiSwitch interface object tags.
lldpProfile String
LLDP profile to be applied when using this policy.
mac String
Match policy based on MAC address.
n8021x String
802.1x security policy to be applied when using this policy.
name String
Policy name.
objectSwitchcontrollerDynamicportpolicyPolicyId String
an identifier for the resource with format {{name}}.
qosPolicy String
QoS policy to be applied when using this policy.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable policy. Valid values: disable, enable.
type String
Match policy based on type.
vlanPolicy String
VLAN policy to be applied when using this policy.

Import

ObjectSwitchController DynamicPortPolicyPolicy can be imported using any of these accepted formats:

Set import_options = [“dynamic_port_policy=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectSwitchcontrollerDynamicportpolicyPolicy:ObjectSwitchcontrollerDynamicportpolicyPolicy labelname {{name}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.