テンプレート名
ACS-PolarDB-BulkyModifyDBClusterDeletion
テンプレートの説明
クラスタロック機能を有効または無効にします。
テンプレートの種類
自動化
所有者
Alibaba Cloud
入力パラメータ
パラメータ | 説明 | 種類 | 必須 | デフォルト値 | 制限 |
instanceIds | クラスタ ID のリスト。 | リスト | はい | ||
OOSAssumeRole | CloudOps Orchestration Service (OOS) によって引き受けられる RAM ロール。 | 文字列 | はい | ||
regionId | リージョン ID。 | 文字列 | いいえ | {{ ACS::RegionId }} | |
protection | クラスタロック機能を有効にするか無効にするかを指定します。 | ブール値 | いいえ | True | |
rateControl | レート制御設定。 | JSON | いいえ | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} |
出力パラメータ
なし
テンプレートの実行に必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"polardb:ModifyDBClusterDeletion"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
参照
詳細については、GitHub の ACS-PolarDB-BulkyModifyDBClusterDeletion.yml をご参照ください。
テンプレートの内容
FormatVersion: OOS-2019-06-01
Description:
en: Modify deletion of polardb clusters
name-en: ACS-PolarDB-BulkyModifyDBClusterDeletion
categories:
- security
Parameters:
regionId:
Label:
en: RegionId
Type: String
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
instanceIds:
Label:
en: The ids of polardb clusters
Type: List
protection:
Label:
en: Specifies whether to enable the cluster lock feature
Type: Boolean
Default: true
rateControl:
Label:
en: RateControl
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
Type: String
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: ModifyDBClusterDeletion
Action: ACS::ExecuteAPI
Description:
en: Enable or disable cluster protection
Properties:
Service: POLARDB
API: ModifyDBClusterDeletion
Parameters:
RegionId: '{{ regionId }}'
DBClusterId: '{{ ACS::TaskLoopItem }}'
Protection: '{{ protection }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ instanceIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- regionId
- instanceIds
Label:
default:
en: Select Clusters
- Parameters:
- Protection
Label:
default:
en: Enable or disable cluster protection
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
en: Control Options