Template name
ACS-PolarDB-BulkyModifyDBClusterDeletion
Template description
Enables or disables the cluster lock feature.
Template type
Automated
Owner
Alibaba Cloud
Input parameters
Parameter | Description | Type | Required | Default value | Limit |
instanceIds | The list of cluster IDs. | List | Yes | ||
OOSAssumeRole | The RAM role that is assumed by CloudOps Orchestration Service (OOS). | String | Yes | ||
regionId | The region ID. | String | No | {{ ACS::RegionId }} | |
protection | Specifies whether to enable or disable the cluster lock feature. | Boolean | No | True | |
rateControl | The rate control settings. | Json | No | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} |
Output parameters
None
Permission policy that is required to execute the template
{
"Version": "1",
"Statement": [
{
"Action": [
"polardb:ModifyDBClusterDeletion"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
References
For more information, see ACS-PolarDB-BulkyModifyDBClusterDeletion.yml at GitHub.
Template content
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