1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataFlow
  5. getRunStatements
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.DataFlow.getRunStatements

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides the list of Run Statements in Oracle Cloud Infrastructure Data Flow service.

    Lists all statements for a Session run.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRunStatements = oci.DataFlow.getRunStatements({
        runId: testRun.id,
        state: runStatementState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_run_statements = oci.DataFlow.get_run_statements(run_id=test_run["id"],
        state=run_statement_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataFlow"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataFlow.GetRunStatements(ctx, &dataflow.GetRunStatementsArgs{
    			RunId: testRun.Id,
    			State: pulumi.StringRef(runStatementState),
    		}, 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 testRunStatements = Oci.DataFlow.GetRunStatements.Invoke(new()
        {
            RunId = testRun.Id,
            State = runStatementState,
        });
    
    });
    
    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.GetRunStatementsArgs;
    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 testRunStatements = DataFlowFunctions.getRunStatements(GetRunStatementsArgs.builder()
                .runId(testRun.id())
                .state(runStatementState)
                .build());
    
        }
    }
    
    variables:
      testRunStatements:
        fn::invoke:
          Function: oci:DataFlow:getRunStatements
          Arguments:
            runId: ${testRun.id}
            state: ${runStatementState}
    

    Using getRunStatements

    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 getRunStatements(args: GetRunStatementsArgs, opts?: InvokeOptions): Promise<GetRunStatementsResult>
    function getRunStatementsOutput(args: GetRunStatementsOutputArgs, opts?: InvokeOptions): Output<GetRunStatementsResult>
    def get_run_statements(filters: Optional[Sequence[_dataflow.GetRunStatementsFilter]] = None,
                           run_id: Optional[str] = None,
                           state: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetRunStatementsResult
    def get_run_statements_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_dataflow.GetRunStatementsFilterArgs]]]] = None,
                           run_id: Optional[pulumi.Input[str]] = None,
                           state: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetRunStatementsResult]
    func GetRunStatements(ctx *Context, args *GetRunStatementsArgs, opts ...InvokeOption) (*GetRunStatementsResult, error)
    func GetRunStatementsOutput(ctx *Context, args *GetRunStatementsOutputArgs, opts ...InvokeOption) GetRunStatementsResultOutput

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

    public static class GetRunStatements 
    {
        public static Task<GetRunStatementsResult> InvokeAsync(GetRunStatementsArgs args, InvokeOptions? opts = null)
        public static Output<GetRunStatementsResult> Invoke(GetRunStatementsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRunStatementsResult> getRunStatements(GetRunStatementsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataFlow/getRunStatements:getRunStatements
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RunId string
    The unique ID for the run
    Filters List<GetRunStatementsFilter>
    State string
    The LifecycleState of the statement.
    RunId string
    The unique ID for the run
    Filters []GetRunStatementsFilter
    State string
    The LifecycleState of the statement.
    runId String
    The unique ID for the run
    filters List<GetRunStatementsFilter>
    state String
    The LifecycleState of the statement.
    runId string
    The unique ID for the run
    filters GetRunStatementsFilter[]
    state string
    The LifecycleState of the statement.
    run_id str
    The unique ID for the run
    filters Sequence[dataflow.GetRunStatementsFilter]
    state str
    The LifecycleState of the statement.
    runId String
    The unique ID for the run
    filters List<Property Map>
    state String
    The LifecycleState of the statement.

    getRunStatements Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RunId string
    The ID of a run.
    StatementCollections List<GetRunStatementsStatementCollection>
    The list of statement_collection.
    Filters List<GetRunStatementsFilter>
    State string
    The current state of this statement.
    Id string
    The provider-assigned unique ID for this managed resource.
    RunId string
    The ID of a run.
    StatementCollections []GetRunStatementsStatementCollection
    The list of statement_collection.
    Filters []GetRunStatementsFilter
    State string
    The current state of this statement.
    id String
    The provider-assigned unique ID for this managed resource.
    runId String
    The ID of a run.
    statementCollections List<GetRunStatementsStatementCollection>
    The list of statement_collection.
    filters List<GetRunStatementsFilter>
    state String
    The current state of this statement.
    id string
    The provider-assigned unique ID for this managed resource.
    runId string
    The ID of a run.
    statementCollections GetRunStatementsStatementCollection[]
    The list of statement_collection.
    filters GetRunStatementsFilter[]
    state string
    The current state of this statement.
    id str
    The provider-assigned unique ID for this managed resource.
    run_id str
    The ID of a run.
    statement_collections Sequence[dataflow.GetRunStatementsStatementCollection]
    The list of statement_collection.
    filters Sequence[dataflow.GetRunStatementsFilter]
    state str
    The current state of this statement.
    id String
    The provider-assigned unique ID for this managed resource.
    runId String
    The ID of a run.
    statementCollections List<Property Map>
    The list of statement_collection.
    filters List<Property Map>
    state String
    The current state of this statement.

    Supporting Types

    GetRunStatementsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetRunStatementsStatementCollection

    GetRunStatementsStatementCollectionItem

    Code string
    The statement code to execute. Example: println(sc.version)
    Id string
    The statement ID.
    Outputs List<GetRunStatementsStatementCollectionItemOutput>
    The execution output of a statement.
    Progress double
    The execution progress.
    RunId string
    The unique ID for the run
    State string
    The LifecycleState of the statement.
    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 []GetRunStatementsStatementCollectionItemOutputType
    The execution output of a statement.
    Progress float64
    The execution progress.
    RunId string
    The unique ID for the run
    State string
    The LifecycleState of the statement.
    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<GetRunStatementsStatementCollectionItemOutput>
    The execution output of a statement.
    progress Double
    The execution progress.
    runId String
    The unique ID for the run
    state String
    The LifecycleState of the statement.
    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 GetRunStatementsStatementCollectionItemOutput[]
    The execution output of a statement.
    progress number
    The execution progress.
    runId string
    The unique ID for the run
    state string
    The LifecycleState of the statement.
    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.GetRunStatementsStatementCollectionItemOutput]
    The execution output of a statement.
    progress float
    The execution progress.
    run_id str
    The unique ID for the run
    state str
    The LifecycleState of the statement.
    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 unique ID for the run
    state String
    The LifecycleState of the statement.
    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

    GetRunStatementsStatementCollectionItemOutput

    Datas List<GetRunStatementsStatementCollectionItemOutputData>
    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 []GetRunStatementsStatementCollectionItemOutputData
    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<GetRunStatementsStatementCollectionItemOutputData>
    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 GetRunStatementsStatementCollectionItemOutputData[]
    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.GetRunStatementsStatementCollectionItemOutputData]
    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.

    GetRunStatementsStatementCollectionItemOutputData

    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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi