1. Packages
  2. Routeros Provider
  3. API Docs
  4. InterfaceBridgeVlan
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

routeros.InterfaceBridgeVlan

Explore with Pulumi AI

routeros logo
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

    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.
    VlanIds 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
    InterfaceBridgeVlanId string
    The ID of this resource.
    MvrpForbiddens 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.
    VlanIds []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
    InterfaceBridgeVlanId string
    The ID of this resource.
    MvrpForbiddens []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.
    vlanIds 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
    interfaceBridgeVlanId String
    The ID of this resource.
    mvrpForbiddens 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.
    vlanIds 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
    interfaceBridgeVlanId string
    The ID of this resource.
    mvrpForbiddens 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_vlan_id str
    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.
    vlanIds 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
    interfaceBridgeVlanId String
    The ID of this resource.
    mvrpForbiddens 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:

    CurrentTaggeds List<string>
    CurrentUntaggeds 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.
    CurrentTaggeds []string
    CurrentUntaggeds []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.
    currentTaggeds List<String>
    currentUntaggeds 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.
    currentTaggeds string[]
    currentUntaggeds 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.
    currentTaggeds List<String>
    currentUntaggeds 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.
    The following state arguments are supported:
    Bridge string
    The bridge interface which the respective VLAN entry is intended for.
    Comment string
    CurrentTaggeds List<string>
    CurrentUntaggeds List<string>
    Disabled bool
    Dynamic bool
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    InterfaceBridgeVlanId string
    The ID of this resource.
    MvrpForbiddens 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
    VlanIds 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
    CurrentTaggeds []string
    CurrentUntaggeds []string
    Disabled bool
    Dynamic bool
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    InterfaceBridgeVlanId string
    The ID of this resource.
    MvrpForbiddens []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
    VlanIds []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
    currentTaggeds List<String>
    currentUntaggeds List<String>
    disabled Boolean
    dynamic Boolean
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    interfaceBridgeVlanId String
    The ID of this resource.
    mvrpForbiddens 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
    vlanIds 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
    currentTaggeds string[]
    currentUntaggeds string[]
    disabled boolean
    dynamic boolean
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    interfaceBridgeVlanId string
    The ID of this resource.
    mvrpForbiddens 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
    vlanIds 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_vlan_id str
    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
    currentTaggeds List<String>
    currentUntaggeds List<String>
    disabled Boolean
    dynamic Boolean
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    interfaceBridgeVlanId String
    The ID of this resource.
    mvrpForbiddens 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
    vlanIds 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.
    routeros logo
    routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros