All Products
Search
Document Center

CloudOps Orchestration Service:ACS-ECS-BulkyModifyDiskSpec

Last Updated:Dec 22, 2025

Template name

ACS-ECS-BulkyModifyDiskSpec: Batch-modifies disk specifications

Execute Now

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

Task execution concurrency

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"
        }
    ]
}

Details

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: 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