1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. getSearchTraces
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine

    Use this data source to query detailed information of tls search traces

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.tls.getSearchTraces({
        query: {
            limit: 10,
        },
        traceInstanceId: "ac368174-2353-4e5d-859d-84c8bd255590",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.tls.get_search_traces(query=volcengine.tls.GetSearchTracesQueryArgs(
            limit=10,
        ),
        trace_instance_id="ac368174-2353-4e5d-859d-84c8bd255590")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tls.GetSearchTraces(ctx, &tls.GetSearchTracesArgs{
    			Query: tls.GetSearchTracesQuery{
    				Limit: pulumi.IntRef(10),
    			},
    			TraceInstanceId: "ac368174-2353-4e5d-859d-84c8bd255590",
    		}, 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 @default = Volcengine.Tls.GetSearchTraces.Invoke(new()
        {
            Query = new Volcengine.Tls.Inputs.GetSearchTracesQueryInputArgs
            {
                Limit = 10,
            },
            TraceInstanceId = "ac368174-2353-4e5d-859d-84c8bd255590",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.tls.TlsFunctions;
    import com.pulumi.volcengine.tls.inputs.GetSearchTracesArgs;
    import com.pulumi.volcengine.tls.inputs.GetSearchTracesQueryArgs;
    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 default = TlsFunctions.getSearchTraces(GetSearchTracesArgs.builder()
                .query(GetSearchTracesQueryArgs.builder()
                    .limit(10)
                    .build())
                .traceInstanceId("ac368174-2353-4e5d-859d-84c8bd255590")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:tls:getSearchTraces
          Arguments:
            query:
              limit: 10
            traceInstanceId: ac368174-2353-4e5d-859d-84c8bd255590
    

    Using getSearchTraces

    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 getSearchTraces(args: GetSearchTracesArgs, opts?: InvokeOptions): Promise<GetSearchTracesResult>
    function getSearchTracesOutput(args: GetSearchTracesOutputArgs, opts?: InvokeOptions): Output<GetSearchTracesResult>
    def get_search_traces(output_file: Optional[str] = None,
                          query: Optional[GetSearchTracesQuery] = None,
                          trace_instance_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetSearchTracesResult
    def get_search_traces_output(output_file: Optional[pulumi.Input[str]] = None,
                          query: Optional[pulumi.Input[GetSearchTracesQueryArgs]] = None,
                          trace_instance_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetSearchTracesResult]
    func GetSearchTraces(ctx *Context, args *GetSearchTracesArgs, opts ...InvokeOption) (*GetSearchTracesResult, error)
    func GetSearchTracesOutput(ctx *Context, args *GetSearchTracesOutputArgs, opts ...InvokeOption) GetSearchTracesResultOutput

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

    public static class GetSearchTraces 
    {
        public static Task<GetSearchTracesResult> InvokeAsync(GetSearchTracesArgs args, InvokeOptions? opts = null)
        public static Output<GetSearchTracesResult> Invoke(GetSearchTracesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSearchTracesResult> getSearchTraces(GetSearchTracesArgs args, InvokeOptions options)
    public static Output<GetSearchTracesResult> getSearchTraces(GetSearchTracesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:tls/getSearchTraces:getSearchTraces
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TraceInstanceId string
    Trace instance ID.
    OutputFile string
    File name where to save data source results.
    Query GetSearchTracesQuery
    Query conditions.
    TraceInstanceId string
    Trace instance ID.
    OutputFile string
    File name where to save data source results.
    Query GetSearchTracesQuery
    Query conditions.
    traceInstanceId String
    Trace instance ID.
    outputFile String
    File name where to save data source results.
    query GetSearchTracesQuery
    Query conditions.
    traceInstanceId string
    Trace instance ID.
    outputFile string
    File name where to save data source results.
    query GetSearchTracesQuery
    Query conditions.
    trace_instance_id str
    Trace instance ID.
    output_file str
    File name where to save data source results.
    query GetSearchTracesQuery
    Query conditions.
    traceInstanceId String
    Trace instance ID.
    outputFile String
    File name where to save data source results.
    query Property Map
    Query conditions.

    getSearchTraces Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of tls trace query.
    TraceInstanceId string
    Traces List<GetSearchTracesTrace>
    The collection of tls trace query.
    OutputFile string
    Query GetSearchTracesQuery
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of tls trace query.
    TraceInstanceId string
    Traces []GetSearchTracesTrace
    The collection of tls trace query.
    OutputFile string
    Query GetSearchTracesQuery
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of tls trace query.
    traceInstanceId String
    traces List<GetSearchTracesTrace>
    The collection of tls trace query.
    outputFile String
    query GetSearchTracesQuery
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of tls trace query.
    traceInstanceId string
    traces GetSearchTracesTrace[]
    The collection of tls trace query.
    outputFile string
    query GetSearchTracesQuery
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of tls trace query.
    trace_instance_id str
    traces Sequence[GetSearchTracesTrace]
    The collection of tls trace query.
    output_file str
    query GetSearchTracesQuery
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of tls trace query.
    traceInstanceId String
    traces List<Property Map>
    The collection of tls trace query.
    outputFile String
    query Property Map

    Supporting Types

    GetSearchTracesQuery

    Asc bool
    Whether to sort results in ascending order. true means ascending, false means descending.
    Attributes List<GetSearchTracesQueryAttribute>
    Attributes.
    DurationMax int
    Maximum trace duration in microseconds.
    DurationMin int
    Minimum trace duration in microseconds.
    Kind string
    Type of the trace.
    Limit int
    Maximum number of records to return, used for pagination.
    Offset int
    Offset for paginated query.
    OperationName string
    Operation name, used to filter traces with specific operation.
    Order string
    Sorting field. Supported fields: Kind, Name, ServiceName, Start, End, Duration, and indexed fields in Attributes.
    ServiceName string
    Service name, used to filter traces from specific service.
    StartTimeMax int
    Maximum start time for searching traces, in microsecond timestamp format.
    StartTimeMin int
    Minimum start time for searching traces, in microsecond timestamp format.
    StatusCode string
    Trace status code, used to filter traces with specific status.
    TraceId string
    Trace ID.
    Asc bool
    Whether to sort results in ascending order. true means ascending, false means descending.
    Attributes []GetSearchTracesQueryAttribute
    Attributes.
    DurationMax int
    Maximum trace duration in microseconds.
    DurationMin int
    Minimum trace duration in microseconds.
    Kind string
    Type of the trace.
    Limit int
    Maximum number of records to return, used for pagination.
    Offset int
    Offset for paginated query.
    OperationName string
    Operation name, used to filter traces with specific operation.
    Order string
    Sorting field. Supported fields: Kind, Name, ServiceName, Start, End, Duration, and indexed fields in Attributes.
    ServiceName string
    Service name, used to filter traces from specific service.
    StartTimeMax int
    Maximum start time for searching traces, in microsecond timestamp format.
    StartTimeMin int
    Minimum start time for searching traces, in microsecond timestamp format.
    StatusCode string
    Trace status code, used to filter traces with specific status.
    TraceId string
    Trace ID.
    asc Boolean
    Whether to sort results in ascending order. true means ascending, false means descending.
    attributes List<GetSearchTracesQueryAttribute>
    Attributes.
    durationMax Integer
    Maximum trace duration in microseconds.
    durationMin Integer
    Minimum trace duration in microseconds.
    kind String
    Type of the trace.
    limit Integer
    Maximum number of records to return, used for pagination.
    offset Integer
    Offset for paginated query.
    operationName String
    Operation name, used to filter traces with specific operation.
    order String
    Sorting field. Supported fields: Kind, Name, ServiceName, Start, End, Duration, and indexed fields in Attributes.
    serviceName String
    Service name, used to filter traces from specific service.
    startTimeMax Integer
    Maximum start time for searching traces, in microsecond timestamp format.
    startTimeMin Integer
    Minimum start time for searching traces, in microsecond timestamp format.
    statusCode String
    Trace status code, used to filter traces with specific status.
    traceId String
    Trace ID.
    asc boolean
    Whether to sort results in ascending order. true means ascending, false means descending.
    attributes GetSearchTracesQueryAttribute[]
    Attributes.
    durationMax number
    Maximum trace duration in microseconds.
    durationMin number
    Minimum trace duration in microseconds.
    kind string
    Type of the trace.
    limit number
    Maximum number of records to return, used for pagination.
    offset number
    Offset for paginated query.
    operationName string
    Operation name, used to filter traces with specific operation.
    order string
    Sorting field. Supported fields: Kind, Name, ServiceName, Start, End, Duration, and indexed fields in Attributes.
    serviceName string
    Service name, used to filter traces from specific service.
    startTimeMax number
    Maximum start time for searching traces, in microsecond timestamp format.
    startTimeMin number
    Minimum start time for searching traces, in microsecond timestamp format.
    statusCode string
    Trace status code, used to filter traces with specific status.
    traceId string
    Trace ID.
    asc bool
    Whether to sort results in ascending order. true means ascending, false means descending.
    attributes Sequence[GetSearchTracesQueryAttribute]
    Attributes.
    duration_max int
    Maximum trace duration in microseconds.
    duration_min int
    Minimum trace duration in microseconds.
    kind str
    Type of the trace.
    limit int
    Maximum number of records to return, used for pagination.
    offset int
    Offset for paginated query.
    operation_name str
    Operation name, used to filter traces with specific operation.
    order str
    Sorting field. Supported fields: Kind, Name, ServiceName, Start, End, Duration, and indexed fields in Attributes.
    service_name str
    Service name, used to filter traces from specific service.
    start_time_max int
    Maximum start time for searching traces, in microsecond timestamp format.
    start_time_min int
    Minimum start time for searching traces, in microsecond timestamp format.
    status_code str
    Trace status code, used to filter traces with specific status.
    trace_id str
    Trace ID.
    asc Boolean
    Whether to sort results in ascending order. true means ascending, false means descending.
    attributes List<Property Map>
    Attributes.
    durationMax Number
    Maximum trace duration in microseconds.
    durationMin Number
    Minimum trace duration in microseconds.
    kind String
    Type of the trace.
    limit Number
    Maximum number of records to return, used for pagination.
    offset Number
    Offset for paginated query.
    operationName String
    Operation name, used to filter traces with specific operation.
    order String
    Sorting field. Supported fields: Kind, Name, ServiceName, Start, End, Duration, and indexed fields in Attributes.
    serviceName String
    Service name, used to filter traces from specific service.
    startTimeMax Number
    Maximum start time for searching traces, in microsecond timestamp format.
    startTimeMin Number
    Minimum start time for searching traces, in microsecond timestamp format.
    statusCode String
    Trace status code, used to filter traces with specific status.
    traceId String
    Trace ID.

    GetSearchTracesQueryAttribute

    Key string
    Attribute key.
    Value string
    Attribute value.
    Key string
    Attribute key.
    Value string
    Attribute value.
    key String
    Attribute key.
    value String
    Attribute value.
    key string
    Attribute key.
    value string
    Attribute value.
    key str
    Attribute key.
    value str
    Attribute value.
    key String
    Attribute key.
    value String
    Attribute value.

    GetSearchTracesTrace

    Attributes Dictionary<string, string>
    Trace attributes.
    Duration int
    Trace duration in microseconds.
    EndTime int
    Trace end time in microseconds.
    OperationName string
    Operation name.
    ServiceName string
    Service name.
    StartTime int
    Trace start time in microseconds.
    StatusCode string
    Trace status code.
    TraceId string
    Trace ID.
    Attributes map[string]string
    Trace attributes.
    Duration int
    Trace duration in microseconds.
    EndTime int
    Trace end time in microseconds.
    OperationName string
    Operation name.
    ServiceName string
    Service name.
    StartTime int
    Trace start time in microseconds.
    StatusCode string
    Trace status code.
    TraceId string
    Trace ID.
    attributes Map<String,String>
    Trace attributes.
    duration Integer
    Trace duration in microseconds.
    endTime Integer
    Trace end time in microseconds.
    operationName String
    Operation name.
    serviceName String
    Service name.
    startTime Integer
    Trace start time in microseconds.
    statusCode String
    Trace status code.
    traceId String
    Trace ID.
    attributes {[key: string]: string}
    Trace attributes.
    duration number
    Trace duration in microseconds.
    endTime number
    Trace end time in microseconds.
    operationName string
    Operation name.
    serviceName string
    Service name.
    startTime number
    Trace start time in microseconds.
    statusCode string
    Trace status code.
    traceId string
    Trace ID.
    attributes Mapping[str, str]
    Trace attributes.
    duration int
    Trace duration in microseconds.
    end_time int
    Trace end time in microseconds.
    operation_name str
    Operation name.
    service_name str
    Service name.
    start_time int
    Trace start time in microseconds.
    status_code str
    Trace status code.
    trace_id str
    Trace ID.
    attributes Map<String>
    Trace attributes.
    duration Number
    Trace duration in microseconds.
    endTime Number
    Trace end time in microseconds.
    operationName String
    Operation name.
    serviceName String
    Service name.
    startTime Number
    Trace start time in microseconds.
    statusCode String
    Trace status code.
    traceId String
    Trace ID.

    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.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate