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

CloudOps Orchestration Service:ACS-ADB-BulkyModifyDBClusterMaintainTime

最終更新日:Jan 17, 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-ACS-ADB-BulkyModifyDBClusterMaintainTime.yml をご参照ください。

テンプレートコンテンツ

FormatVersion: OOS-2019-06-01
Description:
  en: Modify instance's maintain time
  zh-cn: the description in Chinese
  name-en: ACS-ADB-BulkyModifyDBClusterMaintainTime
  name-zh-cn: the description in Chinese
  categories:
    - security
Parameters:
  regionId:
    Label:
      en: RegionId
      zh-cn: the description in Chinese
    Type: String
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  instanceIds:
    Label:
      en: The instance ids
      zh-cn: the description in Chinese
    Type: List
  maintainTime:
    Description:
      en: Maintain time
      zh-cn: the description in Chinese
    Label:
      en: Maintain time
      zh-cn: the description in Chinese
    Type: String
  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
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: modifyDBClusterMaintainTime
    Action: ACS::ExecuteAPI
    Description:
      en: Modify instance's maintain time.
      zh-cn: the description in Chinese
    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: the description in Chinese
            en: Select Instance
      - Parameters:
          - maintainTime
        Label:
          default:
            zh-cn: the description in Chinese
            en: Maintain Time
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
            zh-cn: the description in Chinese
            en: Control Options