1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. vpc
  5. TrafficMirrorSession
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.16
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:

    NetworkInterfaceId string
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    Priority int
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    TrafficMirrorFilterId string
    筛选条件实例ID。
    TrafficMirrorTargetId string
    镜像目的实例ID。
    Description string
    镜像会话实例描述。
    PacketLength int
    镜像会话MTU,超过被截断,取值范围:64~9600。
    ProjectName string
    所属项目的名称
    Tags List<Byteplus.TrafficMirrorSessionTag>
    TrafficMirrorSessionName string
    镜像会话名称。
    VirtualNetworkId int
    镜像会话VNI,取值范围1 ~ 16777215。
    NetworkInterfaceId string
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    Priority int
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    TrafficMirrorFilterId string
    筛选条件实例ID。
    TrafficMirrorTargetId string
    镜像目的实例ID。
    Description string
    镜像会话实例描述。
    PacketLength int
    镜像会话MTU,超过被截断,取值范围:64~9600。
    ProjectName string
    所属项目的名称
    Tags []TrafficMirrorSessionTagArgs
    TrafficMirrorSessionName string
    镜像会话名称。
    VirtualNetworkId int
    镜像会话VNI,取值范围1 ~ 16777215。
    networkInterfaceId String
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    priority Integer
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    trafficMirrorFilterId String
    筛选条件实例ID。
    trafficMirrorTargetId String
    镜像目的实例ID。
    description String
    镜像会话实例描述。
    packetLength Integer
    镜像会话MTU,超过被截断,取值范围:64~9600。
    projectName String
    所属项目的名称
    tags List<TrafficMirrorSessionTag>
    trafficMirrorSessionName String
    镜像会话名称。
    virtualNetworkId Integer
    镜像会话VNI,取值范围1 ~ 16777215。
    networkInterfaceId string
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    priority number
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    trafficMirrorFilterId string
    筛选条件实例ID。
    trafficMirrorTargetId string
    镜像目的实例ID。
    description string
    镜像会话实例描述。
    packetLength number
    镜像会话MTU,超过被截断,取值范围:64~9600。
    projectName string
    所属项目的名称
    tags TrafficMirrorSessionTag[]
    trafficMirrorSessionName string
    镜像会话名称。
    virtualNetworkId number
    镜像会话VNI,取值范围1 ~ 16777215。
    network_interface_id str
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    priority int
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    traffic_mirror_filter_id str
    筛选条件实例ID。
    traffic_mirror_target_id str
    镜像目的实例ID。
    description str
    镜像会话实例描述。
    packet_length int
    镜像会话MTU,超过被截断,取值范围:64~9600。
    project_name str
    所属项目的名称
    tags Sequence[TrafficMirrorSessionTagArgs]
    traffic_mirror_session_name str
    镜像会话名称。
    virtual_network_id int
    镜像会话VNI,取值范围1 ~ 16777215。
    networkInterfaceId String
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    priority Number
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    trafficMirrorFilterId String
    筛选条件实例ID。
    trafficMirrorTargetId String
    镜像目的实例ID。
    description String
    镜像会话实例描述。
    packetLength Number
    镜像会话MTU,超过被截断,取值范围:64~9600。
    projectName String
    所属项目的名称
    tags List<Property Map>
    trafficMirrorSessionName String
    镜像会话名称。
    virtualNetworkId Number
    镜像会话VNI,取值范围1 ~ 16777215。

    Outputs

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

    BusinessStatus string
    会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
    CreatedTime string
    创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    LockReason string
    锁定原因。
    Status string
    会话状态。
    TrafficMirrorSessionId string
    镜像会话实例ID。
    TrafficMirrorSourceIds List<string>
    镜像源实例列表。
    BusinessStatus string
    会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
    CreatedTime string
    创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    LockReason string
    锁定原因。
    Status string
    会话状态。
    TrafficMirrorSessionId string
    镜像会话实例ID。
    TrafficMirrorSourceIds []string
    镜像源实例列表。
    businessStatus String
    会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
    createdTime String
    创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    lockReason String
    锁定原因。
    status String
    会话状态。
    trafficMirrorSessionId String
    镜像会话实例ID。
    trafficMirrorSourceIds List<String>
    镜像源实例列表。
    businessStatus string
    会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
    createdTime string
    创建时间。
    id string
    The provider-assigned unique ID for this managed resource.
    lockReason string
    锁定原因。
    status string
    会话状态。
    trafficMirrorSessionId string
    镜像会话实例ID。
    trafficMirrorSourceIds string[]
    镜像源实例列表。
    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_session_id str
    镜像会话实例ID。
    traffic_mirror_source_ids Sequence[str]
    镜像源实例列表。
    businessStatus String
    会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
    createdTime String
    创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    lockReason String
    锁定原因。
    status String
    会话状态。
    trafficMirrorSessionId String
    镜像会话实例ID。
    trafficMirrorSourceIds List<String>
    镜像源实例列表。

    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) -> TrafficMirrorSession
    func 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.
    The following state arguments are supported:
    BusinessStatus string
    会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
    CreatedTime string
    创建时间。
    Description string
    镜像会话实例描述。
    LockReason string
    锁定原因。
    NetworkInterfaceId string
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    PacketLength int
    镜像会话MTU,超过被截断,取值范围:64~9600。
    Priority int
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    ProjectName string
    所属项目的名称
    Status string
    会话状态。
    Tags List<Byteplus.TrafficMirrorSessionTag>
    TrafficMirrorFilterId string
    筛选条件实例ID。
    TrafficMirrorSessionId string
    镜像会话实例ID。
    TrafficMirrorSessionName string
    镜像会话名称。
    TrafficMirrorSourceIds List<string>
    镜像源实例列表。
    TrafficMirrorTargetId string
    镜像目的实例ID。
    VirtualNetworkId int
    镜像会话VNI,取值范围1 ~ 16777215。
    BusinessStatus string
    会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
    CreatedTime string
    创建时间。
    Description string
    镜像会话实例描述。
    LockReason string
    锁定原因。
    NetworkInterfaceId string
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    PacketLength int
    镜像会话MTU,超过被截断,取值范围:64~9600。
    Priority int
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    ProjectName string
    所属项目的名称
    Status string
    会话状态。
    Tags []TrafficMirrorSessionTagArgs
    TrafficMirrorFilterId string
    筛选条件实例ID。
    TrafficMirrorSessionId string
    镜像会话实例ID。
    TrafficMirrorSessionName string
    镜像会话名称。
    TrafficMirrorSourceIds []string
    镜像源实例列表。
    TrafficMirrorTargetId string
    镜像目的实例ID。
    VirtualNetworkId int
    镜像会话VNI,取值范围1 ~ 16777215。
    businessStatus String
    会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
    createdTime String
    创建时间。
    description String
    镜像会话实例描述。
    lockReason String
    锁定原因。
    networkInterfaceId String
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    packetLength Integer
    镜像会话MTU,超过被截断,取值范围:64~9600。
    priority Integer
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    projectName String
    所属项目的名称
    status String
    会话状态。
    tags List<TrafficMirrorSessionTag>
    trafficMirrorFilterId String
    筛选条件实例ID。
    trafficMirrorSessionId String
    镜像会话实例ID。
    trafficMirrorSessionName String
    镜像会话名称。
    trafficMirrorSourceIds List<String>
    镜像源实例列表。
    trafficMirrorTargetId String
    镜像目的实例ID。
    virtualNetworkId Integer
    镜像会话VNI,取值范围1 ~ 16777215。
    businessStatus string
    会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
    createdTime string
    创建时间。
    description string
    镜像会话实例描述。
    lockReason string
    锁定原因。
    networkInterfaceId string
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    packetLength number
    镜像会话MTU,超过被截断,取值范围:64~9600。
    priority number
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    projectName string
    所属项目的名称
    status string
    会话状态。
    tags TrafficMirrorSessionTag[]
    trafficMirrorFilterId string
    筛选条件实例ID。
    trafficMirrorSessionId string
    镜像会话实例ID。
    trafficMirrorSessionName string
    镜像会话名称。
    trafficMirrorSourceIds string[]
    镜像源实例列表。
    trafficMirrorTargetId string
    镜像目的实例ID。
    virtualNetworkId number
    镜像会话VNI,取值范围1 ~ 16777215。
    business_status str
    会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
    created_time str
    创建时间。
    description str
    镜像会话实例描述。
    lock_reason str
    锁定原因。
    network_interface_id str
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    packet_length int
    镜像会话MTU,超过被截断,取值范围:64~9600。
    priority int
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    project_name str
    所属项目的名称
    status str
    会话状态。
    tags Sequence[TrafficMirrorSessionTagArgs]
    traffic_mirror_filter_id str
    筛选条件实例ID。
    traffic_mirror_session_id str
    镜像会话实例ID。
    traffic_mirror_session_name str
    镜像会话名称。
    traffic_mirror_source_ids Sequence[str]
    镜像源实例列表。
    traffic_mirror_target_id str
    镜像目的实例ID。
    virtual_network_id int
    镜像会话VNI,取值范围1 ~ 16777215。
    businessStatus String
    会话计费状态。Normal:正常计费中。 - FinancialLocked:欠费锁定。
    createdTime String
    创建时间。
    description String
    镜像会话实例描述。
    lockReason String
    锁定原因。
    networkInterfaceId String
    镜像源实例ID,当前只支持ECS的主网卡和辅助网卡。
    packetLength Number
    镜像会话MTU,超过被截断,取值范围:64~9600。
    priority Number
    镜像会话优先级,取值范围1 ~ 32766,同一账户下镜像会话优先级不能重复。
    projectName String
    所属项目的名称
    status String
    会话状态。
    tags List<Property Map>
    trafficMirrorFilterId String
    筛选条件实例ID。
    trafficMirrorSessionId String
    镜像会话实例ID。
    trafficMirrorSessionName String
    镜像会话名称。
    trafficMirrorSourceIds List<String>
    镜像源实例列表。
    trafficMirrorTargetId String
    镜像目的实例ID。
    virtualNetworkId Number
    镜像会话VNI,取值范围1 ~ 16777215。

    Supporting Types

    TrafficMirrorSessionTag, TrafficMirrorSessionTagArgs

    Key string
    标签键。
    Value string
    标签值。
    Key string
    标签键。
    Value string
    标签值。
    key String
    标签键。
    value String
    标签值。
    key string
    标签键。
    value string
    标签值。
    key str
    标签键。
    value str
    标签值。
    key String
    标签键。
    value String
    标签值。

    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 bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.16
    published on Monday, Mar 9, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.