テンプレート名
ACS-ECS-BulkyModifyDiskSpec:ディスク仕様の一括変更
テンプレートの説明
複数のディスクの仕様を一度に変更します。
テンプレートの種類
自動化
所有者
Alibaba Cloud
入力パラメーター
パラメーター | 説明 | 種類 | 必須 | デフォルト値 | 制限 |
diskIds | ディスク ID。 | リスト | はい | ||
regionId | リージョン ID。 | 文字列 | いいえ | {{ ACS::RegionId }} | |
performanceLevel | ディスクのパフォーマンスレベル。 | 文字列 | いいえ | PL1 | |
diskCategory | ディスクのカテゴリ。 | 文字列 | いいえ | "" | |
rateControl | タスク実行の同時実行数 | JSON | いいえ | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | CloudOps Orchestration Service (OOS) によって引き受けられる Resource Access Management (RAM) ロール。 | 文字列 | いいえ | "" |
出力パラメーター
なし
テンプレートを実行するために必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:ModifyDiskSpec"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
詳細
詳細については、GitHub の ACS-ECS-BulkyModifyDiskSpec.yml をご参照ください。
テンプレートの内容
FormatVersion: OOS-2019-06-01
Description:
en: Bulky modify disk spec
zh-cn: Modifies disk specifications in a batch
name-en: ACS-ECS-BulkyModifyDiskSpec
name-zh-cn: Modifies disk specifications in a batch
categories:
- instance_manage
- computenest
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: Region ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
diskIds:
Label:
en: DiskIds
zh-cn: Disk IDs
AssociationProperty: ALIYUN::ECS::Disk::DiskId
AssociationPropertyMetadata:
RegionId: regionId
Type: List
performanceLevel:
Label:
en: PerformanceLevel
zh-cn: Disk Performance Level
Type: String
AllowedValues:
- PL0
- PL1
- PL2
- PL3
Default: PL1
AssociationPropertyMetadata:
Visible:
Condition:
Fn::Equals:
- ${diskCategory}
- cloud_essd
diskCategory:
Label:
en: DiskCategory
zh-cn: Disk Category
Type: String
AllowedValues:
- cloud_essd
- cloud_auto
- cloud_ssd
- cloud_efficiency
- ''
Default: ''
rateControl:
Label:
en: RateControl
zh-cn: Concurrency Rate for Task Execution
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: The RAM role assumed by OOS
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: modifyDiskSpec
Action: ACS::ExecuteApi
Description:
en: Modify disk spec
zh-cn: Modifies the disk specifications
Properties:
Service: ECS
API: ModifyDiskSpec
Parameters:
RegionId: '{{ regionId }}'
DiskId: '{{ ACS::TaskLoopItem }}'
PerformanceLevel:
Fn::If:
- Fn::Equals:
- '{{ diskCategory }}'
- cloud_essd
- '{{ performanceLevel }}'
- null
DiskCategory: '{{ diskCategory }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ diskIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- regionId
- diskIds
- diskCategory
- performanceLevel
Label:
default:
zh-cn: Parameter Settings
en: Configure Parameters
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: Advanced Options
en: Control Options