Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DataFlow.getRunStatements
Explore with Pulumi AI
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/v2/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:
- Run
Id string - The unique ID for the run
- Filters
List<Get
Run Statements Filter> - State string
- The LifecycleState of the statement.
- Run
Id string - The unique ID for the run
- Filters
[]Get
Run Statements Filter - State string
- The LifecycleState of the statement.
- run
Id String - The unique ID for the run
- filters
List<Get
Run Statements Filter> - state String
- The LifecycleState of the statement.
- run
Id string - The unique ID for the run
- filters
Get
Run Statements Filter[] - state string
- The LifecycleState of the statement.
- run_
id str - The unique ID for the run
- filters
Sequence[dataflow.
Get Run Statements Filter] - state str
- The LifecycleState of the statement.
- run
Id 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.
- Run
Id string - The ID of a run.
- Statement
Collections List<GetRun Statements Statement Collection> - The list of statement_collection.
- Filters
List<Get
Run Statements Filter> - State string
- The current state of this statement.
- Id string
- The provider-assigned unique ID for this managed resource.
- Run
Id string - The ID of a run.
- Statement
Collections []GetRun Statements Statement Collection - The list of statement_collection.
- Filters
[]Get
Run Statements Filter - State string
- The current state of this statement.
- id String
- The provider-assigned unique ID for this managed resource.
- run
Id String - The ID of a run.
- statement
Collections List<GetRun Statements Statement Collection> - The list of statement_collection.
- filters
List<Get
Run Statements Filter> - state String
- The current state of this statement.
- id string
- The provider-assigned unique ID for this managed resource.
- run
Id string - The ID of a run.
- statement
Collections GetRun Statements Statement Collection[] - The list of statement_collection.
- filters
Get
Run Statements Filter[] - 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.Get Run Statements Statement Collection] - The list of statement_collection.
- filters
Sequence[dataflow.
Get Run Statements Filter] - state str
- The current state of this statement.
- id String
- The provider-assigned unique ID for this managed resource.
- run
Id String - The ID of a run.
- statement
Collections List<Property Map> - The list of statement_collection.
- filters List<Property Map>
- state String
- The current state of this statement.
Supporting Types
GetRunStatementsFilter
GetRunStatementsStatementCollection
GetRunStatementsStatementCollectionItem
- Code string
- The statement code to execute. Example:
println(sc.version)
- Id string
- The statement ID.
- Outputs
List<Get
Run Statements Statement Collection Item Output> - The execution output of a statement.
- Progress double
- The execution progress.
- Run
Id string - The unique ID for the run
- State string
- The LifecycleState of the statement.
- 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 Statements Statement Collection Item Output Type - The execution output of a statement.
- Progress float64
- The execution progress.
- Run
Id string - The unique ID for the run
- State string
- The LifecycleState of the statement.
- 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 Statements Statement Collection Item Output> - The execution output of a statement.
- progress Double
- The execution progress.
- run
Id String - The unique ID for the run
- state String
- The LifecycleState of the statement.
- 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 Statements Statement Collection Item Output[] - The execution output of a statement.
- progress number
- The execution progress.
- run
Id string - The unique ID for the run
- state string
- The LifecycleState of the statement.
- 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 Statements Statement Collection Item Output] - 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.
- run
Id String - The unique ID for the run
- state String
- The LifecycleState of the statement.
- 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
GetRunStatementsStatementCollectionItemOutput
- Datas
List<Get
Run Statements Statement Collection Item 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 Statements Statement Collection Item 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 Statements Statement Collection Item 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 Statements Statement Collection Item 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 Statements Statement Collection Item 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.
GetRunStatementsStatementCollectionItemOutputData
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.