Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.DataFlow.getRunLog
Explore with Pulumi AI
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/v2/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.
- Run
Id string - The unique ID for the run
- Base64Encode
Content bool
- Name string
- The name of the log. Avoid entering confidential information.
- Run
Id string - The unique ID for the run
- Base64Encode
Content bool
- name String
- The name of the log. Avoid entering confidential information.
- run
Id String - The unique ID for the run
- base64Encode
Content Boolean
- name string
- The name of the log. Avoid entering confidential information.
- run
Id string - The unique ID for the run
- base64Encode
Content boolean
- name str
- The name of the log. Avoid entering confidential information.
- run_
id str - The unique ID for the run
- base64_
encode_ boolcontent
- name String
- The name of the log. Avoid entering confidential information.
- run
Id String - The unique ID for the run
- base64Encode
Content Boolean
getRunLog Result
The following output properties are available:
- Content string
- The content of the run log.
- Content
Type string - The content type of the run log.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Run
Id string - Base64Encode
Content bool
- Content string
- The content of the run log.
- Content
Type string - The content type of the run log.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Run
Id string - Base64Encode
Content bool
- content String
- The content of the run log.
- content
Type String - The content type of the run log.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- run
Id String - base64Encode
Content Boolean
- content string
- The content of the run log.
- content
Type string - The content type of the run log.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- run
Id string - base64Encode
Content 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_ boolcontent
- content String
- The content of the run log.
- content
Type String - The content type of the run log.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- run
Id String - base64Encode
Content Boolean
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.