Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ApmTraces.getTraceAggregatedSnapshotData
Explore with Pulumi AI
This data source provides details about a specific Trace Aggregated Snapshot Data resource in Oracle Cloud Infrastructure Apm Traces service.
Gets the aggregated snapshot identified by trace ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTraceAggregatedSnapshotData = oci.ApmTraces.getTraceAggregatedSnapshotData({
    apmDomainId: testApmDomain.id,
    traceKey: traceAggregatedSnapshotDataTraceKey,
    serverName: traceAggregatedSnapshotDataServerName,
    serviceName: testService.name,
    spanKey: traceAggregatedSnapshotDataSpanKey,
    spanName: traceAggregatedSnapshotDataSpanName,
});
import pulumi
import pulumi_oci as oci
test_trace_aggregated_snapshot_data = oci.ApmTraces.get_trace_aggregated_snapshot_data(apm_domain_id=test_apm_domain["id"],
    trace_key=trace_aggregated_snapshot_data_trace_key,
    server_name=trace_aggregated_snapshot_data_server_name,
    service_name=test_service["name"],
    span_key=trace_aggregated_snapshot_data_span_key,
    span_name=trace_aggregated_snapshot_data_span_name)
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.GetTraceAggregatedSnapshotData(ctx, &apmtraces.GetTraceAggregatedSnapshotDataArgs{
			ApmDomainId: testApmDomain.Id,
			TraceKey:    traceAggregatedSnapshotDataTraceKey,
			ServerName:  pulumi.StringRef(traceAggregatedSnapshotDataServerName),
			ServiceName: pulumi.StringRef(testService.Name),
			SpanKey:     pulumi.StringRef(traceAggregatedSnapshotDataSpanKey),
			SpanName:    pulumi.StringRef(traceAggregatedSnapshotDataSpanName),
		}, 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 testTraceAggregatedSnapshotData = Oci.ApmTraces.GetTraceAggregatedSnapshotData.Invoke(new()
    {
        ApmDomainId = testApmDomain.Id,
        TraceKey = traceAggregatedSnapshotDataTraceKey,
        ServerName = traceAggregatedSnapshotDataServerName,
        ServiceName = testService.Name,
        SpanKey = traceAggregatedSnapshotDataSpanKey,
        SpanName = traceAggregatedSnapshotDataSpanName,
    });
});
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.GetTraceAggregatedSnapshotDataArgs;
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 testTraceAggregatedSnapshotData = ApmTracesFunctions.getTraceAggregatedSnapshotData(GetTraceAggregatedSnapshotDataArgs.builder()
            .apmDomainId(testApmDomain.id())
            .traceKey(traceAggregatedSnapshotDataTraceKey)
            .serverName(traceAggregatedSnapshotDataServerName)
            .serviceName(testService.name())
            .spanKey(traceAggregatedSnapshotDataSpanKey)
            .spanName(traceAggregatedSnapshotDataSpanName)
            .build());
    }
}
variables:
  testTraceAggregatedSnapshotData:
    fn::invoke:
      function: oci:ApmTraces:getTraceAggregatedSnapshotData
      arguments:
        apmDomainId: ${testApmDomain.id}
        traceKey: ${traceAggregatedSnapshotDataTraceKey}
        serverName: ${traceAggregatedSnapshotDataServerName}
        serviceName: ${testService.name}
        spanKey: ${traceAggregatedSnapshotDataSpanKey}
        spanName: ${traceAggregatedSnapshotDataSpanName}
Using getTraceAggregatedSnapshotData
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 getTraceAggregatedSnapshotData(args: GetTraceAggregatedSnapshotDataArgs, opts?: InvokeOptions): Promise<GetTraceAggregatedSnapshotDataResult>
function getTraceAggregatedSnapshotDataOutput(args: GetTraceAggregatedSnapshotDataOutputArgs, opts?: InvokeOptions): Output<GetTraceAggregatedSnapshotDataResult>def get_trace_aggregated_snapshot_data(apm_domain_id: Optional[str] = None,
                                       server_name: Optional[str] = None,
                                       service_name: Optional[str] = None,
                                       span_key: Optional[str] = None,
                                       span_name: Optional[str] = None,
                                       trace_key: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetTraceAggregatedSnapshotDataResult
def get_trace_aggregated_snapshot_data_output(apm_domain_id: Optional[pulumi.Input[str]] = None,
                                       server_name: Optional[pulumi.Input[str]] = None,
                                       service_name: Optional[pulumi.Input[str]] = None,
                                       span_key: Optional[pulumi.Input[str]] = None,
                                       span_name: Optional[pulumi.Input[str]] = None,
                                       trace_key: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetTraceAggregatedSnapshotDataResult]func GetTraceAggregatedSnapshotData(ctx *Context, args *GetTraceAggregatedSnapshotDataArgs, opts ...InvokeOption) (*GetTraceAggregatedSnapshotDataResult, error)
func GetTraceAggregatedSnapshotDataOutput(ctx *Context, args *GetTraceAggregatedSnapshotDataOutputArgs, opts ...InvokeOption) GetTraceAggregatedSnapshotDataResultOutput> Note: This function is named GetTraceAggregatedSnapshotData in the Go SDK.
public static class GetTraceAggregatedSnapshotData 
{
    public static Task<GetTraceAggregatedSnapshotDataResult> InvokeAsync(GetTraceAggregatedSnapshotDataArgs args, InvokeOptions? opts = null)
    public static Output<GetTraceAggregatedSnapshotDataResult> Invoke(GetTraceAggregatedSnapshotDataInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTraceAggregatedSnapshotDataResult> getTraceAggregatedSnapshotData(GetTraceAggregatedSnapshotDataArgs args, InvokeOptions options)
public static Output<GetTraceAggregatedSnapshotDataResult> getTraceAggregatedSnapshotData(GetTraceAggregatedSnapshotDataArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ApmTraces/getTraceAggregatedSnapshotData:getTraceAggregatedSnapshotData
  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).
- ServerName string
- Name of the server.
- ServiceName string
- Name associated with the service.
- SpanKey string
- Unique Application Performance Monitoring span identifier (spanId).
- SpanName string
- Name of the span associated with the trace.
- ApmDomain stringId 
- The APM Domain ID for the intended request.
- TraceKey string
- Unique Application Performance Monitoring trace identifier (traceId).
- ServerName string
- Name of the server.
- ServiceName string
- Name associated with the service.
- SpanKey string
- Unique Application Performance Monitoring span identifier (spanId).
- SpanName string
- Name of the span associated with the trace.
- apmDomain StringId 
- The APM Domain ID for the intended request.
- traceKey String
- Unique Application Performance Monitoring trace identifier (traceId).
- serverName String
- Name of the server.
- serviceName String
- Name associated with the service.
- spanKey String
- Unique Application Performance Monitoring span identifier (spanId).
- spanName String
- Name of the span associated with the trace.
- apmDomain stringId 
- The APM Domain ID for the intended request.
- traceKey string
- Unique Application Performance Monitoring trace identifier (traceId).
- serverName string
- Name of the server.
- serviceName string
- Name associated with the service.
- spanKey string
- Unique Application Performance Monitoring span identifier (spanId).
- spanName string
- Name of the span associated with the trace.
- apm_domain_ strid 
- The APM Domain ID for the intended request.
- trace_key str
- Unique Application Performance Monitoring trace identifier (traceId).
- server_name str
- Name of the server.
- service_name str
- Name associated with the service.
- span_key str
- Unique Application Performance Monitoring span identifier (spanId).
- span_name str
- Name of the span associated with the trace.
- apmDomain StringId 
- The APM Domain ID for the intended request.
- traceKey String
- Unique Application Performance Monitoring trace identifier (traceId).
- serverName String
- Name of the server.
- serviceName String
- Name associated with the service.
- spanKey String
- Unique Application Performance Monitoring span identifier (spanId).
- spanName String
- Name of the span associated with the trace.
getTraceAggregatedSnapshotData Result
The following output properties are available:
- ApmDomain stringId 
- Details
List<GetTrace Aggregated Snapshot Data Detail> 
- Aggregated snapshot details.
- Id string
- The provider-assigned unique ID for this managed resource.
- TraceKey string
- ServerName string
- ServiceName string
- SpanKey string
- SpanName string
- ApmDomain stringId 
- Details
[]GetTrace Aggregated Snapshot Data Detail 
- Aggregated snapshot details.
- Id string
- The provider-assigned unique ID for this managed resource.
- TraceKey string
- ServerName string
- ServiceName string
- SpanKey string
- SpanName string
- apmDomain StringId 
- details
List<GetTrace Aggregated Snapshot Data Detail> 
- Aggregated snapshot details.
- id String
- The provider-assigned unique ID for this managed resource.
- traceKey String
- serverName String
- serviceName String
- spanKey String
- spanName String
- apmDomain stringId 
- details
GetTrace Aggregated Snapshot Data Detail[] 
- Aggregated snapshot details.
- id string
- The provider-assigned unique ID for this managed resource.
- traceKey string
- serverName string
- serviceName string
- spanKey string
- spanName string
- apm_domain_ strid 
- details
Sequence[GetTrace Aggregated Snapshot Data Detail] 
- Aggregated snapshot details.
- id str
- The provider-assigned unique ID for this managed resource.
- trace_key str
- server_name str
- service_name str
- span_key str
- span_name str
- apmDomain StringId 
- details List<Property Map>
- Aggregated snapshot details.
- id String
- The provider-assigned unique ID for this managed resource.
- traceKey String
- serverName String
- serviceName String
- spanKey String
- spanName String
Supporting Types
GetTraceAggregatedSnapshotDataDetail     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.