1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ApmTraces
  5. getTraceAggregatedSnapshotData
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.ApmTraces.getTraceAggregatedSnapshotData

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testTraceAggregatedSnapshotData:
    fn::invoke:
      function: oci:ApmTraces:getTraceAggregatedSnapshotData
      arguments:
        apmDomainId: ${testApmDomain.id}
        traceKey: ${traceAggregatedSnapshotDataTraceKey}
        serverName: ${traceAggregatedSnapshotDataServerName}
        serviceName: ${testService.name}
        spanKey: ${traceAggregatedSnapshotDataSpanKey}
        spanName: ${traceAggregatedSnapshotDataSpanName}
Copy

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>
Copy
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]
Copy
func GetTraceAggregatedSnapshotData(ctx *Context, args *GetTraceAggregatedSnapshotDataArgs, opts ...InvokeOption) (*GetTraceAggregatedSnapshotDataResult, error)
func GetTraceAggregatedSnapshotDataOutput(ctx *Context, args *GetTraceAggregatedSnapshotDataOutputArgs, opts ...InvokeOption) GetTraceAggregatedSnapshotDataResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetTraceAggregatedSnapshotDataResult> getTraceAggregatedSnapshotData(GetTraceAggregatedSnapshotDataArgs args, InvokeOptions options)
public static Output<GetTraceAggregatedSnapshotDataResult> getTraceAggregatedSnapshotData(GetTraceAggregatedSnapshotDataArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ApmTraces/getTraceAggregatedSnapshotData:getTraceAggregatedSnapshotData
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ApmDomainId This property is required. string
The APM Domain ID for the intended request.
TraceKey This property is required. 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.
ApmDomainId This property is required. string
The APM Domain ID for the intended request.
TraceKey This property is required. 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.
apmDomainId This property is required. String
The APM Domain ID for the intended request.
traceKey This property is required. 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.
apmDomainId This property is required. string
The APM Domain ID for the intended request.
traceKey This property is required. 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_id This property is required. str
The APM Domain ID for the intended request.
trace_key This property is required. 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.
apmDomainId This property is required. String
The APM Domain ID for the intended request.
traceKey This property is required. 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:

ApmDomainId string
Details List<GetTraceAggregatedSnapshotDataDetail>
Aggregated snapshot details.
Id string
The provider-assigned unique ID for this managed resource.
TraceKey string
ServerName string
ServiceName string
SpanKey string
SpanName string
ApmDomainId string
Details []GetTraceAggregatedSnapshotDataDetail
Aggregated snapshot details.
Id string
The provider-assigned unique ID for this managed resource.
TraceKey string
ServerName string
ServiceName string
SpanKey string
SpanName string
apmDomainId String
details List<GetTraceAggregatedSnapshotDataDetail>
Aggregated snapshot details.
id String
The provider-assigned unique ID for this managed resource.
traceKey String
serverName String
serviceName String
spanKey String
spanName String
apmDomainId string
details GetTraceAggregatedSnapshotDataDetail[]
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_id str
details Sequence[apmtraces.GetTraceAggregatedSnapshotDataDetail]
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
apmDomainId String
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

Key This property is required. string
Name of the property.
Value This property is required. string
Value of the property.
Key This property is required. string
Name of the property.
Value This property is required. string
Value of the property.
key This property is required. String
Name of the property.
value This property is required. String
Value of the property.
key This property is required. string
Name of the property.
value This property is required. string
Value of the property.
key This property is required. str
Name of the property.
value This property is required. str
Value of the property.
key This property is required. String
Name of the property.
value This property is required. String
Value of the property.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi