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

fortimanager.ObjectSwitchcontrollerManagedswitchVlan

Explore with Pulumi AI

Configure VLAN assignment priority.

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

Create ObjectSwitchcontrollerManagedswitchVlan Resource

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

Constructor syntax

new ObjectSwitchcontrollerManagedswitchVlan(name: string, args: ObjectSwitchcontrollerManagedswitchVlanArgs, opts?: CustomResourceOptions);
@overload
def ObjectSwitchcontrollerManagedswitchVlan(resource_name: str,
                                            args: ObjectSwitchcontrollerManagedswitchVlanInitArgs,
                                            opts: Optional[ResourceOptions] = None)

@overload
def ObjectSwitchcontrollerManagedswitchVlan(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            managed_switch: Optional[str] = None,
                                            adom: Optional[str] = None,
                                            assignment_priority: Optional[float] = None,
                                            object_switchcontroller_managedswitch_vlan_id: Optional[str] = None,
                                            scopetype: Optional[str] = None,
                                            vlan_name: Optional[str] = None)
func NewObjectSwitchcontrollerManagedswitchVlan(ctx *Context, name string, args ObjectSwitchcontrollerManagedswitchVlanArgs, opts ...ResourceOption) (*ObjectSwitchcontrollerManagedswitchVlan, error)
public ObjectSwitchcontrollerManagedswitchVlan(string name, ObjectSwitchcontrollerManagedswitchVlanArgs args, CustomResourceOptions? opts = null)
public ObjectSwitchcontrollerManagedswitchVlan(String name, ObjectSwitchcontrollerManagedswitchVlanArgs args)
public ObjectSwitchcontrollerManagedswitchVlan(String name, ObjectSwitchcontrollerManagedswitchVlanArgs args, CustomResourceOptions options)
type: fortimanager:ObjectSwitchcontrollerManagedswitchVlan
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. ObjectSwitchcontrollerManagedswitchVlanArgs
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. ObjectSwitchcontrollerManagedswitchVlanInitArgs
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. ObjectSwitchcontrollerManagedswitchVlanArgs
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. ObjectSwitchcontrollerManagedswitchVlanArgs
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. ObjectSwitchcontrollerManagedswitchVlanArgs
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 objectSwitchcontrollerManagedswitchVlanResource = new Fortimanager.ObjectSwitchcontrollerManagedswitchVlan("objectSwitchcontrollerManagedswitchVlanResource", new()
{
    ManagedSwitch = "string",
    Adom = "string",
    AssignmentPriority = 0,
    ObjectSwitchcontrollerManagedswitchVlanId = "string",
    Scopetype = "string",
    VlanName = "string",
});
Copy
example, err := fortimanager.NewObjectSwitchcontrollerManagedswitchVlan(ctx, "objectSwitchcontrollerManagedswitchVlanResource", &fortimanager.ObjectSwitchcontrollerManagedswitchVlanArgs{
ManagedSwitch: pulumi.String("string"),
Adom: pulumi.String("string"),
AssignmentPriority: pulumi.Float64(0),
ObjectSwitchcontrollerManagedswitchVlanId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
VlanName: pulumi.String("string"),
})
Copy
var objectSwitchcontrollerManagedswitchVlanResource = new ObjectSwitchcontrollerManagedswitchVlan("objectSwitchcontrollerManagedswitchVlanResource", ObjectSwitchcontrollerManagedswitchVlanArgs.builder()
    .managedSwitch("string")
    .adom("string")
    .assignmentPriority(0)
    .objectSwitchcontrollerManagedswitchVlanId("string")
    .scopetype("string")
    .vlanName("string")
    .build());
Copy
object_switchcontroller_managedswitch_vlan_resource = fortimanager.ObjectSwitchcontrollerManagedswitchVlan("objectSwitchcontrollerManagedswitchVlanResource",
    managed_switch="string",
    adom="string",
    assignment_priority=0,
    object_switchcontroller_managedswitch_vlan_id="string",
    scopetype="string",
    vlan_name="string")
Copy
const objectSwitchcontrollerManagedswitchVlanResource = new fortimanager.ObjectSwitchcontrollerManagedswitchVlan("objectSwitchcontrollerManagedswitchVlanResource", {
    managedSwitch: "string",
    adom: "string",
    assignmentPriority: 0,
    objectSwitchcontrollerManagedswitchVlanId: "string",
    scopetype: "string",
    vlanName: "string",
});
Copy
type: fortimanager:ObjectSwitchcontrollerManagedswitchVlan
properties:
    adom: string
    assignmentPriority: 0
    managedSwitch: string
    objectSwitchcontrollerManagedswitchVlanId: string
    scopetype: string
    vlanName: string
Copy

ObjectSwitchcontrollerManagedswitchVlan 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 ObjectSwitchcontrollerManagedswitchVlan resource accepts the following input properties:

ManagedSwitch This property is required. string
Managed Switch.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
AssignmentPriority double
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
ObjectSwitchcontrollerManagedswitchVlanId string
an identifier for the resource with format {{vlan_name}}.
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.
VlanName string
VLAN name.
ManagedSwitch This property is required. string
Managed Switch.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
AssignmentPriority float64
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
ObjectSwitchcontrollerManagedswitchVlanId string
an identifier for the resource with format {{vlan_name}}.
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.
VlanName string
VLAN name.
managedSwitch This property is required. String
Managed Switch.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
assignmentPriority Double
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
objectSwitchcontrollerManagedswitchVlanId String
an identifier for the resource with format {{vlan_name}}.
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.
vlanName String
VLAN name.
managedSwitch This property is required. string
Managed Switch.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
assignmentPriority number
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
objectSwitchcontrollerManagedswitchVlanId string
an identifier for the resource with format {{vlan_name}}.
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.
vlanName string
VLAN name.
managed_switch This property is required. str
Managed Switch.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
assignment_priority float
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
object_switchcontroller_managedswitch_vlan_id str
an identifier for the resource with format {{vlan_name}}.
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.
vlan_name str
VLAN name.
managedSwitch This property is required. String
Managed Switch.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
assignmentPriority Number
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
objectSwitchcontrollerManagedswitchVlanId String
an identifier for the resource with format {{vlan_name}}.
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.
vlanName String
VLAN name.

Outputs

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

Get an existing ObjectSwitchcontrollerManagedswitchVlan 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?: ObjectSwitchcontrollerManagedswitchVlanState, opts?: CustomResourceOptions): ObjectSwitchcontrollerManagedswitchVlan
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        assignment_priority: Optional[float] = None,
        managed_switch: Optional[str] = None,
        object_switchcontroller_managedswitch_vlan_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        vlan_name: Optional[str] = None) -> ObjectSwitchcontrollerManagedswitchVlan
func GetObjectSwitchcontrollerManagedswitchVlan(ctx *Context, name string, id IDInput, state *ObjectSwitchcontrollerManagedswitchVlanState, opts ...ResourceOption) (*ObjectSwitchcontrollerManagedswitchVlan, error)
public static ObjectSwitchcontrollerManagedswitchVlan Get(string name, Input<string> id, ObjectSwitchcontrollerManagedswitchVlanState? state, CustomResourceOptions? opts = null)
public static ObjectSwitchcontrollerManagedswitchVlan get(String name, Output<String> id, ObjectSwitchcontrollerManagedswitchVlanState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectSwitchcontrollerManagedswitchVlan    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.
AssignmentPriority double
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
ManagedSwitch string
Managed Switch.
ObjectSwitchcontrollerManagedswitchVlanId string
an identifier for the resource with format {{vlan_name}}.
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.
VlanName string
VLAN name.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
AssignmentPriority float64
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
ManagedSwitch string
Managed Switch.
ObjectSwitchcontrollerManagedswitchVlanId string
an identifier for the resource with format {{vlan_name}}.
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.
VlanName string
VLAN name.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
assignmentPriority Double
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
managedSwitch String
Managed Switch.
objectSwitchcontrollerManagedswitchVlanId String
an identifier for the resource with format {{vlan_name}}.
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.
vlanName String
VLAN name.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
assignmentPriority number
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
managedSwitch string
Managed Switch.
objectSwitchcontrollerManagedswitchVlanId string
an identifier for the resource with format {{vlan_name}}.
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.
vlanName string
VLAN name.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
assignment_priority float
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
managed_switch str
Managed Switch.
object_switchcontroller_managedswitch_vlan_id str
an identifier for the resource with format {{vlan_name}}.
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.
vlan_name str
VLAN name.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
assignmentPriority Number
802.1x Radius (Tunnel-Private-Group-Id) VLANID assign-by-name priority. A smaller value has a higher priority.
managedSwitch String
Managed Switch.
objectSwitchcontrollerManagedswitchVlanId String
an identifier for the resource with format {{vlan_name}}.
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.
vlanName String
VLAN name.

Import

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

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectSwitchcontrollerManagedswitchVlan:ObjectSwitchcontrollerManagedswitchVlan labelname {{vlan_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.