1. Packages
  2. Packages
  3. Bytepluscc Provider
  4. API Docs
  5. directconnect
  6. VirtualInterface
Viewing docs for bytepluscc v0.0.31
published on Monday, Jun 1, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.31
published on Monday, Jun 1, 2026 by Byteplus

    The virtual interface is built on top of a physical dedicated line. It is a logical interface that enables the local data center (IDC) to connect to different private networks in the cloud via the physical dedicated line. Supports both static routing and BGP routing. This operation uses BGP routing.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const directConnectVirtualInterfaceDemo = new bytepluscc.directconnect.VirtualInterface("DirectConnectVirtualInterfaceDemo", {
        localIpv6Ip: "2408:xxxx:cc:400::1/64",
        description: "生产环境虚拟接口",
        directConnectGatewayId: "dcg-****",
        directConnectConnectionId: "dcc-****",
        peerIp: "192.168.100.2/30",
        enableBfdEcho: false,
        enableNqa: false,
        bfdDetectMultiplier: 3,
        peerIpv6Ip: "2408:xxxx:cc:400::2/64",
        routeType: "BGP",
        virtualInterfaceName: "prod-virtual-interface",
        localIp: "192.168.100.1/30",
        enableBfd: true,
        bandwidth: 50,
        vlanId: 2111,
        tags: [{
            value: "env",
            key: "test",
        }],
        bfdDetectInterval: 1000,
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    direct_connect_virtual_interface_demo = bytepluscc.directconnect.VirtualInterface("DirectConnectVirtualInterfaceDemo",
        local_ipv6_ip="2408:xxxx:cc:400::1/64",
        description="生产环境虚拟接口",
        direct_connect_gateway_id="dcg-****",
        direct_connect_connection_id="dcc-****",
        peer_ip="192.168.100.2/30",
        enable_bfd_echo=False,
        enable_nqa=False,
        bfd_detect_multiplier=3,
        peer_ipv6_ip="2408:xxxx:cc:400::2/64",
        route_type="BGP",
        virtual_interface_name="prod-virtual-interface",
        local_ip="192.168.100.1/30",
        enable_bfd=True,
        bandwidth=50,
        vlan_id=2111,
        tags=[{
            "value": "env",
            "key": "test",
        }],
        bfd_detect_interval=1000)
    
    package main
    
    import (
    	"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/directconnect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := directconnect.NewVirtualInterface(ctx, "DirectConnectVirtualInterfaceDemo", &directconnect.VirtualInterfaceArgs{
    			LocalIpv6Ip:               pulumi.String("2408:xxxx:cc:400::1/64"),
    			Description:               pulumi.String("生产环境虚拟接口"),
    			DirectConnectGatewayId:    pulumi.String("dcg-****"),
    			DirectConnectConnectionId: pulumi.String("dcc-****"),
    			PeerIp:                    pulumi.String("192.168.100.2/30"),
    			EnableBfdEcho:             pulumi.Bool(false),
    			EnableNqa:                 pulumi.Bool(false),
    			BfdDetectMultiplier:       pulumi.Int(3),
    			PeerIpv6Ip:                pulumi.String("2408:xxxx:cc:400::2/64"),
    			RouteType:                 pulumi.String("BGP"),
    			VirtualInterfaceName:      pulumi.String("prod-virtual-interface"),
    			LocalIp:                   pulumi.String("192.168.100.1/30"),
    			EnableBfd:                 pulumi.Bool(true),
    			Bandwidth:                 pulumi.Int(50),
    			VlanId:                    pulumi.Int(2111),
    			Tags: directconnect.VirtualInterfaceTagArray{
    				&directconnect.VirtualInterfaceTagArgs{
    					Value: pulumi.String("env"),
    					Key:   pulumi.String("test"),
    				},
    			},
    			BfdDetectInterval: pulumi.Int(1000),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
    
    return await Deployment.RunAsync(() => 
    {
        var directConnectVirtualInterfaceDemo = new Bytepluscc.Directconnect.VirtualInterface("DirectConnectVirtualInterfaceDemo", new()
        {
            LocalIpv6Ip = "2408:xxxx:cc:400::1/64",
            Description = "生产环境虚拟接口",
            DirectConnectGatewayId = "dcg-****",
            DirectConnectConnectionId = "dcc-****",
            PeerIp = "192.168.100.2/30",
            EnableBfdEcho = false,
            EnableNqa = false,
            BfdDetectMultiplier = 3,
            PeerIpv6Ip = "2408:xxxx:cc:400::2/64",
            RouteType = "BGP",
            VirtualInterfaceName = "prod-virtual-interface",
            LocalIp = "192.168.100.1/30",
            EnableBfd = true,
            Bandwidth = 50,
            VlanId = 2111,
            Tags = new[]
            {
                new Bytepluscc.Directconnect.Inputs.VirtualInterfaceTagArgs
                {
                    Value = "env",
                    Key = "test",
                },
            },
            BfdDetectInterval = 1000,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.directconnect.VirtualInterface;
    import com.byteplus.bytepluscc.directconnect.VirtualInterfaceArgs;
    import com.pulumi.bytepluscc.directconnect.inputs.VirtualInterfaceTagArgs;
    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 directConnectVirtualInterfaceDemo = new VirtualInterface("directConnectVirtualInterfaceDemo", VirtualInterfaceArgs.builder()
                .localIpv6Ip("2408:xxxx:cc:400::1/64")
                .description("生产环境虚拟接口")
                .directConnectGatewayId("dcg-****")
                .directConnectConnectionId("dcc-****")
                .peerIp("192.168.100.2/30")
                .enableBfdEcho(false)
                .enableNqa(false)
                .bfdDetectMultiplier(3)
                .peerIpv6Ip("2408:xxxx:cc:400::2/64")
                .routeType("BGP")
                .virtualInterfaceName("prod-virtual-interface")
                .localIp("192.168.100.1/30")
                .enableBfd(true)
                .bandwidth(50)
                .vlanId(2111)
                .tags(VirtualInterfaceTagArgs.builder()
                    .value("env")
                    .key("test")
                    .build())
                .bfdDetectInterval(1000)
                .build());
    
        }
    }
    
    resources:
      directConnectVirtualInterfaceDemo:
        type: bytepluscc:directconnect:VirtualInterface
        name: DirectConnectVirtualInterfaceDemo
        properties:
          localIpv6Ip: 2408:xxxx:cc:400::1/64
          description: 生产环境虚拟接口
          directConnectGatewayId: dcg-****
          directConnectConnectionId: dcc-****
          peerIp: 192.168.100.2/30
          enableBfdEcho: false
          enableNqa: false
          bfdDetectMultiplier: 3
          peerIpv6Ip: 2408:xxxx:cc:400::2/64
          routeType: BGP
          virtualInterfaceName: prod-virtual-interface
          localIp: 192.168.100.1/30
          enableBfd: true
          bandwidth: 50
          vlanId: 2111
          tags:
            - value: env
              key: test
          bfdDetectInterval: 1000
    
    Example coming soon!
    

    Create VirtualInterface Resource

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

    Constructor syntax

    new VirtualInterface(name: string, args: VirtualInterfaceArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualInterface(resource_name: str,
                         args: VirtualInterfaceArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualInterface(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         direct_connect_gateway_id: Optional[str] = None,
                         vlan_id: Optional[int] = None,
                         peer_ip: Optional[str] = None,
                         local_ip: Optional[str] = None,
                         direct_connect_connection_id: Optional[str] = None,
                         enable_nqa: Optional[bool] = None,
                         nqa_detect_multiplier: Optional[int] = None,
                         enable_bfd_echo: Optional[bool] = None,
                         bandwidth: Optional[int] = None,
                         description: Optional[str] = None,
                         local_ipv6_ip: Optional[str] = None,
                         nqa_detect_interval: Optional[int] = None,
                         enable_bfd: Optional[bool] = None,
                         bfd_detect_multiplier: Optional[int] = None,
                         peer_ipv6_ip: Optional[str] = None,
                         route_type: Optional[str] = None,
                         tags: Optional[Sequence[VirtualInterfaceTagArgs]] = None,
                         virtual_interface_name: Optional[str] = None,
                         bfd_detect_interval: Optional[int] = None)
    func NewVirtualInterface(ctx *Context, name string, args VirtualInterfaceArgs, opts ...ResourceOption) (*VirtualInterface, error)
    public VirtualInterface(string name, VirtualInterfaceArgs args, CustomResourceOptions? opts = null)
    public VirtualInterface(String name, VirtualInterfaceArgs args)
    public VirtualInterface(String name, VirtualInterfaceArgs args, CustomResourceOptions options)
    
    type: bytepluscc:directconnect:VirtualInterface
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "bytepluscc_directconnect_virtualinterface" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VirtualInterfaceArgs
    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 VirtualInterfaceArgs
    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 VirtualInterfaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualInterfaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualInterfaceArgs
    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 virtualInterfaceResource = new Bytepluscc.Directconnect.VirtualInterface("virtualInterfaceResource", new()
    {
        DirectConnectGatewayId = "string",
        VlanId = 0,
        PeerIp = "string",
        LocalIp = "string",
        DirectConnectConnectionId = "string",
        EnableNqa = false,
        NqaDetectMultiplier = 0,
        EnableBfdEcho = false,
        Bandwidth = 0,
        Description = "string",
        LocalIpv6Ip = "string",
        NqaDetectInterval = 0,
        EnableBfd = false,
        BfdDetectMultiplier = 0,
        PeerIpv6Ip = "string",
        RouteType = "string",
        Tags = new[]
        {
            new Bytepluscc.Directconnect.Inputs.VirtualInterfaceTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        VirtualInterfaceName = "string",
        BfdDetectInterval = 0,
    });
    
    example, err := directconnect.NewVirtualInterface(ctx, "virtualInterfaceResource", &directconnect.VirtualInterfaceArgs{
    	DirectConnectGatewayId:    pulumi.String("string"),
    	VlanId:                    pulumi.Int(0),
    	PeerIp:                    pulumi.String("string"),
    	LocalIp:                   pulumi.String("string"),
    	DirectConnectConnectionId: pulumi.String("string"),
    	EnableNqa:                 pulumi.Bool(false),
    	NqaDetectMultiplier:       pulumi.Int(0),
    	EnableBfdEcho:             pulumi.Bool(false),
    	Bandwidth:                 pulumi.Int(0),
    	Description:               pulumi.String("string"),
    	LocalIpv6Ip:               pulumi.String("string"),
    	NqaDetectInterval:         pulumi.Int(0),
    	EnableBfd:                 pulumi.Bool(false),
    	BfdDetectMultiplier:       pulumi.Int(0),
    	PeerIpv6Ip:                pulumi.String("string"),
    	RouteType:                 pulumi.String("string"),
    	Tags: directconnect.VirtualInterfaceTagArray{
    		&directconnect.VirtualInterfaceTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	VirtualInterfaceName: pulumi.String("string"),
    	BfdDetectInterval:    pulumi.Int(0),
    })
    
    resource "bytepluscc_directconnect_virtualinterface" "virtualInterfaceResource" {
      direct_connect_gateway_id    = "string"
      vlan_id                      = 0
      peer_ip                      = "string"
      local_ip                     = "string"
      direct_connect_connection_id = "string"
      enable_nqa                   = false
      nqa_detect_multiplier        = 0
      enable_bfd_echo              = false
      bandwidth                    = 0
      description                  = "string"
      local_ipv6_ip                = "string"
      nqa_detect_interval          = 0
      enable_bfd                   = false
      bfd_detect_multiplier        = 0
      peer_ipv6_ip                 = "string"
      route_type                   = "string"
      tags {
        key   = "string"
        value = "string"
      }
      virtual_interface_name = "string"
      bfd_detect_interval    = 0
    }
    
    var virtualInterfaceResource = new VirtualInterface("virtualInterfaceResource", VirtualInterfaceArgs.builder()
        .directConnectGatewayId("string")
        .vlanId(0)
        .peerIp("string")
        .localIp("string")
        .directConnectConnectionId("string")
        .enableNqa(false)
        .nqaDetectMultiplier(0)
        .enableBfdEcho(false)
        .bandwidth(0)
        .description("string")
        .localIpv6Ip("string")
        .nqaDetectInterval(0)
        .enableBfd(false)
        .bfdDetectMultiplier(0)
        .peerIpv6Ip("string")
        .routeType("string")
        .tags(VirtualInterfaceTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .virtualInterfaceName("string")
        .bfdDetectInterval(0)
        .build());
    
    virtual_interface_resource = bytepluscc.directconnect.VirtualInterface("virtualInterfaceResource",
        direct_connect_gateway_id="string",
        vlan_id=0,
        peer_ip="string",
        local_ip="string",
        direct_connect_connection_id="string",
        enable_nqa=False,
        nqa_detect_multiplier=0,
        enable_bfd_echo=False,
        bandwidth=0,
        description="string",
        local_ipv6_ip="string",
        nqa_detect_interval=0,
        enable_bfd=False,
        bfd_detect_multiplier=0,
        peer_ipv6_ip="string",
        route_type="string",
        tags=[{
            "key": "string",
            "value": "string",
        }],
        virtual_interface_name="string",
        bfd_detect_interval=0)
    
    const virtualInterfaceResource = new bytepluscc.directconnect.VirtualInterface("virtualInterfaceResource", {
        directConnectGatewayId: "string",
        vlanId: 0,
        peerIp: "string",
        localIp: "string",
        directConnectConnectionId: "string",
        enableNqa: false,
        nqaDetectMultiplier: 0,
        enableBfdEcho: false,
        bandwidth: 0,
        description: "string",
        localIpv6Ip: "string",
        nqaDetectInterval: 0,
        enableBfd: false,
        bfdDetectMultiplier: 0,
        peerIpv6Ip: "string",
        routeType: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
        virtualInterfaceName: "string",
        bfdDetectInterval: 0,
    });
    
    type: bytepluscc:directconnect:VirtualInterface
    properties:
        bandwidth: 0
        bfdDetectInterval: 0
        bfdDetectMultiplier: 0
        description: string
        directConnectConnectionId: string
        directConnectGatewayId: string
        enableBfd: false
        enableBfdEcho: false
        enableNqa: false
        localIp: string
        localIpv6Ip: string
        nqaDetectInterval: 0
        nqaDetectMultiplier: 0
        peerIp: string
        peerIpv6Ip: string
        routeType: string
        tags:
            - key: string
              value: string
        virtualInterfaceName: string
        vlanId: 0
    

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

    DirectConnectConnectionId string
    ID of the physical dedicated line associated with the virtual interface.
    DirectConnectGatewayId string
    ID of the dedicated gateway associated with the virtual interface.
    LocalIp string
    Local gateway interconnection IP address of the virtual interface.
    PeerIp string
    Peer gateway interconnection IP address of the virtual interface.
    VlanId int
    VLAN ID of the virtual interface.
    Bandwidth int
    Bandwidth limit of the virtual interface, in Mbps.
    BfdDetectInterval int
    BFD detection interval (ms).
    BfdDetectMultiplier int
    BFD detection count.
    Description string
    Description of the virtual interface.
    EnableBfd bool
    Enable BFD detection. true: enabled false: disabled.
    EnableBfdEcho bool
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    EnableNqa bool
    Is NQA detection enabled? true: enabled false: not enabled.
    LocalIpv6Ip string
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    NqaDetectInterval int
    Interval for sending consecutive probe packets in NQA detection.
    NqaDetectMultiplier int
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    PeerIpv6Ip string
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    RouteType string
    Route type of the virtual interface.
    Tags List<Byteplus.VirtualInterfaceTag>
    VirtualInterfaceName string
    Name of the virtual interface.
    DirectConnectConnectionId string
    ID of the physical dedicated line associated with the virtual interface.
    DirectConnectGatewayId string
    ID of the dedicated gateway associated with the virtual interface.
    LocalIp string
    Local gateway interconnection IP address of the virtual interface.
    PeerIp string
    Peer gateway interconnection IP address of the virtual interface.
    VlanId int
    VLAN ID of the virtual interface.
    Bandwidth int
    Bandwidth limit of the virtual interface, in Mbps.
    BfdDetectInterval int
    BFD detection interval (ms).
    BfdDetectMultiplier int
    BFD detection count.
    Description string
    Description of the virtual interface.
    EnableBfd bool
    Enable BFD detection. true: enabled false: disabled.
    EnableBfdEcho bool
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    EnableNqa bool
    Is NQA detection enabled? true: enabled false: not enabled.
    LocalIpv6Ip string
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    NqaDetectInterval int
    Interval for sending consecutive probe packets in NQA detection.
    NqaDetectMultiplier int
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    PeerIpv6Ip string
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    RouteType string
    Route type of the virtual interface.
    Tags []VirtualInterfaceTagArgs
    VirtualInterfaceName string
    Name of the virtual interface.
    direct_connect_connection_id string
    ID of the physical dedicated line associated with the virtual interface.
    direct_connect_gateway_id string
    ID of the dedicated gateway associated with the virtual interface.
    local_ip string
    Local gateway interconnection IP address of the virtual interface.
    peer_ip string
    Peer gateway interconnection IP address of the virtual interface.
    vlan_id number
    VLAN ID of the virtual interface.
    bandwidth number
    Bandwidth limit of the virtual interface, in Mbps.
    bfd_detect_interval number
    BFD detection interval (ms).
    bfd_detect_multiplier number
    BFD detection count.
    description string
    Description of the virtual interface.
    enable_bfd bool
    Enable BFD detection. true: enabled false: disabled.
    enable_bfd_echo bool
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    enable_nqa bool
    Is NQA detection enabled? true: enabled false: not enabled.
    local_ipv6_ip string
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    nqa_detect_interval number
    Interval for sending consecutive probe packets in NQA detection.
    nqa_detect_multiplier number
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    peer_ipv6_ip string
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    route_type string
    Route type of the virtual interface.
    tags list(object)
    virtual_interface_name string
    Name of the virtual interface.
    directConnectConnectionId String
    ID of the physical dedicated line associated with the virtual interface.
    directConnectGatewayId String
    ID of the dedicated gateway associated with the virtual interface.
    localIp String
    Local gateway interconnection IP address of the virtual interface.
    peerIp String
    Peer gateway interconnection IP address of the virtual interface.
    vlanId Integer
    VLAN ID of the virtual interface.
    bandwidth Integer
    Bandwidth limit of the virtual interface, in Mbps.
    bfdDetectInterval Integer
    BFD detection interval (ms).
    bfdDetectMultiplier Integer
    BFD detection count.
    description String
    Description of the virtual interface.
    enableBfd Boolean
    Enable BFD detection. true: enabled false: disabled.
    enableBfdEcho Boolean
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    enableNqa Boolean
    Is NQA detection enabled? true: enabled false: not enabled.
    localIpv6Ip String
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    nqaDetectInterval Integer
    Interval for sending consecutive probe packets in NQA detection.
    nqaDetectMultiplier Integer
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    peerIpv6Ip String
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    routeType String
    Route type of the virtual interface.
    tags List<VirtualInterfaceTag>
    virtualInterfaceName String
    Name of the virtual interface.
    directConnectConnectionId string
    ID of the physical dedicated line associated with the virtual interface.
    directConnectGatewayId string
    ID of the dedicated gateway associated with the virtual interface.
    localIp string
    Local gateway interconnection IP address of the virtual interface.
    peerIp string
    Peer gateway interconnection IP address of the virtual interface.
    vlanId number
    VLAN ID of the virtual interface.
    bandwidth number
    Bandwidth limit of the virtual interface, in Mbps.
    bfdDetectInterval number
    BFD detection interval (ms).
    bfdDetectMultiplier number
    BFD detection count.
    description string
    Description of the virtual interface.
    enableBfd boolean
    Enable BFD detection. true: enabled false: disabled.
    enableBfdEcho boolean
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    enableNqa boolean
    Is NQA detection enabled? true: enabled false: not enabled.
    localIpv6Ip string
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    nqaDetectInterval number
    Interval for sending consecutive probe packets in NQA detection.
    nqaDetectMultiplier number
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    peerIpv6Ip string
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    routeType string
    Route type of the virtual interface.
    tags VirtualInterfaceTag[]
    virtualInterfaceName string
    Name of the virtual interface.
    direct_connect_connection_id str
    ID of the physical dedicated line associated with the virtual interface.
    direct_connect_gateway_id str
    ID of the dedicated gateway associated with the virtual interface.
    local_ip str
    Local gateway interconnection IP address of the virtual interface.
    peer_ip str
    Peer gateway interconnection IP address of the virtual interface.
    vlan_id int
    VLAN ID of the virtual interface.
    bandwidth int
    Bandwidth limit of the virtual interface, in Mbps.
    bfd_detect_interval int
    BFD detection interval (ms).
    bfd_detect_multiplier int
    BFD detection count.
    description str
    Description of the virtual interface.
    enable_bfd bool
    Enable BFD detection. true: enabled false: disabled.
    enable_bfd_echo bool
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    enable_nqa bool
    Is NQA detection enabled? true: enabled false: not enabled.
    local_ipv6_ip str
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    nqa_detect_interval int
    Interval for sending consecutive probe packets in NQA detection.
    nqa_detect_multiplier int
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    peer_ipv6_ip str
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    route_type str
    Route type of the virtual interface.
    tags Sequence[VirtualInterfaceTagArgs]
    virtual_interface_name str
    Name of the virtual interface.
    directConnectConnectionId String
    ID of the physical dedicated line associated with the virtual interface.
    directConnectGatewayId String
    ID of the dedicated gateway associated with the virtual interface.
    localIp String
    Local gateway interconnection IP address of the virtual interface.
    peerIp String
    Peer gateway interconnection IP address of the virtual interface.
    vlanId Number
    VLAN ID of the virtual interface.
    bandwidth Number
    Bandwidth limit of the virtual interface, in Mbps.
    bfdDetectInterval Number
    BFD detection interval (ms).
    bfdDetectMultiplier Number
    BFD detection count.
    description String
    Description of the virtual interface.
    enableBfd Boolean
    Enable BFD detection. true: enabled false: disabled.
    enableBfdEcho Boolean
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    enableNqa Boolean
    Is NQA detection enabled? true: enabled false: not enabled.
    localIpv6Ip String
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    nqaDetectInterval Number
    Interval for sending consecutive probe packets in NQA detection.
    nqaDetectMultiplier Number
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    peerIpv6Ip String
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    routeType String
    Route type of the virtual interface.
    tags List<Property Map>
    virtualInterfaceName String
    Name of the virtual interface.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualInterface resource produces the following output properties:

    AccountId string
    ID of the account to which the dedicated line gateway belongs.
    CreationTime string
    Time when the virtual interface was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    UpdateTime string
    Time when the virtual interface was updated.
    VirtualInterfaceId string
    ID of the virtual interface.
    AccountId string
    ID of the account to which the dedicated line gateway belongs.
    CreationTime string
    Time when the virtual interface was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    UpdateTime string
    Time when the virtual interface was updated.
    VirtualInterfaceId string
    ID of the virtual interface.
    account_id string
    ID of the account to which the dedicated line gateway belongs.
    creation_time string
    Time when the virtual interface was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    update_time string
    Time when the virtual interface was updated.
    virtual_interface_id string
    ID of the virtual interface.
    accountId String
    ID of the account to which the dedicated line gateway belongs.
    creationTime String
    Time when the virtual interface was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    updateTime String
    Time when the virtual interface was updated.
    virtualInterfaceId String
    ID of the virtual interface.
    accountId string
    ID of the account to which the dedicated line gateway belongs.
    creationTime string
    Time when the virtual interface was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    updateTime string
    Time when the virtual interface was updated.
    virtualInterfaceId string
    ID of the virtual interface.
    account_id str
    ID of the account to which the dedicated line gateway belongs.
    creation_time str
    Time when the virtual interface was created.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    update_time str
    Time when the virtual interface was updated.
    virtual_interface_id str
    ID of the virtual interface.
    accountId String
    ID of the account to which the dedicated line gateway belongs.
    creationTime String
    Time when the virtual interface was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    updateTime String
    Time when the virtual interface was updated.
    virtualInterfaceId String
    ID of the virtual interface.

    Look up Existing VirtualInterface Resource

    Get an existing VirtualInterface 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?: VirtualInterfaceState, opts?: CustomResourceOptions): VirtualInterface
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            bandwidth: Optional[int] = None,
            bfd_detect_interval: Optional[int] = None,
            bfd_detect_multiplier: Optional[int] = None,
            creation_time: Optional[str] = None,
            description: Optional[str] = None,
            direct_connect_connection_id: Optional[str] = None,
            direct_connect_gateway_id: Optional[str] = None,
            enable_bfd: Optional[bool] = None,
            enable_bfd_echo: Optional[bool] = None,
            enable_nqa: Optional[bool] = None,
            local_ip: Optional[str] = None,
            local_ipv6_ip: Optional[str] = None,
            nqa_detect_interval: Optional[int] = None,
            nqa_detect_multiplier: Optional[int] = None,
            peer_ip: Optional[str] = None,
            peer_ipv6_ip: Optional[str] = None,
            route_type: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[VirtualInterfaceTagArgs]] = None,
            update_time: Optional[str] = None,
            virtual_interface_id: Optional[str] = None,
            virtual_interface_name: Optional[str] = None,
            vlan_id: Optional[int] = None) -> VirtualInterface
    func GetVirtualInterface(ctx *Context, name string, id IDInput, state *VirtualInterfaceState, opts ...ResourceOption) (*VirtualInterface, error)
    public static VirtualInterface Get(string name, Input<string> id, VirtualInterfaceState? state, CustomResourceOptions? opts = null)
    public static VirtualInterface get(String name, Output<String> id, VirtualInterfaceState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:directconnect:VirtualInterface    get:      id: ${id}
    import {
      to = bytepluscc_directconnect_virtualinterface.example
      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:
    AccountId string
    ID of the account to which the dedicated line gateway belongs.
    Bandwidth int
    Bandwidth limit of the virtual interface, in Mbps.
    BfdDetectInterval int
    BFD detection interval (ms).
    BfdDetectMultiplier int
    BFD detection count.
    CreationTime string
    Time when the virtual interface was created.
    Description string
    Description of the virtual interface.
    DirectConnectConnectionId string
    ID of the physical dedicated line associated with the virtual interface.
    DirectConnectGatewayId string
    ID of the dedicated gateway associated with the virtual interface.
    EnableBfd bool
    Enable BFD detection. true: enabled false: disabled.
    EnableBfdEcho bool
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    EnableNqa bool
    Is NQA detection enabled? true: enabled false: not enabled.
    LocalIp string
    Local gateway interconnection IP address of the virtual interface.
    LocalIpv6Ip string
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    NqaDetectInterval int
    Interval for sending consecutive probe packets in NQA detection.
    NqaDetectMultiplier int
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    PeerIp string
    Peer gateway interconnection IP address of the virtual interface.
    PeerIpv6Ip string
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    RouteType string
    Route type of the virtual interface.
    Status string
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    Tags List<Byteplus.VirtualInterfaceTag>
    UpdateTime string
    Time when the virtual interface was updated.
    VirtualInterfaceId string
    ID of the virtual interface.
    VirtualInterfaceName string
    Name of the virtual interface.
    VlanId int
    VLAN ID of the virtual interface.
    AccountId string
    ID of the account to which the dedicated line gateway belongs.
    Bandwidth int
    Bandwidth limit of the virtual interface, in Mbps.
    BfdDetectInterval int
    BFD detection interval (ms).
    BfdDetectMultiplier int
    BFD detection count.
    CreationTime string
    Time when the virtual interface was created.
    Description string
    Description of the virtual interface.
    DirectConnectConnectionId string
    ID of the physical dedicated line associated with the virtual interface.
    DirectConnectGatewayId string
    ID of the dedicated gateway associated with the virtual interface.
    EnableBfd bool
    Enable BFD detection. true: enabled false: disabled.
    EnableBfdEcho bool
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    EnableNqa bool
    Is NQA detection enabled? true: enabled false: not enabled.
    LocalIp string
    Local gateway interconnection IP address of the virtual interface.
    LocalIpv6Ip string
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    NqaDetectInterval int
    Interval for sending consecutive probe packets in NQA detection.
    NqaDetectMultiplier int
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    PeerIp string
    Peer gateway interconnection IP address of the virtual interface.
    PeerIpv6Ip string
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    RouteType string
    Route type of the virtual interface.
    Status string
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    Tags []VirtualInterfaceTagArgs
    UpdateTime string
    Time when the virtual interface was updated.
    VirtualInterfaceId string
    ID of the virtual interface.
    VirtualInterfaceName string
    Name of the virtual interface.
    VlanId int
    VLAN ID of the virtual interface.
    account_id string
    ID of the account to which the dedicated line gateway belongs.
    bandwidth number
    Bandwidth limit of the virtual interface, in Mbps.
    bfd_detect_interval number
    BFD detection interval (ms).
    bfd_detect_multiplier number
    BFD detection count.
    creation_time string
    Time when the virtual interface was created.
    description string
    Description of the virtual interface.
    direct_connect_connection_id string
    ID of the physical dedicated line associated with the virtual interface.
    direct_connect_gateway_id string
    ID of the dedicated gateway associated with the virtual interface.
    enable_bfd bool
    Enable BFD detection. true: enabled false: disabled.
    enable_bfd_echo bool
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    enable_nqa bool
    Is NQA detection enabled? true: enabled false: not enabled.
    local_ip string
    Local gateway interconnection IP address of the virtual interface.
    local_ipv6_ip string
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    nqa_detect_interval number
    Interval for sending consecutive probe packets in NQA detection.
    nqa_detect_multiplier number
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    peer_ip string
    Peer gateway interconnection IP address of the virtual interface.
    peer_ipv6_ip string
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    route_type string
    Route type of the virtual interface.
    status string
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    tags list(object)
    update_time string
    Time when the virtual interface was updated.
    virtual_interface_id string
    ID of the virtual interface.
    virtual_interface_name string
    Name of the virtual interface.
    vlan_id number
    VLAN ID of the virtual interface.
    accountId String
    ID of the account to which the dedicated line gateway belongs.
    bandwidth Integer
    Bandwidth limit of the virtual interface, in Mbps.
    bfdDetectInterval Integer
    BFD detection interval (ms).
    bfdDetectMultiplier Integer
    BFD detection count.
    creationTime String
    Time when the virtual interface was created.
    description String
    Description of the virtual interface.
    directConnectConnectionId String
    ID of the physical dedicated line associated with the virtual interface.
    directConnectGatewayId String
    ID of the dedicated gateway associated with the virtual interface.
    enableBfd Boolean
    Enable BFD detection. true: enabled false: disabled.
    enableBfdEcho Boolean
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    enableNqa Boolean
    Is NQA detection enabled? true: enabled false: not enabled.
    localIp String
    Local gateway interconnection IP address of the virtual interface.
    localIpv6Ip String
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    nqaDetectInterval Integer
    Interval for sending consecutive probe packets in NQA detection.
    nqaDetectMultiplier Integer
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    peerIp String
    Peer gateway interconnection IP address of the virtual interface.
    peerIpv6Ip String
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    routeType String
    Route type of the virtual interface.
    status String
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    tags List<VirtualInterfaceTag>
    updateTime String
    Time when the virtual interface was updated.
    virtualInterfaceId String
    ID of the virtual interface.
    virtualInterfaceName String
    Name of the virtual interface.
    vlanId Integer
    VLAN ID of the virtual interface.
    accountId string
    ID of the account to which the dedicated line gateway belongs.
    bandwidth number
    Bandwidth limit of the virtual interface, in Mbps.
    bfdDetectInterval number
    BFD detection interval (ms).
    bfdDetectMultiplier number
    BFD detection count.
    creationTime string
    Time when the virtual interface was created.
    description string
    Description of the virtual interface.
    directConnectConnectionId string
    ID of the physical dedicated line associated with the virtual interface.
    directConnectGatewayId string
    ID of the dedicated gateway associated with the virtual interface.
    enableBfd boolean
    Enable BFD detection. true: enabled false: disabled.
    enableBfdEcho boolean
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    enableNqa boolean
    Is NQA detection enabled? true: enabled false: not enabled.
    localIp string
    Local gateway interconnection IP address of the virtual interface.
    localIpv6Ip string
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    nqaDetectInterval number
    Interval for sending consecutive probe packets in NQA detection.
    nqaDetectMultiplier number
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    peerIp string
    Peer gateway interconnection IP address of the virtual interface.
    peerIpv6Ip string
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    routeType string
    Route type of the virtual interface.
    status string
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    tags VirtualInterfaceTag[]
    updateTime string
    Time when the virtual interface was updated.
    virtualInterfaceId string
    ID of the virtual interface.
    virtualInterfaceName string
    Name of the virtual interface.
    vlanId number
    VLAN ID of the virtual interface.
    account_id str
    ID of the account to which the dedicated line gateway belongs.
    bandwidth int
    Bandwidth limit of the virtual interface, in Mbps.
    bfd_detect_interval int
    BFD detection interval (ms).
    bfd_detect_multiplier int
    BFD detection count.
    creation_time str
    Time when the virtual interface was created.
    description str
    Description of the virtual interface.
    direct_connect_connection_id str
    ID of the physical dedicated line associated with the virtual interface.
    direct_connect_gateway_id str
    ID of the dedicated gateway associated with the virtual interface.
    enable_bfd bool
    Enable BFD detection. true: enabled false: disabled.
    enable_bfd_echo bool
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    enable_nqa bool
    Is NQA detection enabled? true: enabled false: not enabled.
    local_ip str
    Local gateway interconnection IP address of the virtual interface.
    local_ipv6_ip str
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    nqa_detect_interval int
    Interval for sending consecutive probe packets in NQA detection.
    nqa_detect_multiplier int
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    peer_ip str
    Peer gateway interconnection IP address of the virtual interface.
    peer_ipv6_ip str
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    route_type str
    Route type of the virtual interface.
    status str
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    tags Sequence[VirtualInterfaceTagArgs]
    update_time str
    Time when the virtual interface was updated.
    virtual_interface_id str
    ID of the virtual interface.
    virtual_interface_name str
    Name of the virtual interface.
    vlan_id int
    VLAN ID of the virtual interface.
    accountId String
    ID of the account to which the dedicated line gateway belongs.
    bandwidth Number
    Bandwidth limit of the virtual interface, in Mbps.
    bfdDetectInterval Number
    BFD detection interval (ms).
    bfdDetectMultiplier Number
    BFD detection count.
    creationTime String
    Time when the virtual interface was created.
    description String
    Description of the virtual interface.
    directConnectConnectionId String
    ID of the physical dedicated line associated with the virtual interface.
    directConnectGatewayId String
    ID of the dedicated gateway associated with the virtual interface.
    enableBfd Boolean
    Enable BFD detection. true: enabled false: disabled.
    enableBfdEcho Boolean
    Enable BFD detection echo packet mode. true: enabled false: disabled.
    enableNqa Boolean
    Is NQA detection enabled? true: enabled false: not enabled.
    localIp String
    Local gateway interconnection IP address of the virtual interface.
    localIpv6Ip String
    IPv6 address of the local gateway interconnection IP for the virtual interface.
    nqaDetectInterval Number
    Interval for sending consecutive probe packets in NQA detection.
    nqaDetectMultiplier Number
    NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
    peerIp String
    Peer gateway interconnection IP address of the virtual interface.
    peerIpv6Ip String
    IPv6 address of the peer gateway interconnection IP for the virtual interface.
    routeType String
    Route type of the virtual interface.
    status String
    Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available.
    tags List<Property Map>
    updateTime String
    Time when the virtual interface was updated.
    virtualInterfaceId String
    ID of the virtual interface.
    virtualInterfaceName String
    Name of the virtual interface.
    vlanId Number
    VLAN ID of the virtual interface.

    Supporting Types

    VirtualInterfaceTag, VirtualInterfaceTagArgs

    Key string
    Tag key (Key) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag key (Key), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag keys (Key) are separated by &. Cannot start with sys: in any case. sys: is reserved for system tags and cannot be created. Length range: 1–128 characters. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@).
    Value string
    Tag value (Value) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag value (Value), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag values (Value) are separated by &. Length range: 0–256 characters. If not specified, the default is empty. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@). Case sensitive. Cannot start or end with a space. Note: If Tags.N.Value is provided, Tags.N.Key must also be provided.
    Key string
    Tag key (Key) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag key (Key), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag keys (Key) are separated by &. Cannot start with sys: in any case. sys: is reserved for system tags and cannot be created. Length range: 1–128 characters. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@).
    Value string
    Tag value (Value) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag value (Value), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag values (Value) are separated by &. Length range: 0–256 characters. If not specified, the default is empty. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@). Case sensitive. Cannot start or end with a space. Note: If Tags.N.Value is provided, Tags.N.Key must also be provided.
    key string
    Tag key (Key) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag key (Key), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag keys (Key) are separated by &. Cannot start with sys: in any case. sys: is reserved for system tags and cannot be created. Length range: 1–128 characters. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@).
    value string
    Tag value (Value) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag value (Value), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag values (Value) are separated by &. Length range: 0–256 characters. If not specified, the default is empty. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@). Case sensitive. Cannot start or end with a space. Note: If Tags.N.Value is provided, Tags.N.Key must also be provided.
    key String
    Tag key (Key) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag key (Key), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag keys (Key) are separated by &. Cannot start with sys: in any case. sys: is reserved for system tags and cannot be created. Length range: 1–128 characters. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@).
    value String
    Tag value (Value) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag value (Value), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag values (Value) are separated by &. Length range: 0–256 characters. If not specified, the default is empty. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@). Case sensitive. Cannot start or end with a space. Note: If Tags.N.Value is provided, Tags.N.Key must also be provided.
    key string
    Tag key (Key) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag key (Key), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag keys (Key) are separated by &. Cannot start with sys: in any case. sys: is reserved for system tags and cannot be created. Length range: 1–128 characters. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@).
    value string
    Tag value (Value) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag value (Value), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag values (Value) are separated by &. Length range: 0–256 characters. If not specified, the default is empty. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@). Case sensitive. Cannot start or end with a space. Note: If Tags.N.Value is provided, Tags.N.Key must also be provided.
    key str
    Tag key (Key) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag key (Key), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag keys (Key) are separated by &. Cannot start with sys: in any case. sys: is reserved for system tags and cannot be created. Length range: 1–128 characters. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@).
    value str
    Tag value (Value) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag value (Value), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag values (Value) are separated by &. Length range: 0–256 characters. If not specified, the default is empty. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@). Case sensitive. Cannot start or end with a space. Note: If Tags.N.Value is provided, Tags.N.Key must also be provided.
    key String
    Tag key (Key) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag key (Key), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag keys (Key) are separated by &. Cannot start with sys: in any case. sys: is reserved for system tags and cannot be created. Length range: 1–128 characters. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@).
    value String
    Tag value (Value) of the virtual interface tag. Parameter - N - indicates the sequence number of the tag value (Value), with a range of 1, 2, 3, …, 49, 50. N must be in continuous ascending order. Multiple tag values (Value) are separated by &. Length range: 0–256 characters. If not specified, the default is empty. Supports input in any language, numbers, spaces (), underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), hyphens (-), and at signs (@). Case sensitive. Cannot start or end with a space. Note: If Tags.N.Value is provided, Tags.N.Key must also be provided.

    Import

    $ pulumi import bytepluscc:directconnect/virtualInterface:VirtualInterface example "virtual_interface_id"
    

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

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.31
    published on Monday, Jun 1, 2026 by Byteplus

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial