1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataFlow
  5. getRunLogs
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.DataFlow.getRunLogs

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

This data source provides the list of Run Logs in Oracle Cloud Infrastructure Data Flow service.

Retrieves summaries of the run’s logs.

Example Usage

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

const testRunLogs = oci.DataFlow.getRunLogs({
    runId: testRun.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_run_logs = oci.DataFlow.get_run_logs(run_id=test_run["id"])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dataflow.GetRunLogs(ctx, &dataflow.GetRunLogsArgs{
			RunId: testRun.Id,
		}, 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 testRunLogs = Oci.DataFlow.GetRunLogs.Invoke(new()
    {
        RunId = testRun.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataFlow.DataFlowFunctions;
import com.pulumi.oci.DataFlow.inputs.GetRunLogsArgs;
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 testRunLogs = DataFlowFunctions.getRunLogs(GetRunLogsArgs.builder()
            .runId(testRun.id())
            .build());

    }
}
Copy
variables:
  testRunLogs:
    fn::invoke:
      function: oci:DataFlow:getRunLogs
      arguments:
        runId: ${testRun.id}
Copy

Using getRunLogs

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 getRunLogs(args: GetRunLogsArgs, opts?: InvokeOptions): Promise<GetRunLogsResult>
function getRunLogsOutput(args: GetRunLogsOutputArgs, opts?: InvokeOptions): Output<GetRunLogsResult>
Copy
def get_run_logs(filters: Optional[Sequence[_dataflow.GetRunLogsFilter]] = None,
                 run_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetRunLogsResult
def get_run_logs_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_dataflow.GetRunLogsFilterArgs]]]] = None,
                 run_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetRunLogsResult]
Copy
func GetRunLogs(ctx *Context, args *GetRunLogsArgs, opts ...InvokeOption) (*GetRunLogsResult, error)
func GetRunLogsOutput(ctx *Context, args *GetRunLogsOutputArgs, opts ...InvokeOption) GetRunLogsResultOutput
Copy

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

public static class GetRunLogs 
{
    public static Task<GetRunLogsResult> InvokeAsync(GetRunLogsArgs args, InvokeOptions? opts = null)
    public static Output<GetRunLogsResult> Invoke(GetRunLogsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRunLogsResult> getRunLogs(GetRunLogsArgs args, InvokeOptions options)
public static Output<GetRunLogsResult> getRunLogs(GetRunLogsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataFlow/getRunLogs:getRunLogs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

RunId This property is required. string
The unique ID for the run
Filters Changes to this property will trigger replacement. List<GetRunLogsFilter>
RunId This property is required. string
The unique ID for the run
Filters Changes to this property will trigger replacement. []GetRunLogsFilter
runId This property is required. String
The unique ID for the run
filters Changes to this property will trigger replacement. List<GetRunLogsFilter>
runId This property is required. string
The unique ID for the run
filters Changes to this property will trigger replacement. GetRunLogsFilter[]
run_id This property is required. str
The unique ID for the run
filters Changes to this property will trigger replacement. Sequence[dataflow.GetRunLogsFilter]
runId This property is required. String
The unique ID for the run
filters Changes to this property will trigger replacement. List<Property Map>

getRunLogs Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
RunId string
RunLogs List<GetRunLogsRunLog>
The list of run_logs.
Filters List<GetRunLogsFilter>
Id string
The provider-assigned unique ID for this managed resource.
RunId string
RunLogs []GetRunLogsRunLog
The list of run_logs.
Filters []GetRunLogsFilter
id String
The provider-assigned unique ID for this managed resource.
runId String
runLogs List<GetRunLogsRunLog>
The list of run_logs.
filters List<GetRunLogsFilter>
id string
The provider-assigned unique ID for this managed resource.
runId string
runLogs GetRunLogsRunLog[]
The list of run_logs.
filters GetRunLogsFilter[]
id str
The provider-assigned unique ID for this managed resource.
run_id str
run_logs Sequence[dataflow.GetRunLogsRunLog]
The list of run_logs.
filters Sequence[dataflow.GetRunLogsFilter]
id String
The provider-assigned unique ID for this managed resource.
runId String
runLogs List<Property Map>
The list of run_logs.
filters List<Property Map>

Supporting Types

GetRunLogsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetRunLogsRunLog

Name This property is required. string
RunId This property is required. string
The unique ID for the run
SizeInBytes This property is required. string
Source This property is required. string
TimeCreated This property is required. string
Type This property is required. string
Name This property is required. string
RunId This property is required. string
The unique ID for the run
SizeInBytes This property is required. string
Source This property is required. string
TimeCreated This property is required. string
Type This property is required. string
name This property is required. String
runId This property is required. String
The unique ID for the run
sizeInBytes This property is required. String
source This property is required. String
timeCreated This property is required. String
type This property is required. String
name This property is required. string
runId This property is required. string
The unique ID for the run
sizeInBytes This property is required. string
source This property is required. string
timeCreated This property is required. string
type This property is required. string
name This property is required. str
run_id This property is required. str
The unique ID for the run
size_in_bytes This property is required. str
source This property is required. str
time_created This property is required. str
type This property is required. str
name This property is required. String
runId This property is required. String
The unique ID for the run
sizeInBytes This property is required. String
source This property is required. String
timeCreated This property is required. String
type This property is required. String

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.29.0 published on Wednesday, Apr 9, 2025 by Pulumi