GetScheduledTasks

This data source provides available scheduled task resources.

NOTE: Available in 1.72.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ds = Output.Create(AliCloud.Ess.GetScheduledTasks.InvokeAsync(new AliCloud.Ess.GetScheduledTasksArgs
        {
            NameRegex = "scheduled_task_name",
            ScheduledTaskId = "scheduled_task_id",
        }));
        this.FirstScheduledTask = ds.Apply(ds => ds.Tasks[0].Id);
    }

    [Output("firstScheduledTask")]
    public Output<string> FirstScheduledTask { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

ds = alicloud.ess.get_scheduled_tasks(name_regex="scheduled_task_name",
    scheduled_task_id="scheduled_task_id")
pulumi.export("firstScheduledTask", ds.tasks[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ds = pulumi.output(alicloud.ess.getScheduledTasks({
    nameRegex: "scheduled_task_name",
    scheduledTaskId: "scheduled_task_id",
}, { async: true }));

export const firstScheduledTask = ds.tasks[0].id;

Using GetScheduledTasks

function getScheduledTasks(args: GetScheduledTasksArgs, opts?: InvokeOptions): Promise<GetScheduledTasksResult>
function  get_scheduled_tasks(ids=None, name_regex=None, output_file=None, scheduled_action=None, scheduled_task_id=None, opts=None)
func GetScheduledTasks(ctx *Context, args *GetScheduledTasksArgs, opts ...InvokeOption) (*GetScheduledTasksResult, error)
public static class GetScheduledTasks {
    public static Task<GetScheduledTasksResult> InvokeAsync(GetScheduledTasksArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

A list of scheduled task IDs.

NameRegex string

A regex string to filter resulting scheduled tasks by name.

OutputFile string
ScheduledAction string

The operation to be performed when a scheduled task is triggered.

ScheduledTaskId string

The id of the scheduled task.

Ids []string

A list of scheduled task IDs.

NameRegex string

A regex string to filter resulting scheduled tasks by name.

OutputFile string
ScheduledAction string

The operation to be performed when a scheduled task is triggered.

ScheduledTaskId string

The id of the scheduled task.

ids string[]

A list of scheduled task IDs.

nameRegex string

A regex string to filter resulting scheduled tasks by name.

outputFile string
scheduledAction string

The operation to be performed when a scheduled task is triggered.

scheduledTaskId string

The id of the scheduled task.

ids List[str]

A list of scheduled task IDs.

name_regex str

A regex string to filter resulting scheduled tasks by name.

output_file str
scheduled_action str

The operation to be performed when a scheduled task is triggered.

scheduled_task_id str

The id of the scheduled task.

GetScheduledTasks Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of scheduled task ids.

Names List<string>

A list of scheduled task names.

Tasks List<Pulumi.AliCloud.Ess.Outputs.GetScheduledTasksTask>

A list of scheduled tasks. Each element contains the following attributes:

NameRegex string
OutputFile string
ScheduledAction string

The operation to be performed when a scheduled task is triggered.

ScheduledTaskId string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of scheduled task ids.

Names []string

A list of scheduled task names.

Tasks []GetScheduledTasksTask

A list of scheduled tasks. Each element contains the following attributes:

NameRegex string
OutputFile string
ScheduledAction string

The operation to be performed when a scheduled task is triggered.

ScheduledTaskId string
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of scheduled task ids.

names string[]

A list of scheduled task names.

tasks GetScheduledTasksTask[]

A list of scheduled tasks. Each element contains the following attributes:

nameRegex string
outputFile string
scheduledAction string

The operation to be performed when a scheduled task is triggered.

scheduledTaskId string
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of scheduled task ids.

names List[str]

A list of scheduled task names.

tasks List[GetScheduledTasksTask]

A list of scheduled tasks. Each element contains the following attributes:

name_regex str
output_file str
scheduled_action str

The operation to be performed when a scheduled task is triggered.

scheduled_task_id str

Supporting Types

GetScheduledTasksTask

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Description string

Description of the scheduled task.

Id string

ID of the scheduled task id.

LaunchExpirationTime int

The time period during which a failed scheduled task is retried.

LaunchTime string

The time at which the scheduled task is triggered.

MaxValue int
MinValue int
Name string

Name of the scheduled task name.

RecurrenceEndTime string

Specifies the end time after which the scheduled task is no longer repeated.

RecurrenceType string

Specifies the recurrence type of the scheduled task.

RecurrenceValue string

Specifies how often a scheduled task recurs.

ScheduledAction string

The operation to be performed when a scheduled task is triggered.

TaskEnabled bool
Description string

Description of the scheduled task.

Id string

ID of the scheduled task id.

LaunchExpirationTime int

The time period during which a failed scheduled task is retried.

LaunchTime string

The time at which the scheduled task is triggered.

MaxValue int
MinValue int
Name string

Name of the scheduled task name.

RecurrenceEndTime string

Specifies the end time after which the scheduled task is no longer repeated.

RecurrenceType string

Specifies the recurrence type of the scheduled task.

RecurrenceValue string

Specifies how often a scheduled task recurs.

ScheduledAction string

The operation to be performed when a scheduled task is triggered.

TaskEnabled bool
description string

Description of the scheduled task.

id string

ID of the scheduled task id.

launchExpirationTime number

The time period during which a failed scheduled task is retried.

launchTime string

The time at which the scheduled task is triggered.

maxValue number
minValue number
name string

Name of the scheduled task name.

recurrenceEndTime string

Specifies the end time after which the scheduled task is no longer repeated.

recurrenceType string

Specifies the recurrence type of the scheduled task.

recurrenceValue string

Specifies how often a scheduled task recurs.

scheduledAction string

The operation to be performed when a scheduled task is triggered.

taskEnabled boolean
description str

Description of the scheduled task.

id str

ID of the scheduled task id.

launch_expiration_time float

The time period during which a failed scheduled task is retried.

launch_time str

The time at which the scheduled task is triggered.

maxValue float
minValue float
name str

Name of the scheduled task name.

recurrence_end_time str

Specifies the end time after which the scheduled task is no longer repeated.

recurrence_type str

Specifies the recurrence type of the scheduled task.

recurrence_value str

Specifies how often a scheduled task recurs.

scheduled_action str

The operation to be performed when a scheduled task is triggered.

task_enabled bool

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.