Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataFlow.getRunStatement
Explore with Pulumi AI
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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testRunStatement:
    fn::invoke:
      function: oci:DataFlow:getRunStatement
      arguments:
        runId: ${testRun.id}
        statementId: ${testStatement.id}
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>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]func LookupRunStatement(ctx *Context, args *LookupRunStatementArgs, opts ...InvokeOption) (*LookupRunStatementResult, error)
func LookupRunStatementOutput(ctx *Context, args *LookupRunStatementOutputArgs, opts ...InvokeOption) LookupRunStatementResultOutput> Note: This function is named LookupRunStatement 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)
}public static CompletableFuture<GetRunStatementResult> getRunStatement(GetRunStatementArgs args, InvokeOptions options)
public static Output<GetRunStatementResult> getRunStatement(GetRunStatementArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataFlow/getRunStatement:getRunStatement
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RunId string
- The unique ID for the run
- StatementId string
- The unique ID for the statement.
- RunId string
- The unique ID for the run
- StatementId string
- The unique ID for the statement.
- runId String
- The unique ID for the run
- statementId String
- The unique ID for the statement.
- runId string
- The unique ID for the run
- statementId string
- The unique ID for the statement.
- run_id str
- The unique ID for the run
- statement_id str
- The unique ID for the statement.
- runId String
- The unique ID for the run
- statementId 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<GetRun Statement Output> 
- 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
[]GetRun Statement Output 
- 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<GetRun Statement Output> 
- 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
GetRun Statement Output[] 
- 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[GetRun Statement Output] 
- 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
List<GetRun Statement Output Data> 
- An object representing execution output of a statement.
- ErrorName string
- The name of the error in the statement output.
- ErrorValue string
- The value of the error in the statement output.
- Status string
- Status of the statement output.
- Tracebacks List<string>
- The traceback of the statement output.
- Datas
[]GetRun Statement Output Data 
- An object representing execution output of a statement.
- ErrorName string
- The name of the error in the statement output.
- ErrorValue string
- The value of the error in the statement output.
- Status string
- Status of the statement output.
- Tracebacks []string
- The traceback of the statement output.
- datas
List<GetRun Statement Output Data> 
- An object representing execution output of a statement.
- errorName String
- The name of the error in the statement output.
- errorValue String
- The value of the error in the statement output.
- status String
- Status of the statement output.
- tracebacks List<String>
- The traceback of the statement output.
- datas
GetRun Statement Output Data[] 
- An object representing execution output of a statement.
- errorName string
- The name of the error in the statement output.
- errorValue string
- The value of the error in the statement output.
- status string
- Status of the statement output.
- tracebacks string[]
- The traceback of the statement output.
- datas
Sequence[GetRun Statement Output Data] 
- An object representing execution output of a statement.
- error_name str
- The name of the error in the statement output.
- error_value str
- The value of the error in the statement output.
- status str
- Status of the statement output.
- tracebacks Sequence[str]
- The traceback of the statement output.
- datas List<Property Map>
- An object representing execution output of a statement.
- errorName String
- The name of the error in the statement output.
- errorValue String
- The value of the error in the statement output.
- status String
- Status of the statement output.
- tracebacks List<String>
- The traceback of the statement output.
GetRunStatementOutputData    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.