All Products
Search
Document Center

CloudOps Orchestration Service:ACS-ECD-BulkyRenewDesktops

Last Updated:Jun 28, 2025

Nama template

ACS-ECD-BulkyRenewDesktops

Eksekusi Sekarang

Deskripsi template

Memperpanjang beberapa langganan desktop cloud secara bersamaan.

Tipe template

Otomatis

Pemilik

Alibaba Cloud

Parameter input

Parameter

Deskripsi

Tipe data

Diperlukan

Nilai default

Batasan

autoPay

Menentukan apakah akan mengaktifkan fitur pembayaran otomatis.

Boolean

Ya

regionId

ID wilayah.

String

Tidak

{{ ACS::RegionId }}

desktopIds

ID desktop cloud.

List

Tidak

[]

periodUnit

Satuan durasi perpanjangan. Nilai yang valid:

String

Tidak

Bulan

period

Durasi perpanjangan.

Angka

Tidak

1

rateControl

Pengaturan kontrol laju.

Json

Tidak

{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10}

OOSAssumeRole

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

String

Tidak

""

Parameter output

Tidak ada.

Kebijakan izin yang diperlukan untuk mengeksekusi template

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "ecd:RenewDesktops"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

Referensi

ACS-ECD-BulkyRenewDesktops

Isi Template

FormatVersion: OOS-2019-06-01
Description:
  en: Bulky renew subscription cloud desktops
  name-en: ACS-ECD-BulkyRenewDesktops
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  desktopIds:
    Label:
      en: DesktopIds
    Type: List
    Default: [ ]
  periodUnit:
    Label:
      en: PeriodUnit
    Type: String
    AllowedValues:
      - Year
      - Month
    Default: Month
  period:
    Description:
      en: >-
        The valid values of this parameter are determined by the PeriodUnit value.
        If PeriodUnit is set to Month, the valid values of the Period parameter are 1, 2, 3, and 6.
        If PeriodUnit is set to Year, the valid values of the Period parameter are 1, 2, 3, 4, and 5.
    Label:
      en: Period
    Type: Number
    Default: 1
    MinValue: 1
    MaxValue: 6
  autoPay:
    Description:
      en: >-
        Valid values:
        true: enables automatic payment. Make sure that you have sufficient balance in your account. Otherwise, abnormal orders are generated
        false: generates the order with no payment made. You can log on to the EDS console and complete the payment based on the order number     
    Label:
      en: AutoPay
    Type: Boolean
  rateControl:
    Label:
      en: RateControl
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 10
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: renewDesktop
    Action: 'ACS::ExecuteAPI'
    Description:
      en: Renew desktops
    Properties:
      Service: ECD
      API: RenewDesktops
      Parameters:
        RegionId: '{{ regionId }}'
        DesktopId:
          - '{{ ACS::TaskLoopItem }}'
        Period: '{{ period }}'
        PeriodUnit: '{{ periodUnit }}'
        AutoPay: '{{ autoPay }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ desktopIds }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - periodUnit
          - period
          - autoPay
        Label:
          default:
            en: Configure Parameters
      - Parameters:
          - regionId
          - desktopIds
        Label:
          default:
            en: Select ECD Desktops
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
            en: Control Options