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

oci.ApmSynthetics.getResult

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 Result resource in Oracle Cloud Infrastructure APM Availability Monitoring service (aka APM Synthetics Service).

Gets the results for a specific execution of a monitor identified by OCID. The results are in a HAR file, Screenshot, Console Log or Network details.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testResult = oci.ApmSynthetics.getResult({
    apmDomainId: testApmDomain.id,
    executionTime: resultExecutionTime,
    monitorId: testMonitor.id,
    resultContentType: resultResultContentType,
    resultType: resultResultType,
    vantagePoint: resultVantagePoint,
});
Copy
import pulumi
import pulumi_oci as oci

test_result = oci.ApmSynthetics.get_result(apm_domain_id=test_apm_domain["id"],
    execution_time=result_execution_time,
    monitor_id=test_monitor["id"],
    result_content_type=result_result_content_type,
    result_type=result_result_type,
    vantage_point=result_vantage_point)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/apmsynthetics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apmsynthetics.GetResult(ctx, &apmsynthetics.GetResultArgs{
			ApmDomainId:       testApmDomain.Id,
			ExecutionTime:     resultExecutionTime,
			MonitorId:         testMonitor.Id,
			ResultContentType: resultResultContentType,
			ResultType:        resultResultType,
			VantagePoint:      resultVantagePoint,
		}, 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 testResult = Oci.ApmSynthetics.GetResult.Invoke(new()
    {
        ApmDomainId = testApmDomain.Id,
        ExecutionTime = resultExecutionTime,
        MonitorId = testMonitor.Id,
        ResultContentType = resultResultContentType,
        ResultType = resultResultType,
        VantagePoint = resultVantagePoint,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ApmSynthetics.ApmSyntheticsFunctions;
import com.pulumi.oci.ApmSynthetics.inputs.GetResultArgs;
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 testResult = ApmSyntheticsFunctions.getResult(GetResultArgs.builder()
            .apmDomainId(testApmDomain.id())
            .executionTime(resultExecutionTime)
            .monitorId(testMonitor.id())
            .resultContentType(resultResultContentType)
            .resultType(resultResultType)
            .vantagePoint(resultVantagePoint)
            .build());

    }
}
Copy
variables:
  testResult:
    fn::invoke:
      function: oci:ApmSynthetics:getResult
      arguments:
        apmDomainId: ${testApmDomain.id}
        executionTime: ${resultExecutionTime}
        monitorId: ${testMonitor.id}
        resultContentType: ${resultResultContentType}
        resultType: ${resultResultType}
        vantagePoint: ${resultVantagePoint}
Copy

Using getResult

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 getResult(args: GetResultArgs, opts?: InvokeOptions): Promise<GetResultResult>
function getResultOutput(args: GetResultOutputArgs, opts?: InvokeOptions): Output<GetResultResult>
Copy
def get_result(apm_domain_id: Optional[str] = None,
               execution_time: Optional[str] = None,
               monitor_id: Optional[str] = None,
               result_content_type: Optional[str] = None,
               result_type: Optional[str] = None,
               vantage_point: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetResultResult
def get_result_output(apm_domain_id: Optional[pulumi.Input[str]] = None,
               execution_time: Optional[pulumi.Input[str]] = None,
               monitor_id: Optional[pulumi.Input[str]] = None,
               result_content_type: Optional[pulumi.Input[str]] = None,
               result_type: Optional[pulumi.Input[str]] = None,
               vantage_point: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetResultResult]
Copy
func GetResult(ctx *Context, args *GetResultArgs, opts ...InvokeOption) (*GetResultResult, error)
func GetResultOutput(ctx *Context, args *GetResultOutputArgs, opts ...InvokeOption) GetResultResultOutput
Copy

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

public static class GetResult 
{
    public static Task<GetResultResult> InvokeAsync(GetResultArgs args, InvokeOptions? opts = null)
    public static Output<GetResultResult> Invoke(GetResultInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetResultResult> getResult(GetResultArgs args, InvokeOptions options)
public static Output<GetResultResult> getResult(GetResultArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ApmSynthetics/getResult:getResult
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ApmDomainId This property is required. string
The APM domain ID the request is intended for.
ExecutionTime This property is required. string
The time the object was posted.
MonitorId This property is required. string
The OCID of the monitor.
ResultContentType This property is required. string
The result content type: zip or raw.
ResultType This property is required. string
The result type: har, screenshot, log, or network.
VantagePoint This property is required. string
The vantagePoint name.
ApmDomainId This property is required. string
The APM domain ID the request is intended for.
ExecutionTime This property is required. string
The time the object was posted.
MonitorId This property is required. string
The OCID of the monitor.
ResultContentType This property is required. string
The result content type: zip or raw.
ResultType This property is required. string
The result type: har, screenshot, log, or network.
VantagePoint This property is required. string
The vantagePoint name.
apmDomainId This property is required. String
The APM domain ID the request is intended for.
executionTime This property is required. String
The time the object was posted.
monitorId This property is required. String
The OCID of the monitor.
resultContentType This property is required. String
The result content type: zip or raw.
resultType This property is required. String
The result type: har, screenshot, log, or network.
vantagePoint This property is required. String
The vantagePoint name.
apmDomainId This property is required. string
The APM domain ID the request is intended for.
executionTime This property is required. string
The time the object was posted.
monitorId This property is required. string
The OCID of the monitor.
resultContentType This property is required. string
The result content type: zip or raw.
resultType This property is required. string
The result type: har, screenshot, log, or network.
vantagePoint This property is required. string
The vantagePoint name.
apm_domain_id This property is required. str
The APM domain ID the request is intended for.
execution_time This property is required. str
The time the object was posted.
monitor_id This property is required. str
The OCID of the monitor.
result_content_type This property is required. str
The result content type: zip or raw.
result_type This property is required. str
The result type: har, screenshot, log, or network.
vantage_point This property is required. str
The vantagePoint name.
apmDomainId This property is required. String
The APM domain ID the request is intended for.
executionTime This property is required. String
The time the object was posted.
monitorId This property is required. String
The OCID of the monitor.
resultContentType This property is required. String
The result content type: zip or raw.
resultType This property is required. String
The result type: har, screenshot, log, or network.
vantagePoint This property is required. String
The vantagePoint name.

getResult Result

The following output properties are available:

ApmDomainId string
ExecutionTime string
The specific point of time when the result of an execution is collected.
Id string
The provider-assigned unique ID for this managed resource.
MonitorId string
The OCID of the monitor.
ResultContentType string
Type of result content. Example: Zip or Raw file.
ResultDataSets List<GetResultResultDataSet>
Monitor result data set.
ResultType string
Type of result. Example: HAR, Screenshot, Log or Network.
VantagePoint string
The name of the public or dedicated vantage point.
ApmDomainId string
ExecutionTime string
The specific point of time when the result of an execution is collected.
Id string
The provider-assigned unique ID for this managed resource.
MonitorId string
The OCID of the monitor.
ResultContentType string
Type of result content. Example: Zip or Raw file.
ResultDataSets []GetResultResultDataSet
Monitor result data set.
ResultType string
Type of result. Example: HAR, Screenshot, Log or Network.
VantagePoint string
The name of the public or dedicated vantage point.
apmDomainId String
executionTime String
The specific point of time when the result of an execution is collected.
id String
The provider-assigned unique ID for this managed resource.
monitorId String
The OCID of the monitor.
resultContentType String
Type of result content. Example: Zip or Raw file.
resultDataSets List<GetResultResultDataSet>
Monitor result data set.
resultType String
Type of result. Example: HAR, Screenshot, Log or Network.
vantagePoint String
The name of the public or dedicated vantage point.
apmDomainId string
executionTime string
The specific point of time when the result of an execution is collected.
id string
The provider-assigned unique ID for this managed resource.
monitorId string
The OCID of the monitor.
resultContentType string
Type of result content. Example: Zip or Raw file.
resultDataSets GetResultResultDataSet[]
Monitor result data set.
resultType string
Type of result. Example: HAR, Screenshot, Log or Network.
vantagePoint string
The name of the public or dedicated vantage point.
apm_domain_id str
execution_time str
The specific point of time when the result of an execution is collected.
id str
The provider-assigned unique ID for this managed resource.
monitor_id str
The OCID of the monitor.
result_content_type str
Type of result content. Example: Zip or Raw file.
result_data_sets Sequence[apmsynthetics.GetResultResultDataSet]
Monitor result data set.
result_type str
Type of result. Example: HAR, Screenshot, Log or Network.
vantage_point str
The name of the public or dedicated vantage point.
apmDomainId String
executionTime String
The specific point of time when the result of an execution is collected.
id String
The provider-assigned unique ID for this managed resource.
monitorId String
The OCID of the monitor.
resultContentType String
Type of result content. Example: Zip or Raw file.
resultDataSets List<Property Map>
Monitor result data set.
resultType String
Type of result. Example: HAR, Screenshot, Log or Network.
vantagePoint String
The name of the public or dedicated vantage point.

Supporting Types

GetResultResultDataSet

ByteContent This property is required. string
Data content in byte format. Example: Zip or Screenshot.
Name This property is required. string
Name of the data.
StringContent This property is required. string
Data content in string format. Example: HAR.
Timestamp This property is required. string
The time when the data was generated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z
ByteContent This property is required. string
Data content in byte format. Example: Zip or Screenshot.
Name This property is required. string
Name of the data.
StringContent This property is required. string
Data content in string format. Example: HAR.
Timestamp This property is required. string
The time when the data was generated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z
byteContent This property is required. String
Data content in byte format. Example: Zip or Screenshot.
name This property is required. String
Name of the data.
stringContent This property is required. String
Data content in string format. Example: HAR.
timestamp This property is required. String
The time when the data was generated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z
byteContent This property is required. string
Data content in byte format. Example: Zip or Screenshot.
name This property is required. string
Name of the data.
stringContent This property is required. string
Data content in string format. Example: HAR.
timestamp This property is required. string
The time when the data was generated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z
byte_content This property is required. str
Data content in byte format. Example: Zip or Screenshot.
name This property is required. str
Name of the data.
string_content This property is required. str
Data content in string format. Example: HAR.
timestamp This property is required. str
The time when the data was generated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z
byteContent This property is required. String
Data content in byte format. Example: Zip or Screenshot.
name This property is required. String
Name of the data.
stringContent This property is required. String
Data content in string format. Example: HAR.
timestamp This property is required. String
The time when the data was generated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

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