Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 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 GetRunStatement(ctx *Context, args *GetRunStatementArgs, opts ...InvokeOption) (*GetRunStatementResult, error)
func GetRunStatementOutput(ctx *Context, args *GetRunStatementOutputArgs, opts ...InvokeOption) GetRunStatementResultOutput> 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)
}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:
- Run
Id string - The unique ID for the run
 - Statement
Id string - The unique ID for the statement.
 
- Run
Id string - The unique ID for the run
 - Statement
Id string - The unique ID for the statement.
 
- run
Id String - The unique ID for the run
 - statement
Id String - The unique ID for the statement.
 
- run
Id string - The unique ID for the run
 - statement
Id 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.
 
- run
Id String - The unique ID for the run
 - statement
Id 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<Get
Run Statement Output>  - The execution output of a statement.
 - Progress double
 - The execution progress.
 - Run
Id string - The ID of a run.
 - State string
 - The current state of this statement.
 - Statement
Id string - Time
Completed string - The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 
2022-05-31T21:10:29.600Z - Time
Created 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
[]Get
Run Statement Output  - The execution output of a statement.
 - Progress float64
 - The execution progress.
 - Run
Id string - The ID of a run.
 - State string
 - The current state of this statement.
 - Statement
Id string - Time
Completed string - The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 
2022-05-31T21:10:29.600Z - Time
Created 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<Get
Run Statement Output>  - The execution output of a statement.
 - progress Double
 - The execution progress.
 - run
Id String - The ID of a run.
 - state String
 - The current state of this statement.
 - statement
Id String - time
Completed String - The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 
2022-05-31T21:10:29.600Z - time
Created 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
Get
Run Statement Output[]  - The execution output of a statement.
 - progress number
 - The execution progress.
 - run
Id string - The ID of a run.
 - state string
 - The current state of this statement.
 - statement
Id string - time
Completed string - The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 
2022-05-31T21:10:29.600Z - time
Created 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.
Get Run 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.
 - run
Id String - The ID of a run.
 - state String
 - The current state of this statement.
 - statement
Id String - time
Completed String - The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 
2022-05-31T21:10:29.600Z - time
Created 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<Get
Run Statement Output Data>  - An object representing execution output of a statement.
 - Error
Name string - The name of the error in the statement output.
 - Error
Value 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
[]Get
Run Statement Output Data  - An object representing execution output of a statement.
 - Error
Name string - The name of the error in the statement output.
 - Error
Value 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<Get
Run Statement Output Data>  - An object representing execution output of a statement.
 - error
Name String - The name of the error in the statement output.
 - error
Value 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
Get
Run Statement Output Data[]  - An object representing execution output of a statement.
 - error
Name string - The name of the error in the statement output.
 - error
Value 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[dataflow.
Get Run 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.
 - error
Name String - The name of the error in the statement output.
 - error
Value 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.