Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine
volcengine.vpc.TrafficMirrorSessions
Explore with Pulumi AI
Deprecated: volcengine.vpc.TrafficMirrorSessions has been deprecated in favor of volcengine.vpc.getTrafficMirrorSessions
Use this data source to query detailed information of traffic mirror sessions
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.vpc.getTrafficMirrorSessions({
trafficMirrorSessionIds: ["tms-mjpcyvp71r0g5smt1ayf****"],
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.vpc.get_traffic_mirror_sessions(traffic_mirror_session_ids=["tms-mjpcyvp71r0g5smt1ayf****"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.GetTrafficMirrorSessions(ctx, &vpc.GetTrafficMirrorSessionsArgs{
TrafficMirrorSessionIds: []string{
"tms-mjpcyvp71r0g5smt1ayf****",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Vpc.GetTrafficMirrorSessions.Invoke(new()
{
TrafficMirrorSessionIds = new[]
{
"tms-mjpcyvp71r0g5smt1ayf****",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.VpcFunctions;
import com.pulumi.volcengine.vpc.inputs.GetTrafficMirrorSessionsArgs;
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) {
final var foo = VpcFunctions.getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs.builder()
.trafficMirrorSessionIds("tms-mjpcyvp71r0g5smt1ayf****")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:vpc:getTrafficMirrorSessions
Arguments:
trafficMirrorSessionIds:
- tms-mjpcyvp71r0g5smt1ayf****
Using TrafficMirrorSessions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function trafficMirrorSessions(args: TrafficMirrorSessionsArgs, opts?: InvokeOptions): Promise<TrafficMirrorSessionsResult>
function trafficMirrorSessionsOutput(args: TrafficMirrorSessionsOutputArgs, opts?: InvokeOptions): Output<TrafficMirrorSessionsResult>
def traffic_mirror_sessions(name_regex: Optional[str] = None,
network_interface_id: Optional[str] = None,
output_file: Optional[str] = None,
packet_length: Optional[int] = None,
priority: Optional[int] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[TrafficMirrorSessionsTag]] = None,
traffic_mirror_filter_id: Optional[str] = None,
traffic_mirror_session_ids: Optional[Sequence[str]] = None,
traffic_mirror_session_names: Optional[Sequence[str]] = None,
traffic_mirror_target_id: Optional[str] = None,
virtual_network_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> TrafficMirrorSessionsResult
def traffic_mirror_sessions_output(name_regex: Optional[pulumi.Input[str]] = None,
network_interface_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
packet_length: Optional[pulumi.Input[int]] = None,
priority: Optional[pulumi.Input[int]] = None,
project_name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[TrafficMirrorSessionsTagArgs]]]] = None,
traffic_mirror_filter_id: Optional[pulumi.Input[str]] = None,
traffic_mirror_session_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
traffic_mirror_session_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
traffic_mirror_target_id: Optional[pulumi.Input[str]] = None,
virtual_network_id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[TrafficMirrorSessionsResult]
func TrafficMirrorSessions(ctx *Context, args *TrafficMirrorSessionsArgs, opts ...InvokeOption) (*TrafficMirrorSessionsResult, error)
func TrafficMirrorSessionsOutput(ctx *Context, args *TrafficMirrorSessionsOutputArgs, opts ...InvokeOption) TrafficMirrorSessionsResultOutput
public static class TrafficMirrorSessions
{
public static Task<TrafficMirrorSessionsResult> InvokeAsync(TrafficMirrorSessionsArgs args, InvokeOptions? opts = null)
public static Output<TrafficMirrorSessionsResult> Invoke(TrafficMirrorSessionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<TrafficMirrorSessionsResult> trafficMirrorSessions(TrafficMirrorSessionsArgs args, InvokeOptions options)
public static Output<TrafficMirrorSessionsResult> trafficMirrorSessions(TrafficMirrorSessionsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vpc:TrafficMirrorSessions
arguments:
# arguments dictionary
The following arguments are supported:
- Name
Regex string - A Name Regex of Resource.
- Network
Interface stringId - The ID of network interface.
- Output
File string - File name where to save data source results.
- Packet
Length int - The packet length of traffic mirror session.
- Priority int
- The priority of traffic mirror session.
- Project
Name string - The project name of traffic mirror session.
- List<Traffic
Mirror Sessions Tag> - Tags.
- Traffic
Mirror stringFilter Id - The ID of traffic mirror filter.
- Traffic
Mirror List<string>Session Ids - A list of traffic mirror session IDs.
- Traffic
Mirror List<string>Session Names - A list of traffic mirror session names.
- Traffic
Mirror stringTarget Id - The ID of traffic mirror target.
- Virtual
Network intId - The ID of virtual network.
- Name
Regex string - A Name Regex of Resource.
- Network
Interface stringId - The ID of network interface.
- Output
File string - File name where to save data source results.
- Packet
Length int - The packet length of traffic mirror session.
- Priority int
- The priority of traffic mirror session.
- Project
Name string - The project name of traffic mirror session.
- []Traffic
Mirror Sessions Tag - Tags.
- Traffic
Mirror stringFilter Id - The ID of traffic mirror filter.
- Traffic
Mirror []stringSession Ids - A list of traffic mirror session IDs.
- Traffic
Mirror []stringSession Names - A list of traffic mirror session names.
- Traffic
Mirror stringTarget Id - The ID of traffic mirror target.
- Virtual
Network intId - The ID of virtual network.
- name
Regex String - A Name Regex of Resource.
- network
Interface StringId - The ID of network interface.
- output
File String - File name where to save data source results.
- packet
Length Integer - The packet length of traffic mirror session.
- priority Integer
- The priority of traffic mirror session.
- project
Name String - The project name of traffic mirror session.
- List<Traffic
Mirror Sessions Tag> - Tags.
- traffic
Mirror StringFilter Id - The ID of traffic mirror filter.
- traffic
Mirror List<String>Session Ids - A list of traffic mirror session IDs.
- traffic
Mirror List<String>Session Names - A list of traffic mirror session names.
- traffic
Mirror StringTarget Id - The ID of traffic mirror target.
- virtual
Network IntegerId - The ID of virtual network.
- name
Regex string - A Name Regex of Resource.
- network
Interface stringId - The ID of network interface.
- output
File string - File name where to save data source results.
- packet
Length number - The packet length of traffic mirror session.
- priority number
- The priority of traffic mirror session.
- project
Name string - The project name of traffic mirror session.
- Traffic
Mirror Sessions Tag[] - Tags.
- traffic
Mirror stringFilter Id - The ID of traffic mirror filter.
- traffic
Mirror string[]Session Ids - A list of traffic mirror session IDs.
- traffic
Mirror string[]Session Names - A list of traffic mirror session names.
- traffic
Mirror stringTarget Id - The ID of traffic mirror target.
- virtual
Network numberId - The ID of virtual network.
- name_
regex str - A Name Regex of Resource.
- network_
interface_ strid - The ID of network interface.
- output_
file str - File name where to save data source results.
- packet_
length int - The packet length of traffic mirror session.
- priority int
- The priority of traffic mirror session.
- project_
name str - The project name of traffic mirror session.
- Sequence[Traffic
Mirror Sessions Tag] - Tags.
- traffic_
mirror_ strfilter_ id - The ID of traffic mirror filter.
- traffic_
mirror_ Sequence[str]session_ ids - A list of traffic mirror session IDs.
- traffic_
mirror_ Sequence[str]session_ names - A list of traffic mirror session names.
- traffic_
mirror_ strtarget_ id - The ID of traffic mirror target.
- virtual_
network_ intid - The ID of virtual network.
- name
Regex String - A Name Regex of Resource.
- network
Interface StringId - The ID of network interface.
- output
File String - File name where to save data source results.
- packet
Length Number - The packet length of traffic mirror session.
- priority Number
- The priority of traffic mirror session.
- project
Name String - The project name of traffic mirror session.
- List<Property Map>
- Tags.
- traffic
Mirror StringFilter Id - The ID of traffic mirror filter.
- traffic
Mirror List<String>Session Ids - A list of traffic mirror session IDs.
- traffic
Mirror List<String>Session Names - A list of traffic mirror session names.
- traffic
Mirror StringTarget Id - The ID of traffic mirror target.
- virtual
Network NumberId - The ID of virtual network.
TrafficMirrorSessions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Traffic
Mirror List<TrafficSessions Mirror Sessions Traffic Mirror Session> - The collection of query.
- Name
Regex string - Network
Interface stringId - Output
File string - Packet
Length int - The packet length of traffic mirror session.
- Priority int
- The priority of traffic mirror session.
- Project
Name string - The project name of traffic mirror session.
- List<Traffic
Mirror Sessions Tag> - Tags.
- Traffic
Mirror stringFilter Id - The ID of traffic mirror filter.
- Traffic
Mirror List<string>Session Ids - Traffic
Mirror List<string>Session Names - Traffic
Mirror stringTarget Id - The ID of traffic mirror target.
- Virtual
Network intId - The ID of virtual network.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Traffic
Mirror []TrafficSessions Mirror Sessions Traffic Mirror Session - The collection of query.
- Name
Regex string - Network
Interface stringId - Output
File string - Packet
Length int - The packet length of traffic mirror session.
- Priority int
- The priority of traffic mirror session.
- Project
Name string - The project name of traffic mirror session.
- []Traffic
Mirror Sessions Tag - Tags.
- Traffic
Mirror stringFilter Id - The ID of traffic mirror filter.
- Traffic
Mirror []stringSession Ids - Traffic
Mirror []stringSession Names - Traffic
Mirror stringTarget Id - The ID of traffic mirror target.
- Virtual
Network intId - The ID of virtual network.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- traffic
Mirror List<TrafficSessions Mirror Sessions Traffic Mirror Session> - The collection of query.
- name
Regex String - network
Interface StringId - output
File String - packet
Length Integer - The packet length of traffic mirror session.
- priority Integer
- The priority of traffic mirror session.
- project
Name String - The project name of traffic mirror session.
- List<Traffic
Mirror Sessions Tag> - Tags.
- traffic
Mirror StringFilter Id - The ID of traffic mirror filter.
- traffic
Mirror List<String>Session Ids - traffic
Mirror List<String>Session Names - traffic
Mirror StringTarget Id - The ID of traffic mirror target.
- virtual
Network IntegerId - The ID of virtual network.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- traffic
Mirror TrafficSessions Mirror Sessions Traffic Mirror Session[] - The collection of query.
- name
Regex string - network
Interface stringId - output
File string - packet
Length number - The packet length of traffic mirror session.
- priority number
- The priority of traffic mirror session.
- project
Name string - The project name of traffic mirror session.
- Traffic
Mirror Sessions Tag[] - Tags.
- traffic
Mirror stringFilter Id - The ID of traffic mirror filter.
- traffic
Mirror string[]Session Ids - traffic
Mirror string[]Session Names - traffic
Mirror stringTarget Id - The ID of traffic mirror target.
- virtual
Network numberId - The ID of virtual network.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- traffic_
mirror_ Sequence[Trafficsessions Mirror Sessions Traffic Mirror Session] - The collection of query.
- name_
regex str - network_
interface_ strid - output_
file str - packet_
length int - The packet length of traffic mirror session.
- priority int
- The priority of traffic mirror session.
- project_
name str - The project name of traffic mirror session.
- Sequence[Traffic
Mirror Sessions Tag] - Tags.
- traffic_
mirror_ strfilter_ id - The ID of traffic mirror filter.
- traffic_
mirror_ Sequence[str]session_ ids - traffic_
mirror_ Sequence[str]session_ names - traffic_
mirror_ strtarget_ id - The ID of traffic mirror target.
- virtual_
network_ intid - The ID of virtual network.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- traffic
Mirror List<Property Map>Sessions - The collection of query.
- name
Regex String - network
Interface StringId - output
File String - packet
Length Number - The packet length of traffic mirror session.
- priority Number
- The priority of traffic mirror session.
- project
Name String - The project name of traffic mirror session.
- List<Property Map>
- Tags.
- traffic
Mirror StringFilter Id - The ID of traffic mirror filter.
- traffic
Mirror List<String>Session Ids - traffic
Mirror List<String>Session Names - traffic
Mirror StringTarget Id - The ID of traffic mirror target.
- virtual
Network NumberId - The ID of virtual network.
Supporting Types
TrafficMirrorSessionsTag
TrafficMirrorSessionsTrafficMirrorSession
- Business
Status string - The business status of traffic mirror session.
- Created
At string - The create time of traffic mirror session.
- Description string
- The description of traffic mirror session.
- Id string
- The ID of traffic mirror session.
- Lock
Reason string - The lock reason of traffic mirror session.
- Packet
Length int - The packet length of traffic mirror session.
- Priority int
- The priority of traffic mirror session.
- Project
Name string - The project name of traffic mirror session.
- Status string
- The status of traffic mirror session.
- List<Traffic
Mirror Sessions Traffic Mirror Session Tag> - Tags.
- Traffic
Mirror stringFilter Id - The ID of traffic mirror filter.
- Traffic
Mirror stringSession Id - The ID of traffic mirror session.
- Traffic
Mirror stringSession Name - The name of traffic mirror session.
- Traffic
Mirror List<string>Source Ids - The IDs of traffic mirror source.
- Traffic
Mirror stringTarget Id - The ID of traffic mirror target.
- Updated
At string - The update time of traffic mirror session.
- Virtual
Network intId - The ID of virtual network.
- Business
Status string - The business status of traffic mirror session.
- Created
At string - The create time of traffic mirror session.
- Description string
- The description of traffic mirror session.
- Id string
- The ID of traffic mirror session.
- Lock
Reason string - The lock reason of traffic mirror session.
- Packet
Length int - The packet length of traffic mirror session.
- Priority int
- The priority of traffic mirror session.
- Project
Name string - The project name of traffic mirror session.
- Status string
- The status of traffic mirror session.
- []Traffic
Mirror Sessions Traffic Mirror Session Tag - Tags.
- Traffic
Mirror stringFilter Id - The ID of traffic mirror filter.
- Traffic
Mirror stringSession Id - The ID of traffic mirror session.
- Traffic
Mirror stringSession Name - The name of traffic mirror session.
- Traffic
Mirror []stringSource Ids - The IDs of traffic mirror source.
- Traffic
Mirror stringTarget Id - The ID of traffic mirror target.
- Updated
At string - The update time of traffic mirror session.
- Virtual
Network intId - The ID of virtual network.
- business
Status String - The business status of traffic mirror session.
- created
At String - The create time of traffic mirror session.
- description String
- The description of traffic mirror session.
- id String
- The ID of traffic mirror session.
- lock
Reason String - The lock reason of traffic mirror session.
- packet
Length Integer - The packet length of traffic mirror session.
- priority Integer
- The priority of traffic mirror session.
- project
Name String - The project name of traffic mirror session.
- status String
- The status of traffic mirror session.
- List<Traffic
Mirror Sessions Traffic Mirror Session Tag> - Tags.
- traffic
Mirror StringFilter Id - The ID of traffic mirror filter.
- traffic
Mirror StringSession Id - The ID of traffic mirror session.
- traffic
Mirror StringSession Name - The name of traffic mirror session.
- traffic
Mirror List<String>Source Ids - The IDs of traffic mirror source.
- traffic
Mirror StringTarget Id - The ID of traffic mirror target.
- updated
At String - The update time of traffic mirror session.
- virtual
Network IntegerId - The ID of virtual network.
- business
Status string - The business status of traffic mirror session.
- created
At string - The create time of traffic mirror session.
- description string
- The description of traffic mirror session.
- id string
- The ID of traffic mirror session.
- lock
Reason string - The lock reason of traffic mirror session.
- packet
Length number - The packet length of traffic mirror session.
- priority number
- The priority of traffic mirror session.
- project
Name string - The project name of traffic mirror session.
- status string
- The status of traffic mirror session.
- Traffic
Mirror Sessions Traffic Mirror Session Tag[] - Tags.
- traffic
Mirror stringFilter Id - The ID of traffic mirror filter.
- traffic
Mirror stringSession Id - The ID of traffic mirror session.
- traffic
Mirror stringSession Name - The name of traffic mirror session.
- traffic
Mirror string[]Source Ids - The IDs of traffic mirror source.
- traffic
Mirror stringTarget Id - The ID of traffic mirror target.
- updated
At string - The update time of traffic mirror session.
- virtual
Network numberId - The ID of virtual network.
- business_
status str - The business status of traffic mirror session.
- created_
at str - The create time of traffic mirror session.
- description str
- The description of traffic mirror session.
- id str
- The ID of traffic mirror session.
- lock_
reason str - The lock reason of traffic mirror session.
- packet_
length int - The packet length of traffic mirror session.
- priority int
- The priority of traffic mirror session.
- project_
name str - The project name of traffic mirror session.
- status str
- The status of traffic mirror session.
- Sequence[Traffic
Mirror Sessions Traffic Mirror Session Tag] - Tags.
- traffic_
mirror_ strfilter_ id - The ID of traffic mirror filter.
- traffic_
mirror_ strsession_ id - The ID of traffic mirror session.
- traffic_
mirror_ strsession_ name - The name of traffic mirror session.
- traffic_
mirror_ Sequence[str]source_ ids - The IDs of traffic mirror source.
- traffic_
mirror_ strtarget_ id - The ID of traffic mirror target.
- updated_
at str - The update time of traffic mirror session.
- virtual_
network_ intid - The ID of virtual network.
- business
Status String - The business status of traffic mirror session.
- created
At String - The create time of traffic mirror session.
- description String
- The description of traffic mirror session.
- id String
- The ID of traffic mirror session.
- lock
Reason String - The lock reason of traffic mirror session.
- packet
Length Number - The packet length of traffic mirror session.
- priority Number
- The priority of traffic mirror session.
- project
Name String - The project name of traffic mirror session.
- status String
- The status of traffic mirror session.
- List<Property Map>
- Tags.
- traffic
Mirror StringFilter Id - The ID of traffic mirror filter.
- traffic
Mirror StringSession Id - The ID of traffic mirror session.
- traffic
Mirror StringSession Name - The name of traffic mirror session.
- traffic
Mirror List<String>Source Ids - The IDs of traffic mirror source.
- traffic
Mirror StringTarget Id - The ID of traffic mirror target.
- updated
At String - The update time of traffic mirror session.
- virtual
Network NumberId - The ID of virtual network.
TrafficMirrorSessionsTrafficMirrorSessionTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.