published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
镜像会话关联镜像源、镜像目的、筛选条件,使从镜像源复制的流量私网转发到镜像目的,是流量镜像的载体。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const vPCTrafficMirrorSessionDemo = new bytepluscc.vpc.TrafficMirrorSession("VPCTrafficMirrorSessionDemo", {
description: "test-description",
networkInterfaceId: "eni-1a1s0wz7xkm4g8nvexxxxx",
packetLength: 64,
priority: 12,
projectName: "default",
tags: [{
key: "env",
value: "test",
}],
trafficMirrorFilterId: "tmf-bu54sj0bl2bk5h0xxxxx",
trafficMirrorSessionName: "test-1",
trafficMirrorTargetId: "tmt-ij32u0acvta874o8ctxxxxx",
virtualNetworkId: 13,
});
import pulumi
import pulumi_bytepluscc as bytepluscc
v_pc_traffic_mirror_session_demo = bytepluscc.vpc.TrafficMirrorSession("VPCTrafficMirrorSessionDemo",
description="test-description",
network_interface_id="eni-1a1s0wz7xkm4g8nvexxxxx",
packet_length=64,
priority=12,
project_name="default",
tags=[{
"key": "env",
"value": "test",
}],
traffic_mirror_filter_id="tmf-bu54sj0bl2bk5h0xxxxx",
traffic_mirror_session_name="test-1",
traffic_mirror_target_id="tmt-ij32u0acvta874o8ctxxxxx",
virtual_network_id=13)
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.NewTrafficMirrorSession(ctx, "VPCTrafficMirrorSessionDemo", &vpc.TrafficMirrorSessionArgs{
Description: pulumi.String("test-description"),
NetworkInterfaceId: pulumi.String("eni-1a1s0wz7xkm4g8nvexxxxx"),
PacketLength: pulumi.Int(64),
Priority: pulumi.Int(12),
ProjectName: pulumi.String("default"),
Tags: vpc.TrafficMirrorSessionTagArray{
&vpc.TrafficMirrorSessionTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
TrafficMirrorFilterId: pulumi.String("tmf-bu54sj0bl2bk5h0xxxxx"),
TrafficMirrorSessionName: pulumi.String("test-1"),
TrafficMirrorTargetId: pulumi.String("tmt-ij32u0acvta874o8ctxxxxx"),
VirtualNetworkId: pulumi.Int(13),
})
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 vPCTrafficMirrorSessionDemo = new Bytepluscc.Vpc.TrafficMirrorSession("VPCTrafficMirrorSessionDemo", new()
{
Description = "test-description",
NetworkInterfaceId = "eni-1a1s0wz7xkm4g8nvexxxxx",
PacketLength = 64,
Priority = 12,
ProjectName = "default",
Tags = new[]
{
new Bytepluscc.Vpc.Inputs.TrafficMirrorSessionTagArgs
{
Key = "env",
Value = "test",
},
},
TrafficMirrorFilterId = "tmf-bu54sj0bl2bk5h0xxxxx",
TrafficMirrorSessionName = "test-1",
TrafficMirrorTargetId = "tmt-ij32u0acvta874o8ctxxxxx",
VirtualNetworkId = 13,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.vpc.TrafficMirrorSession;
import com.byteplus.bytepluscc.vpc.TrafficMirrorSessionArgs;
import com.pulumi.bytepluscc.vpc.inputs.TrafficMirrorSessionTagArgs;
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 vPCTrafficMirrorSessionDemo = new TrafficMirrorSession("vPCTrafficMirrorSessionDemo", TrafficMirrorSessionArgs.builder()
.description("test-description")
.networkInterfaceId("eni-1a1s0wz7xkm4g8nvexxxxx")
.packetLength(64)
.priority(12)
.projectName("default")
.tags(TrafficMirrorSessionTagArgs.builder()
.key("env")
.value("test")
.build())
.trafficMirrorFilterId("tmf-bu54sj0bl2bk5h0xxxxx")
.trafficMirrorSessionName("test-1")
.trafficMirrorTargetId("tmt-ij32u0acvta874o8ctxxxxx")
.virtualNetworkId(13)
.build());
}
}
resources:
vPCTrafficMirrorSessionDemo:
type: bytepluscc:vpc:TrafficMirrorSession
name: VPCTrafficMirrorSessionDemo
properties:
description: test-description
networkInterfaceId: eni-1a1s0wz7xkm4g8nvexxxxx
packetLength: 64
priority: 12
projectName: default
tags:
- key: env
value: test
trafficMirrorFilterId: tmf-bu54sj0bl2bk5h0xxxxx
trafficMirrorSessionName: test-1
trafficMirrorTargetId: tmt-ij32u0acvta874o8ctxxxxx
virtualNetworkId: 13
Create TrafficMirrorSession Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrafficMirrorSession(name: string, args: TrafficMirrorSessionArgs, opts?: CustomResourceOptions);@overload
def TrafficMirrorSession(resource_name: str,
args: TrafficMirrorSessionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrafficMirrorSession(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_interface_id: Optional[str] = None,
priority: Optional[int] = None,
traffic_mirror_filter_id: Optional[str] = None,
traffic_mirror_target_id: Optional[str] = None,
description: Optional[str] = None,
packet_length: Optional[int] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[TrafficMirrorSessionTagArgs]] = None,
traffic_mirror_session_name: Optional[str] = None,
virtual_network_id: Optional[int] = None)func NewTrafficMirrorSession(ctx *Context, name string, args TrafficMirrorSessionArgs, opts ...ResourceOption) (*TrafficMirrorSession, error)public TrafficMirrorSession(string name, TrafficMirrorSessionArgs args, CustomResourceOptions? opts = null)
public TrafficMirrorSession(String name, TrafficMirrorSessionArgs args)
public TrafficMirrorSession(String name, TrafficMirrorSessionArgs args, CustomResourceOptions options)
type: bytepluscc:vpc:TrafficMirrorSession
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TrafficMirrorSessionArgs
- 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 TrafficMirrorSessionArgs
- 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 TrafficMirrorSessionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficMirrorSessionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrafficMirrorSessionArgs
- 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 trafficMirrorSessionResource = new Bytepluscc.Vpc.TrafficMirrorSession("trafficMirrorSessionResource", new()
{
NetworkInterfaceId = "string",
Priority = 0,
TrafficMirrorFilterId = "string",
TrafficMirrorTargetId = "string",
Description = "string",
PacketLength = 0,
ProjectName = "string",
Tags = new[]
{
new Bytepluscc.Vpc.Inputs.TrafficMirrorSessionTagArgs
{
Key = "string",
Value = "string",
},
},
TrafficMirrorSessionName = "string",
VirtualNetworkId = 0,
});
example, err := vpc.NewTrafficMirrorSession(ctx, "trafficMirrorSessionResource", &vpc.TrafficMirrorSessionArgs{
NetworkInterfaceId: pulumi.String("string"),
Priority: pulumi.Int(0),
TrafficMirrorFilterId: pulumi.String("string"),
TrafficMirrorTargetId: pulumi.String("string"),
Description: pulumi.String("string"),
PacketLength: pulumi.Int(0),
ProjectName: pulumi.String("string"),
Tags: vpc.TrafficMirrorSessionTagArray{
&vpc.TrafficMirrorSessionTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
TrafficMirrorSessionName: pulumi.String("string"),
VirtualNetworkId: pulumi.Int(0),
})
var trafficMirrorSessionResource = new TrafficMirrorSession("trafficMirrorSessionResource", TrafficMirrorSessionArgs.builder()
.networkInterfaceId("string")
.priority(0)
.trafficMirrorFilterId("string")
.trafficMirrorTargetId("string")
.description("string")
.packetLength(0)
.projectName("string")
.tags(TrafficMirrorSessionTagArgs.builder()
.key("string")
.value("string")
.build())
.trafficMirrorSessionName("string")
.virtualNetworkId(0)
.build());
traffic_mirror_session_resource = bytepluscc.vpc.TrafficMirrorSession("trafficMirrorSessionResource",
network_interface_id="string",
priority=0,
traffic_mirror_filter_id="string",
traffic_mirror_target_id="string",
description="string",
packet_length=0,
project_name="string",
tags=[{
"key": "string",
"value": "string",
}],
traffic_mirror_session_name="string",
virtual_network_id=0)
const trafficMirrorSessionResource = new bytepluscc.vpc.TrafficMirrorSession("trafficMirrorSessionResource", {
networkInterfaceId: "string",
priority: 0,
trafficMirrorFilterId: "string",
trafficMirrorTargetId: "string",
description: "string",
packetLength: 0,
projectName: "string",
tags: [{
key: "string",
value: "string",
}],
trafficMirrorSessionName: "string",
virtualNetworkId: 0,
});
type: bytepluscc:vpc:TrafficMirrorSession
properties:
description: string
networkInterfaceId: string
packetLength: 0
priority: 0
projectName: string
tags:
- key: string
value: string
trafficMirrorFilterId: string
trafficMirrorSessionName: string
trafficMirrorTargetId: string
virtualNetworkId: 0
TrafficMirrorSession 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 TrafficMirrorSession resource accepts the following input properties:
- Network
Interface stringId - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- Priority int
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- Traffic
Mirror stringFilter Id - 筛选条件实例ID。
- Traffic
Mirror stringTarget Id - 镜像目的实例ID。
- Description string
- 镜像会话实例描述。
- Packet
Length int - 镜像会话MTU,超过被截断,取值范围:64~9600。
- Project
Name string - 所属项目的名称
-
List<Byteplus.
Traffic Mirror Session Tag> - Traffic
Mirror stringSession Name - 镜像会话名称。
- Virtual
Network intId - 镜像会话VNI,取值范围1 ~ 16777215。
- Network
Interface stringId - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- Priority int
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- Traffic
Mirror stringFilter Id - 筛选条件实例ID。
- Traffic
Mirror stringTarget Id - 镜像目的实例ID。
- Description string
- 镜像会话实例描述。
- Packet
Length int - 镜像会话MTU,超过被截断,取值范围:64~9600。
- Project
Name string - 所属项目的名称
-
[]Traffic
Mirror Session Tag Args - Traffic
Mirror stringSession Name - 镜像会话名称。
- Virtual
Network intId - 镜像会话VNI,取值范围1 ~ 16777215。
- network
Interface StringId - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- priority Integer
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- traffic
Mirror StringFilter Id - 筛选条件实例ID。
- traffic
Mirror StringTarget Id - 镜像目的实例ID。
- description String
- 镜像会话实例描述。
- packet
Length Integer - 镜像会话MTU,超过被截断,取值范围:64~9600。
- project
Name String - 所属项目的名称
-
List<Traffic
Mirror Session Tag> - traffic
Mirror StringSession Name - 镜像会话名称。
- virtual
Network IntegerId - 镜像会话VNI,取值范围1 ~ 16777215。
- network
Interface stringId - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- priority number
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- traffic
Mirror stringFilter Id - 筛选条件实例ID。
- traffic
Mirror stringTarget Id - 镜像目的实例ID。
- description string
- 镜像会话实例描述。
- packet
Length number - 镜像会话MTU,超过被截断,取值范围:64~9600。
- project
Name string - 所属项目的名称
-
Traffic
Mirror Session Tag[] - traffic
Mirror stringSession Name - 镜像会话名称。
- virtual
Network numberId - 镜像会话VNI,取值范围1 ~ 16777215。
- network_
interface_ strid - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- priority int
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- traffic_
mirror_ strfilter_ id - 筛选条件实例ID。
- traffic_
mirror_ strtarget_ id - 镜像目的实例ID。
- description str
- 镜像会话实例描述。
- packet_
length int - 镜像会话MTU,超过被截断,取值范围:64~9600。
- project_
name str - 所属项目的名称
-
Sequence[Traffic
Mirror Session Tag Args] - traffic_
mirror_ strsession_ name - 镜像会话名称。
- virtual_
network_ intid - 镜像会话VNI,取值范围1 ~ 16777215。
- network
Interface StringId - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- priority Number
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- traffic
Mirror StringFilter Id - 筛选条件实例ID。
- traffic
Mirror StringTarget Id - 镜像目的实例ID。
- description String
- 镜像会话实例描述。
- packet
Length Number - 镜像会话MTU,超过被截断,取值范围:64~9600。
- project
Name String - 所属项目的名称
- List<Property Map>
- traffic
Mirror StringSession Name - 镜像会话名称。
- virtual
Network NumberId - 镜像会话VNI,取值范围1 ~ 16777215。
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficMirrorSession resource produces the following output properties:
- Business
Status string - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- Created
Time string - 创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Lock
Reason string - 锁定原因。
- Status string
- 会话状态。
- Traffic
Mirror stringSession Id - 镜像会话实例ID。
- Traffic
Mirror List<string>Source Ids - 镜像源实例列表。
- Business
Status string - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- Created
Time string - 创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Lock
Reason string - 锁定原因。
- Status string
- 会话状态。
- Traffic
Mirror stringSession Id - 镜像会话实例ID。
- Traffic
Mirror []stringSource Ids - 镜像源实例列表。
- business
Status String - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- created
Time String - 创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- lock
Reason String - 锁定原因。
- status String
- 会话状态。
- traffic
Mirror StringSession Id - 镜像会话实例ID。
- traffic
Mirror List<String>Source Ids - 镜像源实例列表。
- business
Status string - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- created
Time string - 创建时间。
- id string
- The provider-assigned unique ID for this managed resource.
- lock
Reason string - 锁定原因。
- status string
- 会话状态。
- traffic
Mirror stringSession Id - 镜像会话实例ID。
- traffic
Mirror string[]Source Ids - 镜像源实例列表。
- business_
status str - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- created_
time str - 创建时间。
- id str
- The provider-assigned unique ID for this managed resource.
- lock_
reason str - 锁定原因。
- status str
- 会话状态。
- traffic_
mirror_ strsession_ id - 镜像会话实例ID。
- traffic_
mirror_ Sequence[str]source_ ids - 镜像源实例列表。
- business
Status String - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- created
Time String - 创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- lock
Reason String - 锁定原因。
- status String
- 会话状态。
- traffic
Mirror StringSession Id - 镜像会话实例ID。
- traffic
Mirror List<String>Source Ids - 镜像源实例列表。
Look up Existing TrafficMirrorSession Resource
Get an existing TrafficMirrorSession 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?: TrafficMirrorSessionState, opts?: CustomResourceOptions): TrafficMirrorSession@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
business_status: Optional[str] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
lock_reason: Optional[str] = None,
network_interface_id: Optional[str] = None,
packet_length: Optional[int] = None,
priority: Optional[int] = None,
project_name: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[TrafficMirrorSessionTagArgs]] = None,
traffic_mirror_filter_id: Optional[str] = None,
traffic_mirror_session_id: Optional[str] = None,
traffic_mirror_session_name: Optional[str] = None,
traffic_mirror_source_ids: Optional[Sequence[str]] = None,
traffic_mirror_target_id: Optional[str] = None,
virtual_network_id: Optional[int] = None) -> TrafficMirrorSessionfunc GetTrafficMirrorSession(ctx *Context, name string, id IDInput, state *TrafficMirrorSessionState, opts ...ResourceOption) (*TrafficMirrorSession, error)public static TrafficMirrorSession Get(string name, Input<string> id, TrafficMirrorSessionState? state, CustomResourceOptions? opts = null)public static TrafficMirrorSession get(String name, Output<String> id, TrafficMirrorSessionState state, CustomResourceOptions options)resources: _: type: bytepluscc:vpc:TrafficMirrorSession get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Business
Status string - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- Created
Time string - 创建时间。
- Description string
- 镜像会话实例描述。
- Lock
Reason string - 锁定原因。
- Network
Interface stringId - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- Packet
Length int - 镜像会话MTU,超过被截断,取值范围:64~9600。
- Priority int
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- Project
Name string - 所属项目的名称
- Status string
- 会话状态。
-
List<Byteplus.
Traffic Mirror Session Tag> - Traffic
Mirror stringFilter Id - 筛选条件实例ID。
- Traffic
Mirror stringSession Id - 镜像会话实例ID。
- Traffic
Mirror stringSession Name - 镜像会话名称。
- Traffic
Mirror List<string>Source Ids - 镜像源实例列表。
- Traffic
Mirror stringTarget Id - 镜像目的实例ID。
- Virtual
Network intId - 镜像会话VNI,取值范围1 ~ 16777215。
- Business
Status string - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- Created
Time string - 创建时间。
- Description string
- 镜像会话实例描述。
- Lock
Reason string - 锁定原因。
- Network
Interface stringId - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- Packet
Length int - 镜像会话MTU,超过被截断,取值范围:64~9600。
- Priority int
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- Project
Name string - 所属项目的名称
- Status string
- 会话状态。
-
[]Traffic
Mirror Session Tag Args - Traffic
Mirror stringFilter Id - 筛选条件实例ID。
- Traffic
Mirror stringSession Id - 镜像会话实例ID。
- Traffic
Mirror stringSession Name - 镜像会话名称。
- Traffic
Mirror []stringSource Ids - 镜像源实例列表。
- Traffic
Mirror stringTarget Id - 镜像目的实例ID。
- Virtual
Network intId - 镜像会话VNI,取值范围1 ~ 16777215。
- business
Status String - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- created
Time String - 创建时间。
- description String
- 镜像会话实例描述。
- lock
Reason String - 锁定原因。
- network
Interface StringId - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- packet
Length Integer - 镜像会话MTU,超过被截断,取值范围:64~9600。
- priority Integer
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- project
Name String - 所属项目的名称
- status String
- 会话状态。
-
List<Traffic
Mirror Session Tag> - traffic
Mirror StringFilter Id - 筛选条件实例ID。
- traffic
Mirror StringSession Id - 镜像会话实例ID。
- traffic
Mirror StringSession Name - 镜像会话名称。
- traffic
Mirror List<String>Source Ids - 镜像源实例列表。
- traffic
Mirror StringTarget Id - 镜像目的实例ID。
- virtual
Network IntegerId - 镜像会话VNI,取值范围1 ~ 16777215。
- business
Status string - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- created
Time string - 创建时间。
- description string
- 镜像会话实例描述。
- lock
Reason string - 锁定原因。
- network
Interface stringId - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- packet
Length number - 镜像会话MTU,超过被截断,取值范围:64~9600。
- priority number
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- project
Name string - 所属项目的名称
- status string
- 会话状态。
-
Traffic
Mirror Session Tag[] - traffic
Mirror stringFilter Id - 筛选条件实例ID。
- traffic
Mirror stringSession Id - 镜像会话实例ID。
- traffic
Mirror stringSession Name - 镜像会话名称。
- traffic
Mirror string[]Source Ids - 镜像源实例列表。
- traffic
Mirror stringTarget Id - 镜像目的实例ID。
- virtual
Network numberId - 镜像会话VNI,取值范围1 ~ 16777215。
- business_
status str - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- created_
time str - 创建时间。
- description str
- 镜像会话实例描述。
- lock_
reason str - 锁定原因。
- network_
interface_ strid - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- packet_
length int - 镜像会话MTU,超过被截断,取值范围:64~9600。
- priority int
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- project_
name str - 所属项目的名称
- status str
- 会话状态。
-
Sequence[Traffic
Mirror Session Tag Args] - traffic_
mirror_ strfilter_ id - 筛选条件实例ID。
- traffic_
mirror_ strsession_ id - 镜像会话实例ID。
- traffic_
mirror_ strsession_ name - 镜像会话名称。
- traffic_
mirror_ Sequence[str]source_ ids - 镜像源实例列表。
- traffic_
mirror_ strtarget_ id - 镜像目的实例ID。
- virtual_
network_ intid - 镜像会话VNI,取值范围1 ~ 16777215。
- business
Status String - 会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
- created
Time String - 创建时间。
- description String
- 镜像会话实例描述。
- lock
Reason String - 锁定原因。
- network
Interface StringId - 镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
- packet
Length Number - 镜像会话MTU,超过被截断,取值范围:64~9600。
- priority Number
- 镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
- project
Name String - 所属项目的名称
- status String
- 会话状态。
- List<Property Map>
- traffic
Mirror StringFilter Id - 筛选条件实例ID。
- traffic
Mirror StringSession Id - 镜像会话实例ID。
- traffic
Mirror StringSession Name - 镜像会话名称。
- traffic
Mirror List<String>Source Ids - 镜像源实例列表。
- traffic
Mirror StringTarget Id - 镜像目的实例ID。
- virtual
Network NumberId - 镜像会话VNI,取值范围1 ~ 16777215。
Supporting Types
TrafficMirrorSessionTag, TrafficMirrorSessionTagArgs
Import
$ pulumi import bytepluscc:vpc/trafficMirrorSession:TrafficMirrorSession example "traffic_mirror_session_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, Mar 9, 2026 by Byteplus
