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.
- Name
Regex string A regex string to filter resulting scheduled tasks by name.
- Output
File string - Scheduled
Action string The operation to be performed when a scheduled task is triggered.
- Scheduled
Task stringId The id of the scheduled task.
- Ids []string
A list of scheduled task IDs.
- Name
Regex string A regex string to filter resulting scheduled tasks by name.
- Output
File string - Scheduled
Action string The operation to be performed when a scheduled task is triggered.
- Scheduled
Task stringId The id of the scheduled task.
- ids string[]
A list of scheduled task IDs.
- name
Regex string A regex string to filter resulting scheduled tasks by name.
- output
File string - scheduled
Action string The operation to be performed when a scheduled task is triggered.
- scheduled
Task stringId 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_ strid 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.
Ali Cloud. Ess. Outputs. Get Scheduled Tasks Task> A list of scheduled tasks. Each element contains the following attributes:
- Name
Regex string - Output
File string - Scheduled
Action string The operation to be performed when a scheduled task is triggered.
- Scheduled
Task stringId
- 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
[]Get
Scheduled Tasks Task A list of scheduled tasks. Each element contains the following attributes:
- Name
Regex string - Output
File string - Scheduled
Action string The operation to be performed when a scheduled task is triggered.
- Scheduled
Task stringId
- 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
Get
Scheduled Tasks Task[] A list of scheduled tasks. Each element contains the following attributes:
- name
Regex string - output
File string - scheduled
Action string The operation to be performed when a scheduled task is triggered.
- scheduled
Task stringId
- 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[Get
Scheduled Tasks Task] 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_ strid
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.
- Launch
Expiration intTime The time period during which a failed scheduled task is retried.
- Launch
Time string The time at which the scheduled task is triggered.
- Max
Value int - Min
Value int - Name string
Name of the scheduled task name.
- Recurrence
End stringTime Specifies the end time after which the scheduled task is no longer repeated.
- Recurrence
Type string Specifies the recurrence type of the scheduled task.
- Recurrence
Value string Specifies how often a scheduled task recurs.
- Scheduled
Action string The operation to be performed when a scheduled task is triggered.
- Task
Enabled bool
- Description string
Description of the scheduled task.
- Id string
ID of the scheduled task id.
- Launch
Expiration intTime The time period during which a failed scheduled task is retried.
- Launch
Time string The time at which the scheduled task is triggered.
- Max
Value int - Min
Value int - Name string
Name of the scheduled task name.
- Recurrence
End stringTime Specifies the end time after which the scheduled task is no longer repeated.
- Recurrence
Type string Specifies the recurrence type of the scheduled task.
- Recurrence
Value string Specifies how often a scheduled task recurs.
- Scheduled
Action string The operation to be performed when a scheduled task is triggered.
- Task
Enabled bool
- description string
Description of the scheduled task.
- id string
ID of the scheduled task id.
- launch
Expiration numberTime The time period during which a failed scheduled task is retried.
- launch
Time string The time at which the scheduled task is triggered.
- max
Value number - min
Value number - name string
Name of the scheduled task name.
- recurrence
End stringTime Specifies the end time after which the scheduled task is no longer repeated.
- recurrence
Type string Specifies the recurrence type of the scheduled task.
- recurrence
Value string Specifies how often a scheduled task recurs.
- scheduled
Action string The operation to be performed when a scheduled task is triggered.
- task
Enabled boolean
- description str
Description of the scheduled task.
- id str
ID of the scheduled task id.
- launch_
expiration_ floattime The time period during which a failed scheduled task is retried.
- launch_
time str The time at which the scheduled task is triggered.
- max
Value float - min
Value float - name str
Name of the scheduled task name.
- recurrence_
end_ strtime 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
alicloudTerraform Provider.