全部产品
Search
文档中心

CloudOps Orchestration Service:ACS-ECS-ScheduleToExecuteTemplate

更新时间:Dec 21, 2025

Nama Template

ACS-ECS-ScheduleToExecuteTemplate – Menjadwalkan eksekusi templat tertentu.

Jalankan Sekarang

Deskripsi Template

Templat ini menjadwalkan eksekusi templat tertentu. Anda dapat menggunakannya untuk menjalankan templat Operation Orchestration Service (OOS) pada interval atau waktu tertentu, misalnya untuk tugas O&M otomatis dan manajemen tugas terjadwal. Saat mengonfigurasi, tentukan parameter yang diperlukan berikut: timerTrigger untuk mengatur jenis dan ekspresi pemicu, templateName untuk menentukan nama templat OOS yang akan dieksekusi, serta templateParameters untuk menyediakan parameter yang dibutuhkan selama eksekusi. Setelah dikonfigurasi, templat ini akan memicu dan menjalankan templat OOS yang ditentukan sesuai jadwal yang telah ditetapkan.

Jenis Template

Otomatis

Pemilik

Alibaba Cloud

Parameter input

Parameter

Deskripsi

Tipe

Diperlukan

Nilai Default

Batasan

timerTrigger

Jenis tugas terjadwal.

Json

Ya

templateName

Nama template.

String

Ya

templateParameters

Parameter yang memicu eksekusi template.

Json

Ya

OOSAssumeRole

Peran Resource Access Management (RAM) yang diasumsikan oleh CloudOps Orchestration Service (OOS).

String

Tidak

OOSServiceRole

Parameter Output

Tidak ada

Kebijakan izin yang diperlukan untuk menjalankan template

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

Detail

Untuk detail selengkapnya, lihat ACS-ECS-ScheduleToExecuteTemplate.

Konten Template

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 }}'