Template name
ACS-ECS-BulkyModifyDiskSpec
Template description
Modifies the specifications of multiple disks at a time.
Template type
Automated
Owner
Alibaba Cloud
Input parameters
Parameter | Description | Type | Required | Default value | Limit |
diskIds | The disk ID. | List | Yes | ||
regionId | The region ID. | String | No | {{ ACS::RegionId }} | |
performanceLevel | The performance level of the disks. | String | No | PL1 | |
diskCategory | The category of the disks. | String | No | "" | |
rateControl | The rate control settings. | Json | No | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | The Resource Access Management (RAM) role that is assumed by CloudOps Orchestration Service (OOS). | String | No | "" |
Output parameters
None
Permission policy that is required to execute the template
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:ModifyDiskSpec"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
References
For more information, see ACS-ECS-BulkyModifyDiskSpec.yml at GitHub.
Template content
FormatVersion: OOS-2019-06-01
Description:
en: Bulky modify disk spec
zh-cn: the description in Chinese
name-en: ACS-ECS-BulkyModifyDiskSpec
name-zh-cn: the description in Chinese
categories:
- instance_manage
- computenest
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: the description in Chinese
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
diskIds:
Label:
en: DiskIds
zh-cn: the description in Chinese
AssociationProperty: ALIYUN::ECS::Disk::DiskId
AssociationPropertyMetadata:
RegionId: regionId
Type: List
performanceLevel:
Label:
en: PerformanceLevel
zh-cn: the description in Chinese
Type: String
AllowedValues:
- PL0
- PL1
- PL2
- PL3
Default: PL1
diskCategory:
Label:
en: DiskCategory
zh-cn: the description in Chinese
Type: String
AllowedValues:
- cloud_essd
- cloud_auto
- cloud_ssd
- cloud_efficiency
- ''
Default: ''
rateControl:
Label:
en: RateControl
zh-cn: the description in Chinese
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: the description in Chinese
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: modifyDiskSpec
Action: ACS::ExecuteApi
Description:
en: Modify disk spec
zh-cn: the description in Chinese
Properties:
Service: ECS
API: ModifyDiskSpec
Parameters:
RegionId: '{{ regionId }}'
DiskId: '{{ ACS::TaskLoopItem }}'
PerformanceLevel: '{{ performanceLevel }}'
DiskCategory: '{{ diskCategory }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ diskIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- regionId
- diskIds
- performanceLevel
- diskCategory
Label:
default:
zh-cn: the description in Chinese
en: Configure Parameters
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: the description in Chinese
en: Control Options