1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataFlow
  5. getRunStatement
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DataFlow.getRunStatement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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,
    });
    
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataFlow/getRunStatement:getRunStatement
      arguments:
        # arguments dictionary

    The 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<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 List<GetRunStatementOutputData>
    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 []GetRunStatementOutputData
    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<GetRunStatementOutputData>
    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 GetRunStatementOutputData[]
    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[dataflow.GetRunStatementOutputData]
    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

    Type string
    The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
    Value string
    The statement code execution output in html format.
    Type string
    The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
    Value string
    The statement code execution output in html format.
    type String
    The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
    value String
    The statement code execution output in html format.
    type string
    The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
    value string
    The statement code execution output in html format.
    type str
    The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
    value str
    The statement code execution output in html format.
    type String
    The type of the StatementOutputData like TEXT_PLAIN, TEXT_HTML or IMAGE_PNG.
    value 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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi