Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
This data source provides available scheduled task resources.
NOTE: Available since v1.72.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ds = alicloud.ess.getScheduledTasks({
scheduledTaskId: "scheduled_task_id",
nameRegex: "scheduled_task_name",
});
export const firstScheduledTask = ds.then(ds => ds.tasks?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ds = alicloud.ess.get_scheduled_tasks(scheduled_task_id="scheduled_task_id",
name_regex="scheduled_task_name")
pulumi.export("firstScheduledTask", ds.tasks[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ess"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ds, err := ess.GetScheduledTasks(ctx, &ess.GetScheduledTasksArgs{
ScheduledTaskId: pulumi.StringRef("scheduled_task_id"),
NameRegex: pulumi.StringRef("scheduled_task_name"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstScheduledTask", ds.Tasks[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ds = AliCloud.Ess.GetScheduledTasks.Invoke(new()
{
ScheduledTaskId = "scheduled_task_id",
NameRegex = "scheduled_task_name",
});
return new Dictionary<string, object?>
{
["firstScheduledTask"] = ds.Apply(getScheduledTasksResult => getScheduledTasksResult.Tasks[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ess.EssFunctions;
import com.pulumi.alicloud.ess.inputs.GetScheduledTasksArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 ds = EssFunctions.getScheduledTasks(GetScheduledTasksArgs.builder()
.scheduledTaskId("scheduled_task_id")
.nameRegex("scheduled_task_name")
.build());
ctx.export("firstScheduledTask", ds.tasks()[0].id());
}
}
variables:
ds:
fn::invoke:
function: alicloud:ess:getScheduledTasks
arguments:
scheduledTaskId: scheduled_task_id
nameRegex: scheduled_task_name
outputs:
firstScheduledTask: ${ds.tasks[0].id}
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
data "alicloud_ess_getscheduledtasks" "ds" {
scheduled_task_id = "scheduled_task_id"
name_regex = "scheduled_task_name"
}
output "firstScheduledTask" {
value = data.alicloud_ess_getscheduledtasks.ds.tasks[0].id
}
Using getScheduledTasks
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 getScheduledTasks(args: GetScheduledTasksArgs, opts?: InvokeOptions): Promise<GetScheduledTasksResult>
function getScheduledTasksOutput(args: GetScheduledTasksOutputArgs, opts?: InvokeOutputOptions): Output<GetScheduledTasksResult>def get_scheduled_tasks(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
scaling_group_id: Optional[str] = None,
scheduled_action: Optional[str] = None,
scheduled_task_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScheduledTasksResult
def get_scheduled_tasks_output(ids: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
name_regex: pulumi.Input[Optional[str]] = None,
output_file: pulumi.Input[Optional[str]] = None,
scaling_group_id: pulumi.Input[Optional[str]] = None,
scheduled_action: pulumi.Input[Optional[str]] = None,
scheduled_task_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetScheduledTasksResult]func GetScheduledTasks(ctx *Context, args *GetScheduledTasksArgs, opts ...InvokeOption) (*GetScheduledTasksResult, error)
func GetScheduledTasksOutput(ctx *Context, args *GetScheduledTasksOutputArgs, opts ...InvokeOption) GetScheduledTasksResultOutput> Note: This function is named GetScheduledTasks in the Go SDK.
public static class GetScheduledTasks
{
public static Task<GetScheduledTasksResult> InvokeAsync(GetScheduledTasksArgs args, InvokeOptions? opts = null)
public static Output<GetScheduledTasksResult> Invoke(GetScheduledTasksInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetScheduledTasksResult> Invoke(GetScheduledTasksInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetScheduledTasksResult> getScheduledTasks(GetScheduledTasksArgs args, InvokeOptions options)
public static Output<GetScheduledTasksResult> getScheduledTasks(GetScheduledTasksArgs args, InvokeOptions options)
public static Output<GetScheduledTasksResult> getScheduledTasks(GetScheduledTasksArgs args, InvokeOutputOptions options)
fn::invoke:
function: alicloud:ess/getScheduledTasks:getScheduledTasks
arguments:
# arguments dictionarydata "alicloud_ess_get_scheduled_tasks" "name" {
# arguments
}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 - File name where to save data source results (after running
pulumi preview). - Scaling
Group stringId - The id of the scaling group to which the scheduled task belongs.
- 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 - File name where to save data source results (after running
pulumi preview). - Scaling
Group stringId - The id of the scaling group to which the scheduled task belongs.
- 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(string)
- A list of scheduled task IDs.
- name_
regex string - A regex string to filter resulting scheduled tasks by name.
- output_
file string - File name where to save data source results (after running
pulumi preview). - scaling_
group_ stringid - The id of the scaling group to which the scheduled task belongs.
- 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<String>
- A list of scheduled task IDs.
- name
Regex String - A regex string to filter resulting scheduled tasks by name.
- output
File String - File name where to save data source results (after running
pulumi preview). - scaling
Group StringId - The id of the scaling group to which the scheduled task belongs.
- 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 - File name where to save data source results (after running
pulumi preview). - scaling
Group stringId - The id of the scaling group to which the scheduled task belongs.
- scheduled
Action string - The operation to be performed when a scheduled task is triggered.
- scheduled
Task stringId - The id of the scheduled task.
- ids Sequence[str]
- A list of scheduled task IDs.
- name_
regex str - A regex string to filter resulting scheduled tasks by name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - scaling_
group_ strid - The id of the scaling group to which the scheduled task belongs.
- scheduled_
action str - The operation to be performed when a scheduled task is triggered.
- scheduled_
task_ strid - The id of the scheduled task.
- 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 - File name where to save data source results (after running
pulumi preview). - scaling
Group StringId - The id of the scaling group to which the scheduled task belongs.
- scheduled
Action String - The operation to be performed when a scheduled task is triggered.
- scheduled
Task StringId - 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 - Scaling
Group stringId - The id of the scaling group to which the scheduled task belongs.
- 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 - Scaling
Group stringId - The id of the scaling group to which the scheduled task belongs.
- 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 list(string)
- A list of scheduled task ids.
- names list(string)
- A list of scheduled task names.
- tasks list(object)
- A list of scheduled tasks. Each element contains the following attributes:
- name_
regex string - output_
file string - scaling_
group_ stringid - The id of the scaling group to which the scheduled task belongs.
- 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 List<String>
- A list of scheduled task ids.
- names List<String>
- 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 String - output
File String - scaling
Group StringId - The id of the scaling group to which the scheduled task belongs.
- 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 - scaling
Group stringId - The id of the scaling group to which the scheduled task belongs.
- 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 Sequence[str]
- A list of scheduled task ids.
- names Sequence[str]
- A list of scheduled task names.
- tasks
Sequence[Get
Scheduled Tasks Task] - A list of scheduled tasks. Each element contains the following attributes:
- name_
regex str - output_
file str - scaling_
group_ strid - The id of the scaling group to which the scheduled task belongs.
- scheduled_
action str - The operation to be performed when a scheduled task is triggered.
- scheduled_
task_ strid
- 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<Property Map>
- A list of scheduled tasks. Each element contains the following attributes:
- name
Regex String - output
File String - scaling
Group StringId - The id of the scaling group to which the scheduled task belongs.
- scheduled
Action String - The operation to be performed when a scheduled task is triggered.
- scheduled
Task StringId
Supporting Types
GetScheduledTasksTask
- 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 - The maximum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- Min
Value int - The minimum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- 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.
- Scaling
Group stringId - The id of the scaling group to which the scheduled task belongs.
- Scheduled
Action string - The operation to be performed when a scheduled task is triggered.
- Task
Enabled bool - Whether to start the scheduled task.
- 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 - The maximum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- Min
Value int - The minimum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- 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.
- Scaling
Group stringId - The id of the scaling group to which the scheduled task belongs.
- Scheduled
Action string - The operation to be performed when a scheduled task is triggered.
- Task
Enabled bool - Whether to start the scheduled task.
- 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 - The maximum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- min_
value number - The minimum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- 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.
- scaling_
group_ stringid - The id of the scaling group to which the scheduled task belongs.
- scheduled_
action string - The operation to be performed when a scheduled task is triggered.
- task_
enabled bool - Whether to start the scheduled task.
- description String
- Description of the scheduled task.
- id String
- ID of the scheduled task id.
- launch
Expiration IntegerTime - 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 Integer - The maximum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- min
Value Integer - The minimum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- 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.
- scaling
Group StringId - The id of the scaling group to which the scheduled task belongs.
- scheduled
Action String - The operation to be performed when a scheduled task is triggered.
- task
Enabled Boolean - Whether to start the scheduled task.
- 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 - The maximum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- min
Value number - The minimum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- 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.
- scaling
Group stringId - The id of the scaling group to which the scheduled task belongs.
- scheduled
Action string - The operation to be performed when a scheduled task is triggered.
- task
Enabled boolean - Whether to start the scheduled task.
- description str
- Description of the scheduled task.
- id str
- ID of the scheduled task id.
- launch_
expiration_ inttime - 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 int - The maximum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- min_
value int - The minimum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- 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.
- scaling_
group_ strid - The id of the scaling group to which the scheduled task belongs.
- scheduled_
action str - The operation to be performed when a scheduled task is triggered.
- task_
enabled bool - Whether to start the scheduled task.
- 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 - The maximum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- min
Value Number - The minimum number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group.
- 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.
- scaling
Group StringId - The id of the scaling group to which the scheduled task belongs.
- scheduled
Action String - The operation to be performed when a scheduled task is triggered.
- task
Enabled Boolean - Whether to start the scheduled task.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi