1. Packages
  2. Alicloud Provider
  3. API Docs
  4. fnf
  5. getExecutions
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.fnf.getExecutions

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    This data source provides the FnF Executions of the current Alibaba Cloud user.

    NOTE: Available in v1.149.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.fnf.getExecutions({
        flowName: "example_value",
        ids: [
            "my-Execution-1",
            "my-Execution-2",
        ],
    });
    export const fnfExecutionId1 = idsAlicloudFnFExecutions.executions[0].id;
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.fnf.get_executions(flow_name="example_value",
        ids=[
            "my-Execution-1",
            "my-Execution-2",
        ])
    pulumi.export("fnfExecutionId1", ids_alicloud_fn_f_executions["executions"][0]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fnf"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fnf.GetExecutions(ctx, &fnf.GetExecutionsArgs{
    			FlowName: "example_value",
    			Ids: []string{
    				"my-Execution-1",
    				"my-Execution-2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("fnfExecutionId1", idsAlicloudFnFExecutions.Executions[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.FNF.GetExecutions.Invoke(new()
        {
            FlowName = "example_value",
            Ids = new[]
            {
                "my-Execution-1",
                "my-Execution-2",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["fnfExecutionId1"] = idsAlicloudFnFExecutions.Executions[0].Id,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.fnf.FnfFunctions;
    import com.pulumi.alicloud.fnf.inputs.GetExecutionsArgs;
    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 ids = FnfFunctions.getExecutions(GetExecutionsArgs.builder()
                .flowName("example_value")
                .ids(            
                    "my-Execution-1",
                    "my-Execution-2")
                .build());
    
            ctx.export("fnfExecutionId1", idsAlicloudFnFExecutions.executions()[0].id());
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:fnf:getExecutions
          Arguments:
            flowName: example_value
            ids:
              - my-Execution-1
              - my-Execution-2
    outputs:
      fnfExecutionId1: ${idsAlicloudFnFExecutions.executions[0].id}
    

    Using getExecutions

    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 getExecutions(args: GetExecutionsArgs, opts?: InvokeOptions): Promise<GetExecutionsResult>
    function getExecutionsOutput(args: GetExecutionsOutputArgs, opts?: InvokeOptions): Output<GetExecutionsResult>
    def get_executions(enable_details: Optional[bool] = None,
                       flow_name: Optional[str] = None,
                       ids: Optional[Sequence[str]] = None,
                       name_regex: Optional[str] = None,
                       output_file: Optional[str] = None,
                       status: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetExecutionsResult
    def get_executions_output(enable_details: Optional[pulumi.Input[bool]] = None,
                       flow_name: Optional[pulumi.Input[str]] = None,
                       ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       name_regex: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       status: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetExecutionsResult]
    func GetExecutions(ctx *Context, args *GetExecutionsArgs, opts ...InvokeOption) (*GetExecutionsResult, error)
    func GetExecutionsOutput(ctx *Context, args *GetExecutionsOutputArgs, opts ...InvokeOption) GetExecutionsResultOutput

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

    public static class GetExecutions 
    {
        public static Task<GetExecutionsResult> InvokeAsync(GetExecutionsArgs args, InvokeOptions? opts = null)
        public static Output<GetExecutionsResult> Invoke(GetExecutionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetExecutionsResult> getExecutions(GetExecutionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:fnf/getExecutions:getExecutions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FlowName string
    The name of the flow.
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids List<string>
    A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
    NameRegex string
    A regex string to filter results by Execution name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the resource. Valid values: Running, Stopped, Succeeded, Failed, TimedOut.
    FlowName string
    The name of the flow.
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids []string
    A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
    NameRegex string
    A regex string to filter results by Execution name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the resource. Valid values: Running, Stopped, Succeeded, Failed, TimedOut.
    flowName String
    The name of the flow.
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
    nameRegex String
    A regex string to filter results by Execution name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the resource. Valid values: Running, Stopped, Succeeded, Failed, TimedOut.
    flowName string
    The name of the flow.
    enableDetails boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids string[]
    A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
    nameRegex string
    A regex string to filter results by Execution name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The status of the resource. Valid values: Running, Stopped, Succeeded, Failed, TimedOut.
    flow_name str
    The name of the flow.
    enable_details bool
    Default to false. Set it to true can output more details about resource attributes.
    ids Sequence[str]
    A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
    name_regex str
    A regex string to filter results by Execution name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The status of the resource. Valid values: Running, Stopped, Succeeded, Failed, TimedOut.
    flowName String
    The name of the flow.
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
    nameRegex String
    A regex string to filter results by Execution name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the resource. Valid values: Running, Stopped, Succeeded, Failed, TimedOut.

    getExecutions Result

    The following output properties are available:

    Executions List<Pulumi.AliCloud.FNF.Outputs.GetExecutionsExecution>
    FlowName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    EnableDetails bool
    NameRegex string
    OutputFile string
    Status string
    Executions []GetExecutionsExecution
    FlowName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    EnableDetails bool
    NameRegex string
    OutputFile string
    Status string
    executions List<GetExecutionsExecution>
    flowName String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    enableDetails Boolean
    nameRegex String
    outputFile String
    status String
    executions GetExecutionsExecution[]
    flowName string
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    enableDetails boolean
    nameRegex string
    outputFile string
    status string
    executions Sequence[GetExecutionsExecution]
    flow_name str
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    enable_details bool
    name_regex str
    output_file str
    status str
    executions List<Property Map>
    flowName String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    enableDetails Boolean
    nameRegex String
    outputFile String
    status String

    Supporting Types

    GetExecutionsExecution

    ExecutionName string
    The name of the execution.
    FlowName string
    The name of the flow.
    Id string
    The ID of the Execution. The value formats as <flow_name>:<execution_name>.
    Input string
    The Input information for this execution.
    Output string
    The output of the execution.
    StartedTime string
    The started time of the execution.
    Status string
    The status of the resource.
    StoppedTime string
    The stopped time of the execution.
    ExecutionName string
    The name of the execution.
    FlowName string
    The name of the flow.
    Id string
    The ID of the Execution. The value formats as <flow_name>:<execution_name>.
    Input string
    The Input information for this execution.
    Output string
    The output of the execution.
    StartedTime string
    The started time of the execution.
    Status string
    The status of the resource.
    StoppedTime string
    The stopped time of the execution.
    executionName String
    The name of the execution.
    flowName String
    The name of the flow.
    id String
    The ID of the Execution. The value formats as <flow_name>:<execution_name>.
    input String
    The Input information for this execution.
    output String
    The output of the execution.
    startedTime String
    The started time of the execution.
    status String
    The status of the resource.
    stoppedTime String
    The stopped time of the execution.
    executionName string
    The name of the execution.
    flowName string
    The name of the flow.
    id string
    The ID of the Execution. The value formats as <flow_name>:<execution_name>.
    input string
    The Input information for this execution.
    output string
    The output of the execution.
    startedTime string
    The started time of the execution.
    status string
    The status of the resource.
    stoppedTime string
    The stopped time of the execution.
    execution_name str
    The name of the execution.
    flow_name str
    The name of the flow.
    id str
    The ID of the Execution. The value formats as <flow_name>:<execution_name>.
    input str
    The Input information for this execution.
    output str
    The output of the execution.
    started_time str
    The started time of the execution.
    status str
    The status of the resource.
    stopped_time str
    The stopped time of the execution.
    executionName String
    The name of the execution.
    flowName String
    The name of the flow.
    id String
    The ID of the Execution. The value formats as <flow_name>:<execution_name>.
    input String
    The Input information for this execution.
    output String
    The output of the execution.
    startedTime String
    The started time of the execution.
    status String
    The status of the resource.
    stoppedTime String
    The stopped time of the execution.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi