Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ApmTraces.getTraceSnapshotData
Explore with Pulumi AI
This data source provides details about a specific Trace Snapshot Data resource in Oracle Cloud Infrastructure Apm Traces service.
Gets the trace snapshots data identified by trace ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTraceSnapshotData = oci.ApmTraces.getTraceSnapshotData({
    apmDomainId: testApmDomain.id,
    traceKey: traceSnapshotDataTraceKey,
    isSummarized: traceSnapshotDataIsSummarized,
    snapshotTime: traceSnapshotDataSnapshotTime,
    threadId: testThread.id,
});
import pulumi
import pulumi_oci as oci
test_trace_snapshot_data = oci.ApmTraces.get_trace_snapshot_data(apm_domain_id=test_apm_domain["id"],
    trace_key=trace_snapshot_data_trace_key,
    is_summarized=trace_snapshot_data_is_summarized,
    snapshot_time=trace_snapshot_data_snapshot_time,
    thread_id=test_thread["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/apmtraces"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apmtraces.GetTraceSnapshotData(ctx, &apmtraces.GetTraceSnapshotDataArgs{
			ApmDomainId:  testApmDomain.Id,
			TraceKey:     traceSnapshotDataTraceKey,
			IsSummarized: pulumi.BoolRef(traceSnapshotDataIsSummarized),
			SnapshotTime: pulumi.StringRef(traceSnapshotDataSnapshotTime),
			ThreadId:     pulumi.StringRef(testThread.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testTraceSnapshotData = Oci.ApmTraces.GetTraceSnapshotData.Invoke(new()
    {
        ApmDomainId = testApmDomain.Id,
        TraceKey = traceSnapshotDataTraceKey,
        IsSummarized = traceSnapshotDataIsSummarized,
        SnapshotTime = traceSnapshotDataSnapshotTime,
        ThreadId = testThread.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ApmTraces.ApmTracesFunctions;
import com.pulumi.oci.ApmTraces.inputs.GetTraceSnapshotDataArgs;
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 testTraceSnapshotData = ApmTracesFunctions.getTraceSnapshotData(GetTraceSnapshotDataArgs.builder()
            .apmDomainId(testApmDomain.id())
            .traceKey(traceSnapshotDataTraceKey)
            .isSummarized(traceSnapshotDataIsSummarized)
            .snapshotTime(traceSnapshotDataSnapshotTime)
            .threadId(testThread.id())
            .build());
    }
}
variables:
  testTraceSnapshotData:
    fn::invoke:
      function: oci:ApmTraces:getTraceSnapshotData
      arguments:
        apmDomainId: ${testApmDomain.id}
        traceKey: ${traceSnapshotDataTraceKey}
        isSummarized: ${traceSnapshotDataIsSummarized}
        snapshotTime: ${traceSnapshotDataSnapshotTime}
        threadId: ${testThread.id}
Using getTraceSnapshotData
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 getTraceSnapshotData(args: GetTraceSnapshotDataArgs, opts?: InvokeOptions): Promise<GetTraceSnapshotDataResult>
function getTraceSnapshotDataOutput(args: GetTraceSnapshotDataOutputArgs, opts?: InvokeOptions): Output<GetTraceSnapshotDataResult>def get_trace_snapshot_data(apm_domain_id: Optional[str] = None,
                            is_summarized: Optional[bool] = None,
                            snapshot_time: Optional[str] = None,
                            thread_id: Optional[str] = None,
                            trace_key: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetTraceSnapshotDataResult
def get_trace_snapshot_data_output(apm_domain_id: Optional[pulumi.Input[str]] = None,
                            is_summarized: Optional[pulumi.Input[bool]] = None,
                            snapshot_time: Optional[pulumi.Input[str]] = None,
                            thread_id: Optional[pulumi.Input[str]] = None,
                            trace_key: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetTraceSnapshotDataResult]func GetTraceSnapshotData(ctx *Context, args *GetTraceSnapshotDataArgs, opts ...InvokeOption) (*GetTraceSnapshotDataResult, error)
func GetTraceSnapshotDataOutput(ctx *Context, args *GetTraceSnapshotDataOutputArgs, opts ...InvokeOption) GetTraceSnapshotDataResultOutput> Note: This function is named GetTraceSnapshotData in the Go SDK.
public static class GetTraceSnapshotData 
{
    public static Task<GetTraceSnapshotDataResult> InvokeAsync(GetTraceSnapshotDataArgs args, InvokeOptions? opts = null)
    public static Output<GetTraceSnapshotDataResult> Invoke(GetTraceSnapshotDataInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTraceSnapshotDataResult> getTraceSnapshotData(GetTraceSnapshotDataArgs args, InvokeOptions options)
public static Output<GetTraceSnapshotDataResult> getTraceSnapshotData(GetTraceSnapshotDataArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ApmTraces/getTraceSnapshotData:getTraceSnapshotData
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ApmDomain stringId 
- The APM Domain ID for the intended request.
- TraceKey string
- Unique Application Performance Monitoring trace identifier (traceId).
- IsSummarized bool
- If enabled, only span level details are sent.
- SnapshotTime string
- Epoch time of snapshot.
- ThreadId string
- Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated when a thread is created.
- ApmDomain stringId 
- The APM Domain ID for the intended request.
- TraceKey string
- Unique Application Performance Monitoring trace identifier (traceId).
- IsSummarized bool
- If enabled, only span level details are sent.
- SnapshotTime string
- Epoch time of snapshot.
- ThreadId string
- Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated when a thread is created.
- apmDomain StringId 
- The APM Domain ID for the intended request.
- traceKey String
- Unique Application Performance Monitoring trace identifier (traceId).
- isSummarized Boolean
- If enabled, only span level details are sent.
- snapshotTime String
- Epoch time of snapshot.
- threadId String
- Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated when a thread is created.
- apmDomain stringId 
- The APM Domain ID for the intended request.
- traceKey string
- Unique Application Performance Monitoring trace identifier (traceId).
- isSummarized boolean
- If enabled, only span level details are sent.
- snapshotTime string
- Epoch time of snapshot.
- threadId string
- Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated when a thread is created.
- apm_domain_ strid 
- The APM Domain ID for the intended request.
- trace_key str
- Unique Application Performance Monitoring trace identifier (traceId).
- is_summarized bool
- If enabled, only span level details are sent.
- snapshot_time str
- Epoch time of snapshot.
- thread_id str
- Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated when a thread is created.
- apmDomain StringId 
- The APM Domain ID for the intended request.
- traceKey String
- Unique Application Performance Monitoring trace identifier (traceId).
- isSummarized Boolean
- If enabled, only span level details are sent.
- snapshotTime String
- Epoch time of snapshot.
- threadId String
- Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated when a thread is created.
getTraceSnapshotData Result
The following output properties are available:
- ApmDomain stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Name of the property.
- TimeEnded string
- End time of the trace.
- TimeStarted string
- Start time of the trace.
- TraceKey string
- TraceSnapshot List<GetDetails Trace Snapshot Data Trace Snapshot Detail> 
- Trace snapshots properties.
- IsSummarized bool
- SnapshotTime string
- ThreadId string
- ApmDomain stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Name of the property.
- TimeEnded string
- End time of the trace.
- TimeStarted string
- Start time of the trace.
- TraceKey string
- TraceSnapshot []GetDetails Trace Snapshot Data Trace Snapshot Detail 
- Trace snapshots properties.
- IsSummarized bool
- SnapshotTime string
- ThreadId string
- apmDomain StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- Name of the property.
- timeEnded String
- End time of the trace.
- timeStarted String
- Start time of the trace.
- traceKey String
- traceSnapshot List<GetDetails Trace Snapshot Data Trace Snapshot Detail> 
- Trace snapshots properties.
- isSummarized Boolean
- snapshotTime String
- threadId String
- apmDomain stringId 
- id string
- The provider-assigned unique ID for this managed resource.
- key string
- Name of the property.
- timeEnded string
- End time of the trace.
- timeStarted string
- Start time of the trace.
- traceKey string
- traceSnapshot GetDetails Trace Snapshot Data Trace Snapshot Detail[] 
- Trace snapshots properties.
- isSummarized boolean
- snapshotTime string
- threadId string
- apm_domain_ strid 
- id str
- The provider-assigned unique ID for this managed resource.
- key str
- Name of the property.
- time_ended str
- End time of the trace.
- time_started str
- Start time of the trace.
- trace_key str
- trace_snapshot_ Sequence[Getdetails Trace Snapshot Data Trace Snapshot Detail] 
- Trace snapshots properties.
- is_summarized bool
- snapshot_time str
- thread_id str
- apmDomain StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- Name of the property.
- timeEnded String
- End time of the trace.
- timeStarted String
- Start time of the trace.
- traceKey String
- traceSnapshot List<Property Map>Details 
- Trace snapshots properties.
- isSummarized Boolean
- snapshotTime String
- threadId String
Supporting Types
GetTraceSnapshotDataTraceSnapshotDetail      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.