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

CloudOps Orchestration Service:複数クラウドデスクトップの課金タイプの変更

最終更新日:Jan 17, 2025

テンプレート名

ACS-ECD-BulkyModifyDesktopChargeType

今すぐ実行

テンプレートの説明

複数のクラウドデスクトップの課金方法を一度に変更します。

テンプレートタイプ

自動

所有者

Alibaba Cloud

入力パラメーター

パラメーター

説明

データ型

必須

デフォルト値

制限

desktopIds

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

リスト

はい

periodUnit

サブスクリプション期間の単位。

文字列

はい

period

サブスクリプション期間。

数値

はい

regionId

リージョン ID。

文字列

いいえ

{{ ACS::RegionId }}

desktopChargeType

クラウドデスクトップに適用する課金方法。

文字列

いいえ

PrePaid

autoPay

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

ブール値

いいえ

True

rateControl

レート制御設定。

JSON

いいえ

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

OOSAssumeRole

CloudOps Orchestration Service (OOS) によって引き受けられる RAM ロール。

文字列

いいえ

""

出力パラメーター

該当なし。

テンプレートの実行に必要な権限ポリシー

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

参照

ACS-ECD-BulkyModifyDesktopChargeType

テンプレートコンテンツ

FormatVersion: OOS-2019-06-01
Description:
  en: Bulky Modify ECD desktop charge type   
  name-en: ACS-ECD-BulkyModifyDesktopChargeType  
Parameters:
  regionId:
    Label:
      en: RegionId      
    Type: String
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  desktopIds:
    Label:
      en: DesktopIds     
    Type: List
  desktopChargeType:
    Description:
      en: Currently only supports conversion from postpaid to monthly prepaid, and the value is PrePaid      
    Label:
      en: DesktopChargeType      
    Type: String
    AllowedValues:
      - PrePaid
    Default: PrePaid
  periodUnit:
    Label:
      en: PeriodUnit      
    Type: String
    AllowedValues:
      - Week
      - Month
      - Year
  period:
    Description:
      en: "Valid values:
          Valid values when PeriodUnit is set to Week: 1.
          Valid values when PeriodUnit is set to Month: 1, 2, 3, and 6.
          Valid values when PeriodUnit is set to Month: 1, 2, 3, 4, and 5."       
    Label:
      en: Period      
    Type: Number
    AllowedValues:
      - 1
      - 2
      - 3
      - 4
      - 5
      - 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
    Default: true
  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: modifyDesktopChargeType
    Description:
      en: Modify desktop charge type      
    Action: ACS::ECD::ModifyDesktopChargeType
    Properties:
      regionId: '{{ regionId }}'
      desktopId: '{{ ACS::TaskLoopItem }}'
      desktopChargeType: '{{ desktopChargeType }}'
      period: '{{ period }}'
      periodUnit: '{{ periodUnit }}'
      autoPay: '{{ autoPay }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ desktopIds }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - desktopChargeType
          - 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