Template name
ACS-ECS-BulkyResizeDisk: Resizes disks in a batch
Description
Resizes disks in a batch.
Template type
Automation
Owner
Alibaba Cloud
Input parameters
|
Parameter name |
Description |
Type |
Required |
Default value |
Constraints |
|
diskIds |
The IDs of the cloud disks to resize. |
List |
Yes |
||
|
newSize |
The new disk capacity. |
Number |
Yes |
||
|
regionId |
The region ID. |
String |
No |
{{ ACS::RegionId }} |
|
|
type |
The disk resize method. |
String |
No |
offline |
|
|
rateControl |
The concurrency rate for task execution. |
Json |
No |
{‘Mode’: ‘Concurrency’, ‘MaxErrors’: 0, ‘Concurrency’: 10} |
|
|
OOSAssumeRole |
The RAM role that OOS assumes. |
String |
No |
“” |
Output parameters
None
Required access policy
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:ResizeDisk"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Details
View details for ACS-ECS-BulkyResizeDisk
Template content
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