getExecutions

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

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) {
final var example = OosFunctions.getExecutions(GetExecutionsArgs.builder()
.ids("execution_id")
.status("Success")
.templateName("name")
.build());
ctx.export("firstExecutionId", example.applyValue(getExecutionsResult -> getExecutionsResult.executions()[0].id()));
}
}

Return

A collection of values returned by getExecutions.

Parameters

argument

A collection of arguments for invoking getExecutions.


suspend fun getExecutions(category: String? = null, endDate: String? = null, endDateAfter: String? = null, executedBy: String? = null, ids: List<String>? = null, includeChildExecution: Boolean? = null, mode: String? = null, outputFile: String? = null, parentExecutionId: String? = null, ramRole: String? = null, sortField: String? = null, sortOrder: String? = null, startDateAfter: String? = null, startDateBefore: String? = null, status: String? = null, tags: Map<String, Any>? = null, templateName: String? = null): GetExecutionsResult

Return

A collection of values returned by getExecutions.

See also

Parameters

category

The category of template. Valid: AlarmTrigger, EventTrigger, Other and TimerTrigger.

endDate

The time when the execution was ended.

endDateAfter

Execution whose end time is less than or equal to the specified time.

executedBy

The user who execute the template.

ids

A list of OOS Execution ids.

includeChildExecution

Whether to include sub-execution.

mode

The mode of OOS Execution. Valid: Automatic, Debug.

outputFile

File name where to save data source results (after running pulumi preview).

parentExecutionId

The id of parent OOS Execution.

ramRole

The role that executes the current template.

sortField

The sort field.

sortOrder

The sort order.

startDateAfter

The execution whose start time is greater than or equal to the specified time.

startDateBefore

The execution with start time less than or equal to the specified time.

status

The Status of OOS Execution. Valid: Cancelled, Failed, Queued, Running, Started, Success, Waiting.

tags

A mapping of tags to assign to the resource.

templateName

The name of execution template.


Return

A collection of values returned by getExecutions.

See also

Parameters

argument

Builder for com.pulumi.alicloud.oos.kotlin.inputs.GetExecutionsPlainArgs.