Nama Templat
ACS-ECS-BulkyResizeDisk: Ubah ukuran disk secara batch
Deskripsi
Mengubah ukuran disk secara batch.
Jenis templat
Automation
Pemilik
Alibaba Cloud
Parameter input
|
Nama parameter |
Deskripsi |
Tipe |
Wajib |
Nilai default |
Batasan |
|
diskIds |
ID disk cloud yang akan diubah ukurannya. |
List |
Ya |
||
|
newSize |
Kapasitas disk baru. |
Number |
Ya |
||
|
regionId |
ID wilayah. |
String |
Tidak |
{{ ACS::RegionId }} |
|
|
type |
Metode pengubahan ukuran disk. |
String |
Tidak |
offline |
|
|
rateControl |
Laju konkurensi untuk eksekusi task. |
Json |
Tidak |
{‘Mode’: ‘Concurrency’, ‘MaxErrors’: 0, ‘Concurrency’: 10} |
|
|
OOSAssumeRole |
Peran RAM yang diasumsikan oleh OOS. |
String |
Tidak |
“” |
Parameter output
Tidak ada
Kebijakan akses yang diperlukan
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:ResizeDisk"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Detail
Lihat detail untuk ACS-ECS-BulkyResizeDisk
Konten Templat
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 IDs
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. After the resize, you must restart the instance in the console or call the RebootInstance API for the operation to take effect.</li>
<li>online: Online resize. The resize is completed without restarting the instance. This method is supported for ultra disks, standard SSDs, and enterprise 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 options