Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.oos.getExecutions
Explore with Pulumi AI
This data source provides a list of OOS Executions in an Alibaba Cloud account according to the specified filters.
NOTE: Available in v1.93.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Declare the data source
const example = alicloud.oos.getExecutions({
    ids: ["execution_id"],
    templateName: "name",
    status: "Success",
});
export const firstExecutionId = example.then(example => example.executions?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
# Declare the data source
example = alicloud.oos.get_executions(ids=["execution_id"],
    template_name="name",
    status="Success")
pulumi.export("firstExecutionId", example.executions[0].id)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oos"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Declare the data source
		example, err := oos.GetExecutions(ctx, &oos.GetExecutionsArgs{
			Ids: []string{
				"execution_id",
			},
			TemplateName: pulumi.StringRef("name"),
			Status:       pulumi.StringRef("Success"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstExecutionId", example.Executions[0].Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    // Declare the data source
    var example = AliCloud.Oos.GetExecutions.Invoke(new()
    {
        Ids = new[]
        {
            "execution_id",
        },
        TemplateName = "name",
        Status = "Success",
    });
    return new Dictionary<string, object?>
    {
        ["firstExecutionId"] = example.Apply(getExecutionsResult => getExecutionsResult.Executions[0]?.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.oos.OosFunctions;
import com.pulumi.alicloud.oos.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) {
        // Declare the data source
        final var example = OosFunctions.getExecutions(GetExecutionsArgs.builder()
            .ids("execution_id")
            .templateName("name")
            .status("Success")
            .build());
        ctx.export("firstExecutionId", example.applyValue(getExecutionsResult -> getExecutionsResult.executions()[0].id()));
    }
}
variables:
  # Declare the data source
  example:
    fn::invoke:
      Function: alicloud:oos:getExecutions
      Arguments:
        ids:
          - execution_id
        templateName: name
        status: Success
outputs:
  firstExecutionId: ${example.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(category: Optional[str] = None,
                   end_date: Optional[str] = None,
                   end_date_after: Optional[str] = None,
                   executed_by: Optional[str] = None,
                   ids: Optional[Sequence[str]] = None,
                   include_child_execution: Optional[bool] = None,
                   mode: Optional[str] = None,
                   output_file: Optional[str] = None,
                   parent_execution_id: Optional[str] = None,
                   ram_role: Optional[str] = None,
                   sort_field: Optional[str] = None,
                   sort_order: Optional[str] = None,
                   start_date_after: Optional[str] = None,
                   start_date_before: Optional[str] = None,
                   status: Optional[str] = None,
                   tags: Optional[Mapping[str, Any]] = None,
                   template_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetExecutionsResult
def get_executions_output(category: Optional[pulumi.Input[str]] = None,
                   end_date: Optional[pulumi.Input[str]] = None,
                   end_date_after: Optional[pulumi.Input[str]] = None,
                   executed_by: Optional[pulumi.Input[str]] = None,
                   ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   include_child_execution: Optional[pulumi.Input[bool]] = None,
                   mode: Optional[pulumi.Input[str]] = None,
                   output_file: Optional[pulumi.Input[str]] = None,
                   parent_execution_id: Optional[pulumi.Input[str]] = None,
                   ram_role: Optional[pulumi.Input[str]] = None,
                   sort_field: Optional[pulumi.Input[str]] = None,
                   sort_order: Optional[pulumi.Input[str]] = None,
                   start_date_after: Optional[pulumi.Input[str]] = None,
                   start_date_before: Optional[pulumi.Input[str]] = None,
                   status: Optional[pulumi.Input[str]] = None,
                   tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                   template_name: 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:oos/getExecutions:getExecutions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Category string
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - End
Date string - The time when the execution was ended.
 - End
Date stringAfter  - Execution whose end time is less than or equal to the specified time.
 - Executed
By string - The user who execute the template.
 - Ids List<string>
 - A list of OOS Execution ids.
 - Include
Child boolExecution  - Whether to include sub-execution.
 - Mode string
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - Output
File string - File name where to save data source results (after running 
pulumi preview). - Parent
Execution stringId  - The id of parent OOS Execution.
 - Ram
Role string - The role that executes the current template.
 - Sort
Field string - The sort field.
 - Sort
Order string - The sort order.
 - Start
Date stringAfter  - The execution whose start time is greater than or equal to the specified time.
 - Start
Date stringBefore  - The execution with start time less than or equal to the specified time.
 - Status string
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - Dictionary<string, object>
 - A mapping of tags to assign to the resource.
 - Template
Name string - The name of execution template.
 
- Category string
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - End
Date string - The time when the execution was ended.
 - End
Date stringAfter  - Execution whose end time is less than or equal to the specified time.
 - Executed
By string - The user who execute the template.
 - Ids []string
 - A list of OOS Execution ids.
 - Include
Child boolExecution  - Whether to include sub-execution.
 - Mode string
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - Output
File string - File name where to save data source results (after running 
pulumi preview). - Parent
Execution stringId  - The id of parent OOS Execution.
 - Ram
Role string - The role that executes the current template.
 - Sort
Field string - The sort field.
 - Sort
Order string - The sort order.
 - Start
Date stringAfter  - The execution whose start time is greater than or equal to the specified time.
 - Start
Date stringBefore  - The execution with start time less than or equal to the specified time.
 - Status string
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - map[string]interface{}
 - A mapping of tags to assign to the resource.
 - Template
Name string - The name of execution template.
 
- category String
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - end
Date String - The time when the execution was ended.
 - end
Date StringAfter  - Execution whose end time is less than or equal to the specified time.
 - executed
By String - The user who execute the template.
 - ids List<String>
 - A list of OOS Execution ids.
 - include
Child BooleanExecution  - Whether to include sub-execution.
 - mode String
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - output
File String - File name where to save data source results (after running 
pulumi preview). - parent
Execution StringId  - The id of parent OOS Execution.
 - ram
Role String - The role that executes the current template.
 - sort
Field String - The sort field.
 - sort
Order String - The sort order.
 - start
Date StringAfter  - The execution whose start time is greater than or equal to the specified time.
 - start
Date StringBefore  - The execution with start time less than or equal to the specified time.
 - status String
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - Map<String,Object>
 - A mapping of tags to assign to the resource.
 - template
Name String - The name of execution template.
 
- category string
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - end
Date string - The time when the execution was ended.
 - end
Date stringAfter  - Execution whose end time is less than or equal to the specified time.
 - executed
By string - The user who execute the template.
 - ids string[]
 - A list of OOS Execution ids.
 - include
Child booleanExecution  - Whether to include sub-execution.
 - mode string
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - output
File string - File name where to save data source results (after running 
pulumi preview). - parent
Execution stringId  - The id of parent OOS Execution.
 - ram
Role string - The role that executes the current template.
 - sort
Field string - The sort field.
 - sort
Order string - The sort order.
 - start
Date stringAfter  - The execution whose start time is greater than or equal to the specified time.
 - start
Date stringBefore  - The execution with start time less than or equal to the specified time.
 - status string
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - {[key: string]: any}
 - A mapping of tags to assign to the resource.
 - template
Name string - The name of execution template.
 
- category str
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - end_
date str - The time when the execution was ended.
 - end_
date_ strafter  - Execution whose end time is less than or equal to the specified time.
 - executed_
by str - The user who execute the template.
 - ids Sequence[str]
 - A list of OOS Execution ids.
 - include_
child_ boolexecution  - Whether to include sub-execution.
 - mode str
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - output_
file str - File name where to save data source results (after running 
pulumi preview). - parent_
execution_ strid  - The id of parent OOS Execution.
 - ram_
role str - The role that executes the current template.
 - sort_
field str - The sort field.
 - sort_
order str - The sort order.
 - start_
date_ strafter  - The execution whose start time is greater than or equal to the specified time.
 - start_
date_ strbefore  - The execution with start time less than or equal to the specified time.
 - status str
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - Mapping[str, Any]
 - A mapping of tags to assign to the resource.
 - template_
name str - The name of execution template.
 
- category String
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - end
Date String - The time when the execution was ended.
 - end
Date StringAfter  - Execution whose end time is less than or equal to the specified time.
 - executed
By String - The user who execute the template.
 - ids List<String>
 - A list of OOS Execution ids.
 - include
Child BooleanExecution  - Whether to include sub-execution.
 - mode String
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - output
File String - File name where to save data source results (after running 
pulumi preview). - parent
Execution StringId  - The id of parent OOS Execution.
 - ram
Role String - The role that executes the current template.
 - sort
Field String - The sort field.
 - sort
Order String - The sort order.
 - start
Date StringAfter  - The execution whose start time is greater than or equal to the specified time.
 - start
Date StringBefore  - The execution with start time less than or equal to the specified time.
 - status String
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - Map<Any>
 - A mapping of tags to assign to the resource.
 - template
Name String - The name of execution template.
 
getExecutions Result
The following output properties are available:
- Executions
List<Pulumi.
Ali Cloud. Oos. Outputs. Get Executions Execution>  - A list of OOS Executions. Each element contains the following attributes:
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids List<string>
 - A list of OOS Execution ids.
 - Category string
 - End
Date string - End
Date stringAfter  - Executed
By string - Include
Child boolExecution  - Mode string
 - Output
File string - Parent
Execution stringId  - Ram
Role string - Sort
Field string - Sort
Order string - Start
Date stringAfter  - Start
Date stringBefore  - Status string
 - Dictionary<string, object>
 - Template
Name string 
- Executions
[]Get
Executions Execution  - A list of OOS Executions. Each element contains the following attributes:
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - A list of OOS Execution ids.
 - Category string
 - End
Date string - End
Date stringAfter  - Executed
By string - Include
Child boolExecution  - Mode string
 - Output
File string - Parent
Execution stringId  - Ram
Role string - Sort
Field string - Sort
Order string - Start
Date stringAfter  - Start
Date stringBefore  - Status string
 - map[string]interface{}
 - Template
Name string 
- executions
List<Get
Executions Execution>  - A list of OOS Executions. Each element contains the following attributes:
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - A list of OOS Execution ids.
 - category String
 - end
Date String - end
Date StringAfter  - executed
By String - include
Child BooleanExecution  - mode String
 - output
File String - parent
Execution StringId  - ram
Role String - sort
Field String - sort
Order String - start
Date StringAfter  - start
Date StringBefore  - status String
 - Map<String,Object>
 - template
Name String 
- executions
Get
Executions Execution[]  - A list of OOS Executions. Each element contains the following attributes:
 - id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - A list of OOS Execution ids.
 - category string
 - end
Date string - end
Date stringAfter  - executed
By string - include
Child booleanExecution  - mode string
 - output
File string - parent
Execution stringId  - ram
Role string - sort
Field string - sort
Order string - start
Date stringAfter  - start
Date stringBefore  - status string
 - {[key: string]: any}
 - template
Name string 
- executions
Sequence[Get
Executions Execution]  - A list of OOS Executions. Each element contains the following attributes:
 - id str
 - The provider-assigned unique ID for this managed resource.
 - ids Sequence[str]
 - A list of OOS Execution ids.
 - category str
 - end_
date str - end_
date_ strafter  - executed_
by str - include_
child_ boolexecution  - mode str
 - output_
file str - parent_
execution_ strid  - ram_
role str - sort_
field str - sort_
order str - start_
date_ strafter  - start_
date_ strbefore  - status str
 - Mapping[str, Any]
 - template_
name str 
- executions List<Property Map>
 - A list of OOS Executions. Each element contains the following attributes:
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - A list of OOS Execution ids.
 - category String
 - end
Date String - end
Date StringAfter  - executed
By String - include
Child BooleanExecution  - mode String
 - output
File String - parent
Execution StringId  - ram
Role String - sort
Field String - sort
Order String - start
Date StringAfter  - start
Date StringBefore  - status String
 - Map<Any>
 - template
Name String 
Supporting Types
GetExecutionsExecution  
- Category string
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - Counters string
 - The counters of OOS Execution.
 - Create
Date string - The time when the execution was created.
 - End
Date string - The time when the execution was ended.
 - Executed
By string - The user who execute the template.
 - Execution
Id string - ID of the OOS Executions.
 - Id string
 - ID of the OOS Executions.
 - Is
Parent bool - Whether to include subtasks.
 - Mode string
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - Outputs string
 - The outputs of OOS Executions.
 - Parameters string
 - The parameters required by the template
 - Parent
Execution stringId  - The id of parent OOS Execution.
 - Ram
Role string - The role that executes the current template.
 - Start
Date string - The time when the template was started.
 - Status string
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - Status
Message string - The message of status.
 - Status
Reason string - The reason of status.
 - Template
Id string - The id of execution template.
 - Template
Name string - The name of execution template.
 - Template
Version string - The version of execution template.
 - Update
Date string - The time when the template was updated.
 
- Category string
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - Counters string
 - The counters of OOS Execution.
 - Create
Date string - The time when the execution was created.
 - End
Date string - The time when the execution was ended.
 - Executed
By string - The user who execute the template.
 - Execution
Id string - ID of the OOS Executions.
 - Id string
 - ID of the OOS Executions.
 - Is
Parent bool - Whether to include subtasks.
 - Mode string
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - Outputs string
 - The outputs of OOS Executions.
 - Parameters string
 - The parameters required by the template
 - Parent
Execution stringId  - The id of parent OOS Execution.
 - Ram
Role string - The role that executes the current template.
 - Start
Date string - The time when the template was started.
 - Status string
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - Status
Message string - The message of status.
 - Status
Reason string - The reason of status.
 - Template
Id string - The id of execution template.
 - Template
Name string - The name of execution template.
 - Template
Version string - The version of execution template.
 - Update
Date string - The time when the template was updated.
 
- category String
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - counters String
 - The counters of OOS Execution.
 - create
Date String - The time when the execution was created.
 - end
Date String - The time when the execution was ended.
 - executed
By String - The user who execute the template.
 - execution
Id String - ID of the OOS Executions.
 - id String
 - ID of the OOS Executions.
 - is
Parent Boolean - Whether to include subtasks.
 - mode String
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - outputs String
 - The outputs of OOS Executions.
 - parameters String
 - The parameters required by the template
 - parent
Execution StringId  - The id of parent OOS Execution.
 - ram
Role String - The role that executes the current template.
 - start
Date String - The time when the template was started.
 - status String
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - status
Message String - The message of status.
 - status
Reason String - The reason of status.
 - template
Id String - The id of execution template.
 - template
Name String - The name of execution template.
 - template
Version String - The version of execution template.
 - update
Date String - The time when the template was updated.
 
- category string
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - counters string
 - The counters of OOS Execution.
 - create
Date string - The time when the execution was created.
 - end
Date string - The time when the execution was ended.
 - executed
By string - The user who execute the template.
 - execution
Id string - ID of the OOS Executions.
 - id string
 - ID of the OOS Executions.
 - is
Parent boolean - Whether to include subtasks.
 - mode string
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - outputs string
 - The outputs of OOS Executions.
 - parameters string
 - The parameters required by the template
 - parent
Execution stringId  - The id of parent OOS Execution.
 - ram
Role string - The role that executes the current template.
 - start
Date string - The time when the template was started.
 - status string
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - status
Message string - The message of status.
 - status
Reason string - The reason of status.
 - template
Id string - The id of execution template.
 - template
Name string - The name of execution template.
 - template
Version string - The version of execution template.
 - update
Date string - The time when the template was updated.
 
- category str
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - counters str
 - The counters of OOS Execution.
 - create_
date str - The time when the execution was created.
 - end_
date str - The time when the execution was ended.
 - executed_
by str - The user who execute the template.
 - execution_
id str - ID of the OOS Executions.
 - id str
 - ID of the OOS Executions.
 - is_
parent bool - Whether to include subtasks.
 - mode str
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - outputs str
 - The outputs of OOS Executions.
 - parameters str
 - The parameters required by the template
 - parent_
execution_ strid  - The id of parent OOS Execution.
 - ram_
role str - The role that executes the current template.
 - start_
date str - The time when the template was started.
 - status str
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - status_
message str - The message of status.
 - status_
reason str - The reason of status.
 - template_
id str - The id of execution template.
 - template_
name str - The name of execution template.
 - template_
version str - The version of execution template.
 - update_
date str - The time when the template was updated.
 
- category String
 - The category of template. Valid: 
AlarmTrigger,EventTrigger,OtherandTimerTrigger. - counters String
 - The counters of OOS Execution.
 - create
Date String - The time when the execution was created.
 - end
Date String - The time when the execution was ended.
 - executed
By String - The user who execute the template.
 - execution
Id String - ID of the OOS Executions.
 - id String
 - ID of the OOS Executions.
 - is
Parent Boolean - Whether to include subtasks.
 - mode String
 - The mode of OOS Execution. Valid: 
Automatic,Debug. - outputs String
 - The outputs of OOS Executions.
 - parameters String
 - The parameters required by the template
 - parent
Execution StringId  - The id of parent OOS Execution.
 - ram
Role String - The role that executes the current template.
 - start
Date String - The time when the template was started.
 - status String
 - The Status of OOS Execution. Valid: 
Cancelled,Failed,Queued,Running,Started,Success,Waiting. - status
Message String - The message of status.
 - status
Reason String - The reason of status.
 - template
Id String - The id of execution template.
 - template
Name String - The name of execution template.
 - template
Version String - The version of execution template.
 - update
Date String - The time when the template was updated.
 
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.