1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataFlow
  5. getRunLogs
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.DataFlow.getRunLogs

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_run_logs = oci.DataFlow.get_run_logs(run_id=test_run["id"])
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      testRunLogs:
        fn::invoke:
          Function: oci:DataFlow:getRunLogs
          Arguments:
            runId: ${testRun.id}
    

    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>
    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]
    func GetRunLogs(ctx *Context, args *GetRunLogsArgs, opts ...InvokeOption) (*GetRunLogsResult, error)
    func GetRunLogsOutput(ctx *Context, args *GetRunLogsOutputArgs, opts ...InvokeOption) GetRunLogsResultOutput

    > 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)
    }
    public static CompletableFuture<GetRunLogsResult> getRunLogs(GetRunLogsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataFlow/getRunLogs:getRunLogs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RunId string
    The unique ID for the run
    Filters List<GetRunLogsFilter>
    RunId string
    The unique ID for the run
    Filters []GetRunLogsFilter
    runId String
    The unique ID for the run
    filters List<GetRunLogsFilter>
    runId string
    The unique ID for the run
    filters GetRunLogsFilter[]
    runId String
    The unique ID for the run
    filters 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 string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetRunLogsRunLog

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

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi