Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.fnf.getExecutions
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Flow
Name string - The name of the flow.
 - Enable
Details bool - Default to 
false. Set it totruecan output more details about resource attributes. - Ids List<string>
 - A list of Execution IDs. The value formats as 
<flow_name>:<execution_name>. - Name
Regex string - A regex string to filter results by Execution name.
 - Output
File 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 string - The name of the flow.
 - Enable
Details bool - Default to 
false. Set it totruecan output more details about resource attributes. - Ids []string
 - A list of Execution IDs. The value formats as 
<flow_name>:<execution_name>. - Name
Regex string - A regex string to filter results by Execution name.
 - Output
File 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 String - The name of the flow.
 - enable
Details Boolean - Default to 
false. Set it totruecan output more details about resource attributes. - ids List<String>
 - A list of Execution IDs. The value formats as 
<flow_name>:<execution_name>. - name
Regex String - A regex string to filter results by Execution name.
 - output
File 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 string - The name of the flow.
 - enable
Details boolean - Default to 
false. Set it totruecan output more details about resource attributes. - ids string[]
 - A list of Execution IDs. The value formats as 
<flow_name>:<execution_name>. - name
Regex string - A regex string to filter results by Execution name.
 - output
File 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 totruecan 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. 
- flow
Name String - The name of the flow.
 - enable
Details Boolean - Default to 
false. Set it totruecan output more details about resource attributes. - ids List<String>
 - A list of Execution IDs. The value formats as 
<flow_name>:<execution_name>. - name
Regex String - A regex string to filter results by Execution name.
 - output
File 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.
Ali Cloud. FNF. Outputs. Get Executions Execution>  - Flow
Name string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids List<string>
 - Names List<string>
 - Enable
Details bool - Name
Regex string - Output
File string - Status string
 
- Executions
[]Get
Executions Execution  - Flow
Name string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - Names []string
 - Enable
Details bool - Name
Regex string - Output
File string - Status string
 
- executions
List<Get
Executions Execution>  - flow
Name String - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - names List<String>
 - enable
Details Boolean - name
Regex String - output
File String - status String
 
- executions
Get
Executions Execution[]  - flow
Name string - id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - names string[]
 - enable
Details boolean - name
Regex string - output
File string - status string
 
- executions
Sequence[Get
Executions Execution]  - 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>
 - flow
Name String - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - names List<String>
 - enable
Details Boolean - name
Regex String - output
File String - status String
 
Supporting Types
GetExecutionsExecution  
- Execution
Name string - The name of the execution.
 - Flow
Name 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.
 - Started
Time string - The started time of the execution.
 - Status string
 - The status of the resource.
 - Stopped
Time string - The stopped time of the execution.
 
- Execution
Name string - The name of the execution.
 - Flow
Name 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.
 - Started
Time string - The started time of the execution.
 - Status string
 - The status of the resource.
 - Stopped
Time string - The stopped time of the execution.
 
- execution
Name String - The name of the execution.
 - flow
Name 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.
 - started
Time String - The started time of the execution.
 - status String
 - The status of the resource.
 - stopped
Time String - The stopped time of the execution.
 
- execution
Name string - The name of the execution.
 - flow
Name 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.
 - started
Time string - The started time of the execution.
 - status string
 - The status of the resource.
 - stopped
Time 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.
 
- execution
Name String - The name of the execution.
 - flow
Name 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.
 - started
Time String - The started time of the execution.
 - status String
 - The status of the resource.
 - stopped
Time 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 
alicloudTerraform Provider.