すべてのプロダクト
Search
ドキュメントセンター

CloudOps Orchestration Service:ACS-PolarDB-BulkyModifyDBClusterMaintainTime

最終更新日:Dec 21, 2025

テンプレート名

ACS-PolarDB-BulkyModifyDBClusterMaintainTime - メンテナンスウィンドウの変更

今すぐ実行

テンプレートの説明

クラスタのメンテナンス期間を変更します。

テンプレートの種類

自動化

所有者

Alibaba Cloud

入力パラメータ

パラメータ

説明

種類

必須

デフォルト値

制限

instanceIds

PolarDB クラスタの ID。

リスト

はい

maintainTime

クラスタのメンテナンス期間。

文字列

はい

OOSAssumeRole

CloudOps Orchestration Service (OOS) によって引き受けられる RAM ロール。

文字列

はい

regionId

リージョン ID。

文字列

いいえ

{{ ACS::RegionId }}

rateControl

同時タスク実行率

JSON

いいえ

{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10}

出力パラメータ

なし

テンプレートを実行するために必要な権限ポリシー

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "polardb:ModifyDBClusterMaintainTime"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

詳細

詳細については、GitHub の ACS-PolarDB-BulkyModifyDBClusterMaintainTime.yml をご参照ください。

テンプレートの内容

FormatVersion: OOS-2019-06-01
Description:
  en: Modifies the maintenance window of PolarDB clusters.
  
  name-en: ACS-PolarDB-BulkyModifyDBClusterMaintainTime
  
  categories:
    - security
    - polardb
Parameters:
  regionId:
    Label:
      en: Region ID
      
    Type: String
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  instanceIds:
    Label:
      en: The IDs of PolarDB clusters
      
    Type: List
  maintainTime:
    Description:
      en: The format is HH:mmZ-HH:mmZ. For example, 16:00Z-17:00Z means that routine maintenance can be performed from 00:00 to 01:00 (UTC+8).
      
    Label:
      en: The maintenance window of the cluster
      
    Type: String
  rateControl:
    Label:
      en: The concurrency rate for task execution
      
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 10
  OOSAssumeRole:
    Label:
      en: The RAM role assumed by OOS
      
    Type: String
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: ModifyInstanceMaintainTime
    Action: ACS::ExecuteAPI
    Description:
      en: Modifies the maintenance window of a PolarDB cluster.
      
    Properties:
      Service: POLARDB
      API: ModifyDBClusterMaintainTime
      Parameters:
        RegionId: '{{ regionId }}'
        DBClusterId: '{{ ACS::TaskLoopItem }}'
        MaintainTime: '{{ maintainTime }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ instanceIds }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - maintainTime
        Label:
          default:
            
            en: Set maintenance window
      - Parameters:
          - regionId
          - instanceIds
        Label:
          default:
            
            en: Select clusters
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
            
            en: Advanced options