1. Packages
  2. Volcengine
  3. API Docs
  4. vpc
  5. getTrafficMirrorTargets
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

volcengine.vpc.getTrafficMirrorTargets

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

    Use this data source to query detailed information of traffic mirror targets

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.vpc.getTrafficMirrorTargets({
        trafficMirrorTargetIds: ["tmt-rry7yljufsw0v0x58w2****"],
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.vpc.get_traffic_mirror_targets(traffic_mirror_target_ids=["tmt-rry7yljufsw0v0x58w2****"])
    
    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.GetTrafficMirrorTargets(ctx, &vpc.GetTrafficMirrorTargetsArgs{
    			TrafficMirrorTargetIds: []string{
    				"tmt-rry7yljufsw0v0x58w2****",
    			},
    		}, 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.GetTrafficMirrorTargets.Invoke(new()
        {
            TrafficMirrorTargetIds = new[]
            {
                "tmt-rry7yljufsw0v0x58w2****",
            },
        });
    
    });
    
    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.GetTrafficMirrorTargetsArgs;
    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.getTrafficMirrorTargets(GetTrafficMirrorTargetsArgs.builder()
                .trafficMirrorTargetIds("tmt-rry7yljufsw0v0x58w2****")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:vpc:getTrafficMirrorTargets
          Arguments:
            trafficMirrorTargetIds:
              - tmt-rry7yljufsw0v0x58w2****
    

    Using getTrafficMirrorTargets

    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 getTrafficMirrorTargets(args: GetTrafficMirrorTargetsArgs, opts?: InvokeOptions): Promise<GetTrafficMirrorTargetsResult>
    function getTrafficMirrorTargetsOutput(args: GetTrafficMirrorTargetsOutputArgs, opts?: InvokeOptions): Output<GetTrafficMirrorTargetsResult>
    def get_traffic_mirror_targets(name_regex: Optional[str] = None,
                                   output_file: Optional[str] = None,
                                   project_name: Optional[str] = None,
                                   tags: Optional[Sequence[GetTrafficMirrorTargetsTag]] = None,
                                   traffic_mirror_target_ids: Optional[Sequence[str]] = None,
                                   traffic_mirror_target_name: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetTrafficMirrorTargetsResult
    def get_traffic_mirror_targets_output(name_regex: Optional[pulumi.Input[str]] = None,
                                   output_file: Optional[pulumi.Input[str]] = None,
                                   project_name: Optional[pulumi.Input[str]] = None,
                                   tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetTrafficMirrorTargetsTagArgs]]]] = None,
                                   traffic_mirror_target_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                   traffic_mirror_target_name: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetTrafficMirrorTargetsResult]
    func GetTrafficMirrorTargets(ctx *Context, args *GetTrafficMirrorTargetsArgs, opts ...InvokeOption) (*GetTrafficMirrorTargetsResult, error)
    func GetTrafficMirrorTargetsOutput(ctx *Context, args *GetTrafficMirrorTargetsOutputArgs, opts ...InvokeOption) GetTrafficMirrorTargetsResultOutput

    > Note: This function is named GetTrafficMirrorTargets in the Go SDK.

    public static class GetTrafficMirrorTargets 
    {
        public static Task<GetTrafficMirrorTargetsResult> InvokeAsync(GetTrafficMirrorTargetsArgs args, InvokeOptions? opts = null)
        public static Output<GetTrafficMirrorTargetsResult> Invoke(GetTrafficMirrorTargetsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTrafficMirrorTargetsResult> getTrafficMirrorTargets(GetTrafficMirrorTargetsArgs args, InvokeOptions options)
    public static Output<GetTrafficMirrorTargetsResult> getTrafficMirrorTargets(GetTrafficMirrorTargetsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:vpc/getTrafficMirrorTargets:getTrafficMirrorTargets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    ProjectName string
    The project name of traffic mirror target.
    Tags List<GetTrafficMirrorTargetsTag>
    Tags.
    TrafficMirrorTargetIds List<string>
    A list of traffic mirror target IDs.
    TrafficMirrorTargetName string
    The name of traffic mirror target.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    ProjectName string
    The project name of traffic mirror target.
    Tags []GetTrafficMirrorTargetsTag
    Tags.
    TrafficMirrorTargetIds []string
    A list of traffic mirror target IDs.
    TrafficMirrorTargetName string
    The name of traffic mirror target.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    projectName String
    The project name of traffic mirror target.
    tags List<GetTrafficMirrorTargetsTag>
    Tags.
    trafficMirrorTargetIds List<String>
    A list of traffic mirror target IDs.
    trafficMirrorTargetName String
    The name of traffic mirror target.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    projectName string
    The project name of traffic mirror target.
    tags GetTrafficMirrorTargetsTag[]
    Tags.
    trafficMirrorTargetIds string[]
    A list of traffic mirror target IDs.
    trafficMirrorTargetName string
    The name of traffic mirror target.
    name_regex str
    A Name Regex of Resource.
    output_file str
    File name where to save data source results.
    project_name str
    The project name of traffic mirror target.
    tags Sequence[GetTrafficMirrorTargetsTag]
    Tags.
    traffic_mirror_target_ids Sequence[str]
    A list of traffic mirror target IDs.
    traffic_mirror_target_name str
    The name of traffic mirror target.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    projectName String
    The project name of traffic mirror target.
    tags List<Property Map>
    Tags.
    trafficMirrorTargetIds List<String>
    A list of traffic mirror target IDs.
    trafficMirrorTargetName String
    The name of traffic mirror target.

    getTrafficMirrorTargets Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    TrafficMirrorTargets List<GetTrafficMirrorTargetsTrafficMirrorTarget>
    The collection of query.
    NameRegex string
    OutputFile string
    ProjectName string
    The project name of traffic mirror target.
    Tags List<GetTrafficMirrorTargetsTag>
    Tags.
    TrafficMirrorTargetIds List<string>
    TrafficMirrorTargetName string
    The name of traffic mirror target.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    TrafficMirrorTargets []GetTrafficMirrorTargetsTrafficMirrorTarget
    The collection of query.
    NameRegex string
    OutputFile string
    ProjectName string
    The project name of traffic mirror target.
    Tags []GetTrafficMirrorTargetsTag
    Tags.
    TrafficMirrorTargetIds []string
    TrafficMirrorTargetName string
    The name of traffic mirror target.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    trafficMirrorTargets List<GetTrafficMirrorTargetsTrafficMirrorTarget>
    The collection of query.
    nameRegex String
    outputFile String
    projectName String
    The project name of traffic mirror target.
    tags List<GetTrafficMirrorTargetsTag>
    Tags.
    trafficMirrorTargetIds List<String>
    trafficMirrorTargetName String
    The name of traffic mirror target.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    trafficMirrorTargets GetTrafficMirrorTargetsTrafficMirrorTarget[]
    The collection of query.
    nameRegex string
    outputFile string
    projectName string
    The project name of traffic mirror target.
    tags GetTrafficMirrorTargetsTag[]
    Tags.
    trafficMirrorTargetIds string[]
    trafficMirrorTargetName string
    The name of traffic mirror target.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    traffic_mirror_targets Sequence[GetTrafficMirrorTargetsTrafficMirrorTarget]
    The collection of query.
    name_regex str
    output_file str
    project_name str
    The project name of traffic mirror target.
    tags Sequence[GetTrafficMirrorTargetsTag]
    Tags.
    traffic_mirror_target_ids Sequence[str]
    traffic_mirror_target_name str
    The name of traffic mirror target.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    trafficMirrorTargets List<Property Map>
    The collection of query.
    nameRegex String
    outputFile String
    projectName String
    The project name of traffic mirror target.
    tags List<Property Map>
    Tags.
    trafficMirrorTargetIds List<String>
    trafficMirrorTargetName String
    The name of traffic mirror target.

    Supporting Types

    GetTrafficMirrorTargetsTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    GetTrafficMirrorTargetsTrafficMirrorTarget

    CreatedAt string
    The create time of traffic mirror target.
    Description string
    The description of traffic mirror target.
    Id string
    The ID of traffic mirror target.
    InstanceId string
    The instance id of traffic mirror target.
    InstanceType string
    The instance type of traffic mirror target.
    ProjectName string
    The project name of traffic mirror target.
    Status string
    The status of traffic mirror target.
    Tags List<GetTrafficMirrorTargetsTrafficMirrorTargetTag>
    Tags.
    TrafficMirrorTargetId string
    The ID of traffic mirror target.
    TrafficMirrorTargetName string
    The name of traffic mirror target.
    UpdatedAt string
    The update time of traffic mirror target.
    CreatedAt string
    The create time of traffic mirror target.
    Description string
    The description of traffic mirror target.
    Id string
    The ID of traffic mirror target.
    InstanceId string
    The instance id of traffic mirror target.
    InstanceType string
    The instance type of traffic mirror target.
    ProjectName string
    The project name of traffic mirror target.
    Status string
    The status of traffic mirror target.
    Tags []GetTrafficMirrorTargetsTrafficMirrorTargetTag
    Tags.
    TrafficMirrorTargetId string
    The ID of traffic mirror target.
    TrafficMirrorTargetName string
    The name of traffic mirror target.
    UpdatedAt string
    The update time of traffic mirror target.
    createdAt String
    The create time of traffic mirror target.
    description String
    The description of traffic mirror target.
    id String
    The ID of traffic mirror target.
    instanceId String
    The instance id of traffic mirror target.
    instanceType String
    The instance type of traffic mirror target.
    projectName String
    The project name of traffic mirror target.
    status String
    The status of traffic mirror target.
    tags List<GetTrafficMirrorTargetsTrafficMirrorTargetTag>
    Tags.
    trafficMirrorTargetId String
    The ID of traffic mirror target.
    trafficMirrorTargetName String
    The name of traffic mirror target.
    updatedAt String
    The update time of traffic mirror target.
    createdAt string
    The create time of traffic mirror target.
    description string
    The description of traffic mirror target.
    id string
    The ID of traffic mirror target.
    instanceId string
    The instance id of traffic mirror target.
    instanceType string
    The instance type of traffic mirror target.
    projectName string
    The project name of traffic mirror target.
    status string
    The status of traffic mirror target.
    tags GetTrafficMirrorTargetsTrafficMirrorTargetTag[]
    Tags.
    trafficMirrorTargetId string
    The ID of traffic mirror target.
    trafficMirrorTargetName string
    The name of traffic mirror target.
    updatedAt string
    The update time of traffic mirror target.
    created_at str
    The create time of traffic mirror target.
    description str
    The description of traffic mirror target.
    id str
    The ID of traffic mirror target.
    instance_id str
    The instance id of traffic mirror target.
    instance_type str
    The instance type of traffic mirror target.
    project_name str
    The project name of traffic mirror target.
    status str
    The status of traffic mirror target.
    tags Sequence[GetTrafficMirrorTargetsTrafficMirrorTargetTag]
    Tags.
    traffic_mirror_target_id str
    The ID of traffic mirror target.
    traffic_mirror_target_name str
    The name of traffic mirror target.
    updated_at str
    The update time of traffic mirror target.
    createdAt String
    The create time of traffic mirror target.
    description String
    The description of traffic mirror target.
    id String
    The ID of traffic mirror target.
    instanceId String
    The instance id of traffic mirror target.
    instanceType String
    The instance type of traffic mirror target.
    projectName String
    The project name of traffic mirror target.
    status String
    The status of traffic mirror target.
    tags List<Property Map>
    Tags.
    trafficMirrorTargetId String
    The ID of traffic mirror target.
    trafficMirrorTargetName String
    The name of traffic mirror target.
    updatedAt String
    The update time of traffic mirror target.

    GetTrafficMirrorTargetsTrafficMirrorTargetTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine