テンプレート名
ACS-ECS-BulkyResizeDisk:ディスクをバッチでリサイズします
説明
ディスクをバッチでリサイズします。
テンプレートタイプ
オートメーション
所有者
Alibaba Cloud
入力パラメーター
|
パラメーター名 |
説明 |
タイプ |
必須 |
デフォルト値 |
制約 |
|
diskIds |
リサイズするクラウドディスクの ID です。 |
List |
はい |
||
|
newSize |
新しいディスク容量です。 |
Number |
はい |
||
|
regionId |
リージョン ID です。 |
String |
いいえ |
{{ ACS::RegionId }} |
|
|
type |
ディスクのリサイズ方法です。 |
String |
いいえ |
offline |
|
|
rateControl |
タスク実行のレート制御です。 |
Json |
いいえ |
{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} |
|
|
OOSAssumeRole |
OOS が引き受ける RAM ロールです。 |
String |
いいえ |
"" |
出力パラメーター
なし
必要なアクセスポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:ResizeDisk"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
詳細
ACS-ECS-BulkyResizeDisk の詳細を表示
テンプレートの内容
FormatVersion: OOS-2019-06-01
Description:
en: Batch resizes disks.
name-en: ACS-ECS-BulkyResizeDisk
categories:
- instance_manage
- computenest
Parameters:
regionId:
Type: String
Label:
en: Region ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
diskIds:
Label:
en: Disk ID
AssociationProperty: ALIYUN::ECS::Disk::DiskId
AssociationPropertyMetadata:
RegionId: regionId
Type: List
newSize:
Label:
en: New Size
Type: Number
MinValue: 20
MaxValue: 32768
type:
Label:
en: Resize Method
Description:
en: |
<p>Valid values:</p>
<ul>
<li>offline (default): Offline resize. You must restart the instance in the console or call the RebootInstance API after the resize to make the operation take effect.</li>
<li>online: Online resize. The resize is complete without restarting the instance. This method is supported for ultra disks, standard SSDs, and enhanced SSDs.</li>
</ul>
Type: String
AllowedValues:
- online
- offline
Default: offline
rateControl:
Label:
en: Rate Control
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOS Assume Role
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: resizeDisk
Action: ACS::ExecuteApi
Description:
en: Resizes the disk.
Properties:
Service: ECS
API: ResizeDisk
Parameters:
RegionId: '{{ regionId }}'
DiskId: '{{ ACS::TaskLoopItem }}'
NewSize: '{{ newSize }}'
Type: '{{ type }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ diskIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- regionId
- diskIds
- newSize
- type
Label:
default:
en: Parameter Settings
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
en: Advanced Settings