1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. fnf
  5. getExecutions
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

alicloud.fnf.getExecutions

Explore with Pulumi AI

Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 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;
Copy
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"])
Copy
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
	})
}
Copy
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,
    };
});
Copy
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());
    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetExecutions(ctx *Context, args *GetExecutionsArgs, opts ...InvokeOption) (*GetExecutionsResult, error)
func GetExecutionsOutput(ctx *Context, args *GetExecutionsOutputArgs, opts ...InvokeOption) GetExecutionsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetExecutionsResult> getExecutions(GetExecutionsArgs args, InvokeOptions options)
public static Output<GetExecutionsResult> getExecutions(GetExecutionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:fnf/getExecutions:getExecutions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

FlowName
This property is required.
Changes to this property will trigger replacement.
string
The name of the flow.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. List<string>
A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
NameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The status of the resource. Valid values: Running, Stopped, Succeeded, Failed, TimedOut.
FlowName
This property is required.
Changes to this property will trigger replacement.
string
The name of the flow.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. []string
A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
NameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The status of the resource. Valid values: Running, Stopped, Succeeded, Failed, TimedOut.
flowName
This property is required.
Changes to this property will trigger replacement.
String
The name of the flow.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
nameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The status of the resource. Valid values: Running, Stopped, Succeeded, Failed, TimedOut.
flowName
This property is required.
Changes to this property will trigger replacement.
string
The name of the flow.
enableDetails boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. string[]
A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
nameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The status of the resource. Valid values: Running, Stopped, Succeeded, Failed, TimedOut.
flow_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the flow.
enable_details bool
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
name_regex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The status of the resource. Valid values: Running, Stopped, Succeeded, Failed, TimedOut.
flowName
This property is required.
Changes to this property will trigger replacement.
String
The name of the flow.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Execution IDs. The value formats as <flow_name>:<execution_name>.
nameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 This property is required. string
The name of the execution.
FlowName This property is required. string
The name of the flow.
Id This property is required. string
The ID of the Execution. The value formats as <flow_name>:<execution_name>.
Input This property is required. string
The Input information for this execution.
Output This property is required. string
The output of the execution.
StartedTime This property is required. string
The started time of the execution.
Status This property is required. string
The status of the resource.
StoppedTime This property is required. string
The stopped time of the execution.
ExecutionName This property is required. string
The name of the execution.
FlowName This property is required. string
The name of the flow.
Id This property is required. string
The ID of the Execution. The value formats as <flow_name>:<execution_name>.
Input This property is required. string
The Input information for this execution.
Output This property is required. string
The output of the execution.
StartedTime This property is required. string
The started time of the execution.
Status This property is required. string
The status of the resource.
StoppedTime This property is required. string
The stopped time of the execution.
executionName This property is required. String
The name of the execution.
flowName This property is required. String
The name of the flow.
id This property is required. String
The ID of the Execution. The value formats as <flow_name>:<execution_name>.
input This property is required. String
The Input information for this execution.
output This property is required. String
The output of the execution.
startedTime This property is required. String
The started time of the execution.
status This property is required. String
The status of the resource.
stoppedTime This property is required. String
The stopped time of the execution.
executionName This property is required. string
The name of the execution.
flowName This property is required. string
The name of the flow.
id This property is required. string
The ID of the Execution. The value formats as <flow_name>:<execution_name>.
input This property is required. string
The Input information for this execution.
output This property is required. string
The output of the execution.
startedTime This property is required. string
The started time of the execution.
status This property is required. string
The status of the resource.
stoppedTime This property is required. string
The stopped time of the execution.
execution_name This property is required. str
The name of the execution.
flow_name This property is required. str
The name of the flow.
id This property is required. str
The ID of the Execution. The value formats as <flow_name>:<execution_name>.
input This property is required. str
The Input information for this execution.
output This property is required. str
The output of the execution.
started_time This property is required. str
The started time of the execution.
status This property is required. str
The status of the resource.
stopped_time This property is required. str
The stopped time of the execution.
executionName This property is required. String
The name of the execution.
flowName This property is required. String
The name of the flow.
id This property is required. String
The ID of the Execution. The value formats as <flow_name>:<execution_name>.
input This property is required. String
The Input information for this execution.
output This property is required. String
The output of the execution.
startedTime This property is required. String
The started time of the execution.
status This property is required. String
The status of the resource.
stoppedTime This property is required. 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.
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi