published on Monday, Jun 1, 2026 by Byteplus
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:
- Direct
Connect stringConnection Id - ID of the physical dedicated line associated with the virtual interface.
- Direct
Connect stringGateway Id - 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 int - VLAN ID of the virtual interface.
- Bandwidth int
- Bandwidth limit of the virtual interface, in Mbps.
- Bfd
Detect intInterval - BFD detection interval (ms).
- Bfd
Detect intMultiplier - BFD detection count.
- Description string
- Description of the virtual interface.
- Enable
Bfd bool - Enable BFD detection. true: enabled false: disabled.
- Enable
Bfd boolEcho - Enable BFD detection echo packet mode. true: enabled false: disabled.
- Enable
Nqa bool - Is NQA detection enabled? true: enabled false: not enabled.
- Local
Ipv6Ip string - IPv6 address of the local gateway interconnection IP for the virtual interface.
- Nqa
Detect intInterval - Interval for sending consecutive probe packets in NQA detection.
- Nqa
Detect intMultiplier - NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
- Peer
Ipv6Ip string - IPv6 address of the peer gateway interconnection IP for the virtual interface.
- Route
Type string - Route type of the virtual interface.
-
List<Byteplus.
Virtual Interface Tag> - Virtual
Interface stringName - Name of the virtual interface.
- Direct
Connect stringConnection Id - ID of the physical dedicated line associated with the virtual interface.
- Direct
Connect stringGateway Id - 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 int - VLAN ID of the virtual interface.
- Bandwidth int
- Bandwidth limit of the virtual interface, in Mbps.
- Bfd
Detect intInterval - BFD detection interval (ms).
- Bfd
Detect intMultiplier - BFD detection count.
- Description string
- Description of the virtual interface.
- Enable
Bfd bool - Enable BFD detection. true: enabled false: disabled.
- Enable
Bfd boolEcho - Enable BFD detection echo packet mode. true: enabled false: disabled.
- Enable
Nqa bool - Is NQA detection enabled? true: enabled false: not enabled.
- Local
Ipv6Ip string - IPv6 address of the local gateway interconnection IP for the virtual interface.
- Nqa
Detect intInterval - Interval for sending consecutive probe packets in NQA detection.
- Nqa
Detect intMultiplier - NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
- Peer
Ipv6Ip string - IPv6 address of the peer gateway interconnection IP for the virtual interface.
- Route
Type string - Route type of the virtual interface.
-
[]Virtual
Interface Tag Args - Virtual
Interface stringName - Name of the virtual interface.
- direct_
connect_ stringconnection_ id - ID of the physical dedicated line associated with the virtual interface.
- direct_
connect_ stringgateway_ id - 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_ numberinterval - BFD detection interval (ms).
- bfd_
detect_ numbermultiplier - BFD detection count.
- description string
- Description of the virtual interface.
- enable_
bfd bool - Enable BFD detection. true: enabled false: disabled.
- enable_
bfd_ boolecho - Enable BFD detection echo packet mode. true: enabled false: disabled.
- enable_
nqa bool - Is NQA detection enabled? true: enabled false: not enabled.
- local_
ipv6_ stringip - IPv6 address of the local gateway interconnection IP for the virtual interface.
- nqa_
detect_ numberinterval - Interval for sending consecutive probe packets in NQA detection.
- nqa_
detect_ numbermultiplier - NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
- peer_
ipv6_ stringip - IPv6 address of the peer gateway interconnection IP for the virtual interface.
- route_
type string - Route type of the virtual interface.
- list(object)
- virtual_
interface_ stringname - Name of the virtual interface.
- direct
Connect StringConnection Id - ID of the physical dedicated line associated with the virtual interface.
- direct
Connect StringGateway Id - 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 Integer - VLAN ID of the virtual interface.
- bandwidth Integer
- Bandwidth limit of the virtual interface, in Mbps.
- bfd
Detect IntegerInterval - BFD detection interval (ms).
- bfd
Detect IntegerMultiplier - BFD detection count.
- description String
- Description of the virtual interface.
- enable
Bfd Boolean - Enable BFD detection. true: enabled false: disabled.
- enable
Bfd BooleanEcho - Enable BFD detection echo packet mode. true: enabled false: disabled.
- enable
Nqa Boolean - Is NQA detection enabled? true: enabled false: not enabled.
- local
Ipv6Ip String - IPv6 address of the local gateway interconnection IP for the virtual interface.
- nqa
Detect IntegerInterval - Interval for sending consecutive probe packets in NQA detection.
- nqa
Detect IntegerMultiplier - NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
- peer
Ipv6Ip String - IPv6 address of the peer gateway interconnection IP for the virtual interface.
- route
Type String - Route type of the virtual interface.
-
List<Virtual
Interface Tag> - virtual
Interface StringName - Name of the virtual interface.
- direct
Connect stringConnection Id - ID of the physical dedicated line associated with the virtual interface.
- direct
Connect stringGateway Id - 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 numberInterval - BFD detection interval (ms).
- bfd
Detect numberMultiplier - BFD detection count.
- description string
- Description of the virtual interface.
- enable
Bfd boolean - Enable BFD detection. true: enabled false: disabled.
- enable
Bfd booleanEcho - Enable BFD detection echo packet mode. true: enabled false: disabled.
- enable
Nqa boolean - Is NQA detection enabled? true: enabled false: not enabled.
- local
Ipv6Ip string - IPv6 address of the local gateway interconnection IP for the virtual interface.
- nqa
Detect numberInterval - Interval for sending consecutive probe packets in NQA detection.
- nqa
Detect numberMultiplier - NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
- peer
Ipv6Ip string - IPv6 address of the peer gateway interconnection IP for the virtual interface.
- route
Type string - Route type of the virtual interface.
-
Virtual
Interface Tag[] - virtual
Interface stringName - Name of the virtual interface.
- direct_
connect_ strconnection_ id - ID of the physical dedicated line associated with the virtual interface.
- direct_
connect_ strgateway_ id - 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_ intinterval - BFD detection interval (ms).
- bfd_
detect_ intmultiplier - BFD detection count.
- description str
- Description of the virtual interface.
- enable_
bfd bool - Enable BFD detection. true: enabled false: disabled.
- enable_
bfd_ boolecho - Enable BFD detection echo packet mode. true: enabled false: disabled.
- enable_
nqa bool - Is NQA detection enabled? true: enabled false: not enabled.
- local_
ipv6_ strip - IPv6 address of the local gateway interconnection IP for the virtual interface.
- nqa_
detect_ intinterval - Interval for sending consecutive probe packets in NQA detection.
- nqa_
detect_ intmultiplier - NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
- peer_
ipv6_ strip - IPv6 address of the peer gateway interconnection IP for the virtual interface.
- route_
type str - Route type of the virtual interface.
-
Sequence[Virtual
Interface Tag Args] - virtual_
interface_ strname - Name of the virtual interface.
- direct
Connect StringConnection Id - ID of the physical dedicated line associated with the virtual interface.
- direct
Connect StringGateway Id - 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 NumberInterval - BFD detection interval (ms).
- bfd
Detect NumberMultiplier - BFD detection count.
- description String
- Description of the virtual interface.
- enable
Bfd Boolean - Enable BFD detection. true: enabled false: disabled.
- enable
Bfd BooleanEcho - Enable BFD detection echo packet mode. true: enabled false: disabled.
- enable
Nqa Boolean - Is NQA detection enabled? true: enabled false: not enabled.
- local
Ipv6Ip String - IPv6 address of the local gateway interconnection IP for the virtual interface.
- nqa
Detect NumberInterval - Interval for sending consecutive probe packets in NQA detection.
- nqa
Detect NumberMultiplier - NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty.
- peer
Ipv6Ip String - IPv6 address of the peer gateway interconnection IP for the virtual interface.
- route
Type String - Route type of the virtual interface.
- List<Property Map>
- virtual
Interface StringName - Name of the virtual interface.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualInterface resource produces the following output properties:
- 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 stringId - 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 stringId - 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_ stringid - 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 StringId - 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 stringId - 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_ strid - 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 StringId - 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) -> VirtualInterfacefunc 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.
- Account
Id string - ID of the account to which the dedicated line gateway belongs.
- Bandwidth int
- Bandwidth limit of the virtual interface, in Mbps.
- Bfd
Detect intInterval - BFD detection interval (ms).
- Bfd
Detect intMultiplier - BFD detection count.
- Creation
Time string - Time when the virtual interface was created.
- Description string
- Description of the virtual interface.
- Direct
Connect stringConnection Id - ID of the physical dedicated line associated with the virtual interface.
- Direct
Connect stringGateway Id - ID of the dedicated gateway associated with the virtual interface.
- Enable
Bfd bool - Enable BFD detection. true: enabled false: disabled.
- Enable
Bfd boolEcho - 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
Ipv6Ip string - IPv6 address of the local gateway interconnection IP for the virtual interface.
- Nqa
Detect intInterval - Interval for sending consecutive probe packets in NQA detection.
- Nqa
Detect intMultiplier - 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
Ipv6Ip 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.
-
List<Byteplus.
Virtual Interface Tag> - Update
Time string - Time when the virtual interface was updated.
- Virtual
Interface stringId - ID of the virtual interface.
- Virtual
Interface stringName - Name of the virtual interface.
- Vlan
Id int - VLAN ID of the virtual interface.
- Account
Id string - ID of the account to which the dedicated line gateway belongs.
- Bandwidth int
- Bandwidth limit of the virtual interface, in Mbps.
- Bfd
Detect intInterval - BFD detection interval (ms).
- Bfd
Detect intMultiplier - BFD detection count.
- Creation
Time string - Time when the virtual interface was created.
- Description string
- Description of the virtual interface.
- Direct
Connect stringConnection Id - ID of the physical dedicated line associated with the virtual interface.
- Direct
Connect stringGateway Id - ID of the dedicated gateway associated with the virtual interface.
- Enable
Bfd bool - Enable BFD detection. true: enabled false: disabled.
- Enable
Bfd boolEcho - 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
Ipv6Ip string - IPv6 address of the local gateway interconnection IP for the virtual interface.
- Nqa
Detect intInterval - Interval for sending consecutive probe packets in NQA detection.
- Nqa
Detect intMultiplier - 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
Ipv6Ip 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.
-
[]Virtual
Interface Tag Args - Update
Time string - Time when the virtual interface was updated.
- Virtual
Interface stringId - ID of the virtual interface.
- Virtual
Interface stringName - Name of the virtual interface.
- Vlan
Id 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_ numberinterval - BFD detection interval (ms).
- bfd_
detect_ numbermultiplier - BFD detection count.
- creation_
time string - Time when the virtual interface was created.
- description string
- Description of the virtual interface.
- direct_
connect_ stringconnection_ id - ID of the physical dedicated line associated with the virtual interface.
- direct_
connect_ stringgateway_ id - ID of the dedicated gateway associated with the virtual interface.
- enable_
bfd bool - Enable BFD detection. true: enabled false: disabled.
- enable_
bfd_ boolecho - 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_ stringip - IPv6 address of the local gateway interconnection IP for the virtual interface.
- nqa_
detect_ numberinterval - Interval for sending consecutive probe packets in NQA detection.
- nqa_
detect_ numbermultiplier - 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_ stringip - 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.
- list(object)
- update_
time string - Time when the virtual interface was updated.
- virtual_
interface_ stringid - ID of the virtual interface.
- virtual_
interface_ stringname - Name of the virtual interface.
- vlan_
id number - VLAN ID of the virtual interface.
- account
Id String - ID of the account to which the dedicated line gateway belongs.
- bandwidth Integer
- Bandwidth limit of the virtual interface, in Mbps.
- bfd
Detect IntegerInterval - BFD detection interval (ms).
- bfd
Detect IntegerMultiplier - BFD detection count.
- creation
Time String - Time when the virtual interface was created.
- description String
- Description of the virtual interface.
- direct
Connect StringConnection Id - ID of the physical dedicated line associated with the virtual interface.
- direct
Connect StringGateway Id - ID of the dedicated gateway associated with the virtual interface.
- enable
Bfd Boolean - Enable BFD detection. true: enabled false: disabled.
- enable
Bfd BooleanEcho - Enable BFD detection echo packet mode. true: enabled false: disabled.
- enable
Nqa Boolean - Is NQA detection enabled? true: enabled false: not enabled.
- local
Ip String - Local gateway interconnection IP address of the virtual interface.
- local
Ipv6Ip String - IPv6 address of the local gateway interconnection IP for the virtual interface.
- nqa
Detect IntegerInterval - Interval for sending consecutive probe packets in NQA detection.
- nqa
Detect IntegerMultiplier - 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
Ipv6Ip 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.
-
List<Virtual
Interface Tag> - update
Time String - Time when the virtual interface was updated.
- virtual
Interface StringId - ID of the virtual interface.
- virtual
Interface StringName - Name of the virtual interface.
- vlan
Id Integer - 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 numberInterval - BFD detection interval (ms).
- bfd
Detect numberMultiplier - BFD detection count.
- creation
Time string - Time when the virtual interface was created.
- description string
- Description of the virtual interface.
- direct
Connect stringConnection Id - ID of the physical dedicated line associated with the virtual interface.
- direct
Connect stringGateway Id - ID of the dedicated gateway associated with the virtual interface.
- enable
Bfd boolean - Enable BFD detection. true: enabled false: disabled.
- enable
Bfd booleanEcho - Enable BFD detection echo packet mode. true: enabled false: disabled.
- enable
Nqa boolean - Is NQA detection enabled? true: enabled false: not enabled.
- local
Ip string - Local gateway interconnection IP address of the virtual interface.
- local
Ipv6Ip string - IPv6 address of the local gateway interconnection IP for the virtual interface.
- nqa
Detect numberInterval - Interval for sending consecutive probe packets in NQA detection.
- nqa
Detect numberMultiplier - 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
Ipv6Ip 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.
-
Virtual
Interface Tag[] - update
Time string - Time when the virtual interface was updated.
- virtual
Interface stringId - ID of the virtual interface.
- virtual
Interface stringName - Name of the virtual interface.
- vlan
Id 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_ intinterval - BFD detection interval (ms).
- bfd_
detect_ intmultiplier - BFD detection count.
- creation_
time str - Time when the virtual interface was created.
- description str
- Description of the virtual interface.
- direct_
connect_ strconnection_ id - ID of the physical dedicated line associated with the virtual interface.
- direct_
connect_ strgateway_ id - ID of the dedicated gateway associated with the virtual interface.
- enable_
bfd bool - Enable BFD detection. true: enabled false: disabled.
- enable_
bfd_ boolecho - 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_ strip - IPv6 address of the local gateway interconnection IP for the virtual interface.
- nqa_
detect_ intinterval - Interval for sending consecutive probe packets in NQA detection.
- nqa_
detect_ intmultiplier - 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_ strip - 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.
-
Sequence[Virtual
Interface Tag Args] - update_
time str - Time when the virtual interface was updated.
- virtual_
interface_ strid - ID of the virtual interface.
- virtual_
interface_ strname - Name of the virtual interface.
- vlan_
id 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 NumberInterval - BFD detection interval (ms).
- bfd
Detect NumberMultiplier - BFD detection count.
- creation
Time String - Time when the virtual interface was created.
- description String
- Description of the virtual interface.
- direct
Connect StringConnection Id - ID of the physical dedicated line associated with the virtual interface.
- direct
Connect StringGateway Id - ID of the dedicated gateway associated with the virtual interface.
- enable
Bfd Boolean - Enable BFD detection. true: enabled false: disabled.
- enable
Bfd BooleanEcho - Enable BFD detection echo packet mode. true: enabled false: disabled.
- enable
Nqa Boolean - Is NQA detection enabled? true: enabled false: not enabled.
- local
Ip String - Local gateway interconnection IP address of the virtual interface.
- local
Ipv6Ip String - IPv6 address of the local gateway interconnection IP for the virtual interface.
- nqa
Detect NumberInterval - Interval for sending consecutive probe packets in NQA detection.
- nqa
Detect NumberMultiplier - 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
Ipv6Ip 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.
- List<Property Map>
- update
Time String - Time when the virtual interface was updated.
- virtual
Interface StringId - ID of the virtual interface.
- virtual
Interface StringName - Name of the virtual interface.
- vlan
Id 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
byteplusccTerraform Provider.
published on Monday, Jun 1, 2026 by Byteplus