All Products
Search
Document Center

CloudOps Orchestration Service:ACS-ECS-ScheduleToExecuteTemplate

Last Updated:Dec 20, 2025

Template name

ACS-ECS-ScheduleToExecuteTemplate - Schedules a specified template for execution.

Execute Now

Template description

This template schedules a specified template for execution. You can use this template to run Operation Orchestration Service (OOS) templates at specific intervals or points in time, such as for automated O&M and scheduled management tasks. During configuration, provide the following required parameters: `timerTrigger` to configure the trigger type and expression, `templateName` to specify the name of the OOS template to execute, and `templateParameters` to provide the parameters required for execution. After you configure the template, it triggers and runs the specified OOS template based on the configured schedule.

Template type

Automated

Owner

Alibaba Cloud

Input parameters

Parameter

Description

Type

Required

Default value

Limit

timerTrigger

The type of the scheduled task.

Json

Yes

templateName

The template name.

String

Yes

templateParameters

The parameters that trigger the execution template.

Json

Yes

OOSAssumeRole

The Resource Access Management (RAM) role that is assumed by CloudOps Orchestration Service (OOS).

String

No

OOSServiceRole

Output parameters

None

Permission policy that is required to execute the template

{
    "Version": "1",
    "Statement": []
}

Details

For details, see ACS-ECS-ScheduleToExecuteTemplate.

Template content

FormatVersion: OOS-2019-06-01
Description:
  en: 'Schedules to execute specified template, applicable to scenarios where OOS templates need to be executed at specific intervals or time points, such as automated maintenance tasks and scheduled management tasks. During configuration, users need to provide the following required parameter information: Timer Trigger (timerTrigger), which configures the trigger type and expression, Template Name (templateName), which specifies the name of the OOS template to be executed, and Template Parameters (templateParameters), which are the parameters required for executing the template. Once defined, the template will trigger and execute the specified OOS template according to the configured schedule.'
  zh-cn: 'Schedules a specified template for execution. Use this template to run Operation Orchestration Service (OOS) templates at specific intervals or points in time, such as for automated O&M and scheduled management tasks. During configuration, provide the following required parameters: `timerTrigger` to configure the trigger type and expression, `templateName` to specify the name of the OOS template to execute, and `templateParameters` to provide the parameters required for execution. After you define the template, it triggers and runs the specified OOS template based on the configured schedule.'
  name-en: ACS-ECS-ScheduleToExecuteTemplate
  name-zh-cn: Schedule a specified template for execution
  categories:
    - time_trigger
Parameters:
  timerTrigger:
    Type: Json
    Label:
      en: TimerTrigger
      zh-cn: Timer Trigger
    AssociationProperty: ALIYUN::OOS::Component::TimerTrigger
    AssociationPropertyMetadata:
      MinuteInterval: 30
  templateName:
    Type: String
    Label:
      en: TemplateName
      zh-cn: Template Name
    AssociationProperty: TemplateName
  templateParameters:
    Label:
      en: TemplateParemeters
      zh-cn: Template Parameters
    Type: Json
    AssociationProperty: TemplateParameter
    AssociationPropertyMetadata:
      TemplateName: templateName
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
      zh-cn: RAM Role for OOS
    Type: String
    Default: OOSServiceRole
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: timerTrigger
    Action: 'ACS::TimerTrigger'
    Description:
      en: Triggers a task as scheduled by specifying type and expression
      zh-cn: Triggers a task as scheduled by specifying type and expression
    Properties:
      Type:
        'Fn::Select':
          - type
          - '{{timerTrigger}}'
      Expression:
        'Fn::Select':
          - expression
          - '{{timerTrigger}}'
      EndDate:
        'Fn::Select':
          - endDate
          - '{{ timerTrigger }}'
      StartDate:
        'Fn::Select':
          - startDate
          - '{{ timerTrigger }}'
      TimeZone:
        'Fn::Select':
          - timeZone
          - '{{ timerTrigger }}'
  - Name: executeTemplate
    Action: 'ACS::Template'
    Description:
      en: Execute template
      zh-cn: Execute template
    Properties:
      TemplateName: '{{ templateName }}'
      Parameters: '{{ templateParameters }}'