すべてのプロダクト
Search
ドキュメントセンター

CloudOps Orchestration Service:ACS-ECD-BulkyRenewDesktops

最終更新日:Jan 17, 2025

テンプレート名

ACS-ECD-BulkyRenewDesktops

今すぐ実行

テンプレートの説明

複数のサブスクリプション クラウド デスクトップを一度に更新します。

テンプレートの種類

自動化

所有者

Alibaba Cloud

入力パラメータ

パラメータ

説明

データ型

必須

デフォルト値

制限

autoPay

自動支払機能を有効にするかどうかを指定します。

ブール値

はい

regionId

リージョン ID。

文字列

いいえ

{{ ACS::RegionId }}

desktopIds

クラウド デスクトップの ID。

リスト

いいえ

[]

periodUnit

更新期間の単位。有効な値:

文字列

いいえ

Month

period

更新期間。

数値

いいえ

1

rateControl

レート制御設定。

JSON

いいえ

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

OOSAssumeRole

CloudOps Orchestration Service (OOS) によって想定される RAM ロール。

文字列

いいえ

""

出力パラメータ

該当なし。

テンプレートを実行するために必要な権限ポリシー

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

参照

ACS-ECD-BulkyRenewDesktops

テンプレートの内容

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