1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataFlow
  5. getRunStatement
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.DataFlow.getRunStatement

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

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

Retrieves the statement corresponding to the statementId for a Session run specified by runId.

Example Usage

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

const testRunStatement = oci.DataFlow.getRunStatement({
    runId: testRun.id,
    statementId: testStatement.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_run_statement = oci.DataFlow.get_run_statement(run_id=test_run["id"],
    statement_id=test_statement["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.GetRunStatement(ctx, &dataflow.GetRunStatementArgs{
			RunId:       testRun.Id,
			StatementId: testStatement.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 testRunStatement = Oci.DataFlow.GetRunStatement.Invoke(new()
    {
        RunId = testRun.Id,
        StatementId = testStatement.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.GetRunStatementArgs;
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 testRunStatement = DataFlowFunctions.getRunStatement(GetRunStatementArgs.builder()
            .runId(testRun.id())
            .statementId(testStatement.id())
            .build());

    }
}
Copy
variables:
  testRunStatement:
    fn::invoke:
      function: oci:DataFlow:getRunStatement
      arguments:
        runId: ${testRun.id}
        statementId: ${testStatement.id}
Copy

Using getRunStatement

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 getRunStatement(args: GetRunStatementArgs, opts?: InvokeOptions): Promise<GetRunStatementResult>
function getRunStatementOutput(args: GetRunStatementOutputArgs, opts?: InvokeOptions): Output<GetRunStatementResult>
Copy
def get_run_statement(run_id: Optional[str] = None,
                      statement_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetRunStatementResult
def get_run_statement_output(run_id: Optional[pulumi.Input[str]] = None,
                      statement_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetRunStatementResult]
Copy
func GetRunStatement(ctx *Context, args *GetRunStatementArgs, opts ...InvokeOption) (*GetRunStatementResult, error)
func GetRunStatementOutput(ctx *Context, args *GetRunStatementOutputArgs, opts ...InvokeOption) GetRunStatementResultOutput
Copy

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

public static class GetRunStatement 
{
    public static Task<GetRunStatementResult> InvokeAsync(GetRunStatementArgs args, InvokeOptions? opts = null)
    public static Output<GetRunStatementResult> Invoke(GetRunStatementInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRunStatementResult> getRunStatement(GetRunStatementArgs args, InvokeOptions options)
public static Output<GetRunStatementResult> getRunStatement(GetRunStatementArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataFlow/getRunStatement:getRunStatement
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

RunId This property is required. string
The unique ID for the run
StatementId This property is required. string
The unique ID for the statement.
RunId This property is required. string
The unique ID for the run
StatementId This property is required. string
The unique ID for the statement.
runId This property is required. String
The unique ID for the run
statementId This property is required. String
The unique ID for the statement.
runId This property is required. string
The unique ID for the run
statementId This property is required. string
The unique ID for the statement.
run_id This property is required. str
The unique ID for the run
statement_id This property is required. str
The unique ID for the statement.
runId This property is required. String
The unique ID for the run
statementId This property is required. String
The unique ID for the statement.

getRunStatement Result

The following output properties are available:

Code string
The statement code to execute. Example: println(sc.version)
Id string
The statement ID.
Outputs List<GetRunStatementOutput>
The execution output of a statement.
Progress double
The execution progress.
RunId string
The ID of a run.
State string
The current state of this statement.
StatementId string
TimeCompleted string
The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 2022-05-31T21:10:29.600Z
TimeCreated string
The date and time the resource was created, expressed in RFC 3339 timestamp format. Example: 2018-04-03T21:10:29.600Z
Code string
The statement code to execute. Example: println(sc.version)
Id string
The statement ID.
Outputs []GetRunStatementOutput
The execution output of a statement.
Progress float64
The execution progress.
RunId string
The ID of a run.
State string
The current state of this statement.
StatementId string
TimeCompleted string
The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 2022-05-31T21:10:29.600Z
TimeCreated string
The date and time the resource was created, expressed in RFC 3339 timestamp format. Example: 2018-04-03T21:10:29.600Z
code String
The statement code to execute. Example: println(sc.version)
id String
The statement ID.
outputs List<GetRunStatementOutput>
The execution output of a statement.
progress Double
The execution progress.
runId String
The ID of a run.
state String
The current state of this statement.
statementId String
timeCompleted String
The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 2022-05-31T21:10:29.600Z
timeCreated String
The date and time the resource was created, expressed in RFC 3339 timestamp format. Example: 2018-04-03T21:10:29.600Z
code string
The statement code to execute. Example: println(sc.version)
id string
The statement ID.
outputs GetRunStatementOutput[]
The execution output of a statement.
progress number
The execution progress.
runId string
The ID of a run.
state string
The current state of this statement.
statementId string
timeCompleted string
The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 2022-05-31T21:10:29.600Z
timeCreated string
The date and time the resource was created, expressed in RFC 3339 timestamp format. Example: 2018-04-03T21:10:29.600Z
code str
The statement code to execute. Example: println(sc.version)
id str
The statement ID.
outputs Sequence[dataflow.GetRunStatementOutput]
The execution output of a statement.
progress float
The execution progress.
run_id str
The ID of a run.
state str
The current state of this statement.
statement_id str
time_completed str
The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 2022-05-31T21:10:29.600Z
time_created str
The date and time the resource was created, expressed in RFC 3339 timestamp format. Example: 2018-04-03T21:10:29.600Z
code String
The statement code to execute. Example: println(sc.version)
id String
The statement ID.
outputs List<Property Map>
The execution output of a statement.
progress Number
The execution progress.
runId String
The ID of a run.
state String
The current state of this statement.
statementId String
timeCompleted String
The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 2022-05-31T21:10:29.600Z
timeCreated String
The date and time the resource was created, expressed in RFC 3339 timestamp format. Example: 2018-04-03T21:10:29.600Z

Supporting Types

GetRunStatementOutput

Datas This property is required. List<GetRunStatementOutputData>
An object representing execution output of a statement.
ErrorName This property is required. string
The name of the error in the statement output.
ErrorValue This property is required. string
The value of the error in the statement output.
Status This property is required. string
Status of the statement output.
Tracebacks This property is required. List<string>
The traceback of the statement output.
Datas This property is required. []GetRunStatementOutputData
An object representing execution output of a statement.
ErrorName This property is required. string
The name of the error in the statement output.
ErrorValue This property is required. string
The value of the error in the statement output.
Status This property is required. string
Status of the statement output.
Tracebacks This property is required. []string
The traceback of the statement output.
datas This property is required. List<GetRunStatementOutputData>
An object representing execution output of a statement.
errorName This property is required. String
The name of the error in the statement output.
errorValue This property is required. String
The value of the error in the statement output.
status This property is required. String
Status of the statement output.
tracebacks This property is required. List<String>
The traceback of the statement output.
datas This property is required. GetRunStatementOutputData[]
An object representing execution output of a statement.
errorName This property is required. string
The name of the error in the statement output.
errorValue This property is required. string
The value of the error in the statement output.
status This property is required. string
Status of the statement output.
tracebacks This property is required. string[]
The traceback of the statement output.
datas This property is required. Sequence[dataflow.GetRunStatementOutputData]
An object representing execution output of a statement.
error_name This property is required. str
The name of the error in the statement output.
error_value This property is required. str
The value of the error in the statement output.
status This property is required. str
Status of the statement output.
tracebacks This property is required. Sequence[str]
The traceback of the statement output.
datas This property is required. List<Property Map>
An object representing execution output of a statement.
errorName This property is required. String
The name of the error in the statement output.
errorValue This property is required. String
The value of the error in the statement output.
status This property is required. String
Status of the statement output.
tracebacks This property is required. List<String>
The traceback of the statement output.

GetRunStatementOutputData

Type This property is required. string
The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
Value This property is required. string
The statement code execution output in html format.
Type This property is required. string
The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
Value This property is required. string
The statement code execution output in html format.
type This property is required. String
The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
value This property is required. String
The statement code execution output in html format.
type This property is required. string
The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
value This property is required. string
The statement code execution output in html format.
type This property is required. str
The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
value This property is required. str
The statement code execution output in html format.
type This property is required. String
The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
value This property is required. String
The statement code execution output in html format.

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.28.0 published on Thursday, Mar 27, 2025 by Pulumi