All Products
Search
Document Center

CloudOps Orchestration Service:ACS-SLB-BulkySetLoadBalancerDeleteProtection

Last Updated:Dec 27, 2024

Template name

ACS-SLB-BulkySetLoadBalancerDeleteProtection

Execute Now

Template description

Enables deletion protection for multiple Server Load Balancer (SLB) instances at a time.

Template type

Automated

Owner

Alibaba Cloud

Input parameters

Parameter

Description

Type

Required

Default value

Limit

loadBalancerIds

The IDs of the SLB instances.

List

Yes

regionId

The region ID.

String

No

{{ ACS::RegionId }}

rateControl

The rate control settings.

Json

No

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

OOSAssumeRole

The Resource Access Management (RAM) role that is assumed by CloudOps Orchestration Service (OOS).

String

No

""

Output parameters

None

Permission policy that is required to execute the template

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "slb:DescribeLoadBalancerAttribute",
                "slb:SetLoadBalancerDeleteProtection"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

References

For more information, see ACS-SLB-BulkySetLoadBalancerDeleteProtection at GitHub.

Template content

FormatVersion: OOS-2019-06-01
Description:
  en: Bulky set loadbalancer deletion protection
  name-en: ACS-SLB-BulkySetLoadBalancerDeleteProtection
  categories:
    - security
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  loadBalancerIds:
    Label:
      en: LoadBalancerIds
    Type: List
  rateControl:
    Label:
      en: RateControl
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 10
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: enableLoadBalancerDeletionProtection
  Action: ACS::SLB::SetLoadBalancerDeleteProtection
  Description:
    en: Set loadBalancer deletion protection
  Properties:
    regionId: '{{ regionId }}'
    loadBalancerId: '{{ ACS::TaskLoopItem }}'
    deleteProtection: 'on'
  Loop:
    RateControl: '{{ rateControl }}'
    Items: '{{ loadBalancerIds }}'