1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataFlow
  5. getRunLog
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.DataFlow.getRunLog

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides details about a specific Run Log resource in Oracle Cloud Infrastructure Data Flow service.

    Retrieves the content of an run log.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRunLog = oci.DataFlow.getRunLog({
        name: runLogName,
        runId: testRun.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_run_log = oci.DataFlow.get_run_log(name=run_log_name,
        run_id=test_run["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataFlow"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataFlow.GetRunLog(ctx, &dataflow.GetRunLogArgs{
    			Name:  runLogName,
    			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 testRunLog = Oci.DataFlow.GetRunLog.Invoke(new()
        {
            Name = runLogName,
            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.GetRunLogArgs;
    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 testRunLog = DataFlowFunctions.getRunLog(GetRunLogArgs.builder()
                .name(runLogName)
                .runId(testRun.id())
                .build());
    
        }
    }
    
    variables:
      testRunLog:
        fn::invoke:
          Function: oci:DataFlow:getRunLog
          Arguments:
            name: ${runLogName}
            runId: ${testRun.id}
    

    Using getRunLog

    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 getRunLog(args: GetRunLogArgs, opts?: InvokeOptions): Promise<GetRunLogResult>
    function getRunLogOutput(args: GetRunLogOutputArgs, opts?: InvokeOptions): Output<GetRunLogResult>
    def get_run_log(base64_encode_content: Optional[bool] = None,
                    name: Optional[str] = None,
                    run_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetRunLogResult
    def get_run_log_output(base64_encode_content: Optional[pulumi.Input[bool]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    run_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetRunLogResult]
    func GetRunLog(ctx *Context, args *GetRunLogArgs, opts ...InvokeOption) (*GetRunLogResult, error)
    func GetRunLogOutput(ctx *Context, args *GetRunLogOutputArgs, opts ...InvokeOption) GetRunLogResultOutput

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

    public static class GetRunLog 
    {
        public static Task<GetRunLogResult> InvokeAsync(GetRunLogArgs args, InvokeOptions? opts = null)
        public static Output<GetRunLogResult> Invoke(GetRunLogInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRunLogResult> getRunLog(GetRunLogArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataFlow/getRunLog:getRunLog
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the log. Avoid entering confidential information.
    RunId string
    The unique ID for the run
    Base64EncodeContent bool
    Name string
    The name of the log. Avoid entering confidential information.
    RunId string
    The unique ID for the run
    Base64EncodeContent bool
    name String
    The name of the log. Avoid entering confidential information.
    runId String
    The unique ID for the run
    base64EncodeContent Boolean
    name string
    The name of the log. Avoid entering confidential information.
    runId string
    The unique ID for the run
    base64EncodeContent boolean
    name str
    The name of the log. Avoid entering confidential information.
    run_id str
    The unique ID for the run
    base64_encode_content bool
    name String
    The name of the log. Avoid entering confidential information.
    runId String
    The unique ID for the run
    base64EncodeContent Boolean

    getRunLog Result

    The following output properties are available:

    Content string
    The content of the run log.
    ContentType string
    The content type of the run log.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    RunId string
    Base64EncodeContent bool
    Content string
    The content of the run log.
    ContentType string
    The content type of the run log.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    RunId string
    Base64EncodeContent bool
    content String
    The content of the run log.
    contentType String
    The content type of the run log.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    runId String
    base64EncodeContent Boolean
    content string
    The content of the run log.
    contentType string
    The content type of the run log.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    runId string
    base64EncodeContent boolean
    content str
    The content of the run log.
    content_type str
    The content type of the run log.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    run_id str
    base64_encode_content bool
    content String
    The content of the run log.
    contentType String
    The content type of the run log.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    runId String
    base64EncodeContent Boolean

    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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi