routeros.InterfaceBridgeVlan
Explore with Pulumi AI
Example Usage
Create InterfaceBridgeVlan Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InterfaceBridgeVlan(name: string, args: InterfaceBridgeVlanArgs, opts?: CustomResourceOptions);
@overload
def InterfaceBridgeVlan(resource_name: str,
args: InterfaceBridgeVlanArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InterfaceBridgeVlan(resource_name: str,
opts: Optional[ResourceOptions] = None,
bridge: Optional[str] = None,
vlan_ids: Optional[Sequence[str]] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
___skip_: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
interface_bridge_vlan_id: Optional[str] = None,
mvrp_forbiddens: Optional[Sequence[str]] = None,
taggeds: Optional[Sequence[str]] = None,
untaggeds: Optional[Sequence[str]] = None)
func NewInterfaceBridgeVlan(ctx *Context, name string, args InterfaceBridgeVlanArgs, opts ...ResourceOption) (*InterfaceBridgeVlan, error)
public InterfaceBridgeVlan(string name, InterfaceBridgeVlanArgs args, CustomResourceOptions? opts = null)
public InterfaceBridgeVlan(String name, InterfaceBridgeVlanArgs args)
public InterfaceBridgeVlan(String name, InterfaceBridgeVlanArgs args, CustomResourceOptions options)
type: routeros:InterfaceBridgeVlan
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 InterfaceBridgeVlanArgs
- 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 InterfaceBridgeVlanArgs
- 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 InterfaceBridgeVlanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InterfaceBridgeVlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InterfaceBridgeVlanArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InterfaceBridgeVlan 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 InterfaceBridgeVlan resource accepts the following input properties:
- Bridge string
- The bridge interface which the respective VLAN entry is intended for.
- Vlan
Ids List<string> - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
. - Comment string
- Disabled bool
- Interface
Bridge stringVlan Id - The ID of this resource.
- Mvrp
Forbiddens List<string> - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- Taggeds List<string>
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- Untaggeds List<string>
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- Bridge string
- The bridge interface which the respective VLAN entry is intended for.
- Vlan
Ids []string - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
. - Comment string
- Disabled bool
- Interface
Bridge stringVlan Id - The ID of this resource.
- Mvrp
Forbiddens []string - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- Taggeds []string
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- Untaggeds []string
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- bridge String
- The bridge interface which the respective VLAN entry is intended for.
- vlan
Ids List<String> - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
. - ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- comment String
- disabled Boolean
- interface
Bridge StringVlan Id - The ID of this resource.
- mvrp
Forbiddens List<String> - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- taggeds List<String>
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- untaggeds List<String>
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
- bridge string
- The bridge interface which the respective VLAN entry is intended for.
- vlan
Ids string[] - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
. - ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- comment string
- disabled boolean
- interface
Bridge stringVlan Id - The ID of this resource.
- mvrp
Forbiddens string[] - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- taggeds string[]
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- untaggeds string[]
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
- bridge str
- The bridge interface which the respective VLAN entry is intended for.
- vlan_
ids Sequence[str] - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
. - ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ str - A set of transformations for field names. This is an internal service field, setting a value is not required.
- comment str
- disabled bool
- interface_
bridge_ strvlan_ id - The ID of this resource.
- mvrp_
forbiddens Sequence[str] - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- taggeds Sequence[str]
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- untaggeds Sequence[str]
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
- bridge String
- The bridge interface which the respective VLAN entry is intended for.
- vlan
Ids List<String> - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
. - ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- comment String
- disabled Boolean
- interface
Bridge StringVlan Id - The ID of this resource.
- mvrp
Forbiddens List<String> - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- taggeds List<String>
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- untaggeds List<String>
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
Outputs
All input properties are implicitly available as output properties. Additionally, the InterfaceBridgeVlan resource produces the following output properties:
- Current
Taggeds List<string> - Current
Untaggeds List<string> - Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Id string
- The provider-assigned unique ID for this managed resource.
- Current
Taggeds []string - Current
Untaggeds []string - Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Id string
- The provider-assigned unique ID for this managed resource.
- current
Taggeds List<String> - current
Untaggeds List<String> - dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- id String
- The provider-assigned unique ID for this managed resource.
- current
Taggeds string[] - current
Untaggeds string[] - dynamic boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- id string
- The provider-assigned unique ID for this managed resource.
- current_
taggeds Sequence[str] - current_
untaggeds Sequence[str] - dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- id str
- The provider-assigned unique ID for this managed resource.
- current
Taggeds List<String> - current
Untaggeds List<String> - dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing InterfaceBridgeVlan Resource
Get an existing InterfaceBridgeVlan 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?: InterfaceBridgeVlanState, opts?: CustomResourceOptions): InterfaceBridgeVlan
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
___skip_: Optional[str] = None,
bridge: Optional[str] = None,
comment: Optional[str] = None,
current_taggeds: Optional[Sequence[str]] = None,
current_untaggeds: Optional[Sequence[str]] = None,
disabled: Optional[bool] = None,
dynamic: Optional[bool] = None,
interface_bridge_vlan_id: Optional[str] = None,
mvrp_forbiddens: Optional[Sequence[str]] = None,
taggeds: Optional[Sequence[str]] = None,
untaggeds: Optional[Sequence[str]] = None,
vlan_ids: Optional[Sequence[str]] = None) -> InterfaceBridgeVlan
func GetInterfaceBridgeVlan(ctx *Context, name string, id IDInput, state *InterfaceBridgeVlanState, opts ...ResourceOption) (*InterfaceBridgeVlan, error)
public static InterfaceBridgeVlan Get(string name, Input<string> id, InterfaceBridgeVlanState? state, CustomResourceOptions? opts = null)
public static InterfaceBridgeVlan get(String name, Output<String> id, InterfaceBridgeVlanState state, CustomResourceOptions options)
resources: _: type: routeros:InterfaceBridgeVlan get: id: ${id}
- 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.
- Bridge string
- The bridge interface which the respective VLAN entry is intended for.
- Comment string
- Current
Taggeds List<string> - Current
Untaggeds List<string> - Disabled bool
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Interface
Bridge stringVlan Id - The ID of this resource.
- Mvrp
Forbiddens List<string> - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- Taggeds List<string>
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- Untaggeds List<string>
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
- Vlan
Ids List<string> - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
. - ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- Bridge string
- The bridge interface which the respective VLAN entry is intended for.
- Comment string
- Current
Taggeds []string - Current
Untaggeds []string - Disabled bool
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Interface
Bridge stringVlan Id - The ID of this resource.
- Mvrp
Forbiddens []string - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- Taggeds []string
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- Untaggeds []string
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
- Vlan
Ids []string - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
. - ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- bridge String
- The bridge interface which the respective VLAN entry is intended for.
- comment String
- current
Taggeds List<String> - current
Untaggeds List<String> - disabled Boolean
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- interface
Bridge StringVlan Id - The ID of this resource.
- mvrp
Forbiddens List<String> - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- taggeds List<String>
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- untaggeds List<String>
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
- vlan
Ids List<String> - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- bridge string
- The bridge interface which the respective VLAN entry is intended for.
- comment string
- current
Taggeds string[] - current
Untaggeds string[] - disabled boolean
- dynamic boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- interface
Bridge stringVlan Id - The ID of this resource.
- mvrp
Forbiddens string[] - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- taggeds string[]
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- untaggeds string[]
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
- vlan
Ids string[] - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ str - A set of transformations for field names. This is an internal service field, setting a value is not required.
- bridge str
- The bridge interface which the respective VLAN entry is intended for.
- comment str
- current_
taggeds Sequence[str] - current_
untaggeds Sequence[str] - disabled bool
- dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- interface_
bridge_ strvlan_ id - The ID of this resource.
- mvrp_
forbiddens Sequence[str] - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- taggeds Sequence[str]
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- untaggeds Sequence[str]
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
- vlan_
ids Sequence[str] - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- bridge String
- The bridge interface which the respective VLAN entry is intended for.
- comment String
- current
Taggeds List<String> - current
Untaggeds List<String> - disabled Boolean
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- interface
Bridge StringVlan Id - The ID of this resource.
- mvrp
Forbiddens List<String> - Ports that ignore all MRP messages and remains Not Registered (MT), as well as disables applicant from declaring specific VLAN ID (available since RouterOS 7.15).
- taggeds List<String>
- Interface list with a VLAN tag adding action in egress. This setting accepts comma separated values. E.g. tagged=ether1,ether2.
- untaggeds List<String>
- Interface list with a VLAN tag removing action in egress. This setting accepts comma separated values. E.g. untagged=ether3,ether4
- vlan
Ids List<String> - The list of VLAN IDs for certain port configuration. This setting accepts VLAN ID range as well as comma separated values. E.g.
vlan-ids=["100-115","120","122","128-130"]
.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/interface/bridge/vlan get [print show-ids]]
$ pulumi import routeros:index/interfaceBridgeVlan:InterfaceBridgeVlan bridge_vlan "*0"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routeros
Terraform Provider.