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

CloudOps Orchestration Service:ACS-ADB-BulkyModifyDBClusterMaintainTime

最終更新日:Dec 21, 2025

テンプレート名

ACS-ADB-BulkyModifyDBClusterMaintainTime インスタンスのメンテナンスウィンドウの変更

今すぐ実行

テンプレートの説明

クラスターのメンテナンスウィンドウを変更します。

テンプレートタイプ

自動化

所有者

Alibaba Cloud

入力パラメーター

パラメーター

説明

タイプ

必須

デフォルト値

制限

instanceIds

AnalyticDB for MySQL クラスターの ID。

リスト

はい

maintainTime

メンテナンスウィンドウ。

文字列

はい

OOSAssumeRole

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

文字列

はい

regionId

リージョン ID。

文字列

いいえ

{{ ACS::RegionId }}

rateControl

同時タスク実行レート

JSON

いいえ

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

出力パラメーター

なし

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

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

詳細

詳細については、GitHub にある「ACS-ADB-BulkyModifyDBClusterMaintainTime.yml」をご参照ください。

テンプレートコンテンツ

FormatVersion: OOS-2019-06-01
Description:
  en: Modify instance's maintain time
  zh-cn: Modifies the maintenance window for instances.
  name-en: ACS-ADB-BulkyModifyDBClusterMaintainTime
  name-zh-cn: Modify the maintenance window for instances
  categories:
    - security
    - analyticdb
Parameters:
  regionId:
    Label:
      en: RegionId
      zh-cn: The ID of the region.
    Type: String
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  instanceIds:
    Label:
      en: The instance ids
      zh-cn: The list of ADB instance IDs.
    Type: List
  maintainTime:
    Description:
      en: Maintain time
      zh-cn: The maintenance window for the cluster. The format is hh:mmZ-hh:mmZ. For example: 22:00Z-23:00Z.
    Label:
      en: Maintain time
      zh-cn: The maintenance window for the cluster.
    Type: String
  rateControl:
    Label:
      en: RateControl
      zh-cn: The 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 that OOS assumes.
    Type: String
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: modifyDBClusterMaintainTime
    Action: ACS::ExecuteAPI
    Description:
      en: Modify instance's maintain time.
      zh-cn: Modifies the maintenance window of the instance.
    Properties:
      Service: ADB
      API: ModifyDBClusterMaintainTime
      Parameters:
        RegionId: '{{ regionId }}'
        DBClusterId: '{{ ACS::TaskLoopItem }}'
        MaintainTime: '{{ maintainTime }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ instanceIds }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - regionId
          - instanceIds
        Label:
          default:
            zh-cn: Select Instances
            en: Select Instance
      - Parameters:
          - maintainTime
        Label:
          default:
            zh-cn: Cluster Maintenance Window
            en: Maintain Time
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
            zh-cn: Advanced Options
            en: Control Options