ACS-WAF-BulkyModifyProtectionModuleStatus

更新时间:2024-11-26 03:08:50

模板名称

ACS-WAF-BulkyModifyProtectionModuleStatus 开启WAF防护功能模块

立即执行

模板描述

开启WAF防护功能模块

模板类型

自动化

所有者

Alibaba Cloud

输入参数

参数名称

描述

类型

是否必填

默认值

约束

参数名称

描述

类型

是否必填

默认值

约束

domains

要操作的网站域名

List

instanceId

要操作的WAF实例的ID

String

defenseType

要操作的WAF防护功能模块

String

regionId

地域ID

String

{{ ACS::RegionId }}

rateControl

任务执行的并发比率

Json

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

OOSAssumeRole

OOS扮演的RAM角色

String

""

输出参数

执行此模板需要的权限策略

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "waf-openapi:ModifyProtectionModuleStatus"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

详情

ACS-WAF-BulkyModifyProtectionModuleStatus详情

模板内容

FormatVersion: OOS-2019-06-01
Description:
  en: Modify protection module status
  zh-cn: 开启WAF防护功能模块
  name-en: ACS-WAF-BulkyModifyProtectionModuleStatus
  name-zh-cn: 开启WAF防护功能模块
  categories:
    - security
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
      zh-cn: 地域ID
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  domains:
    Type: List
    Label:
      en: Domains
      zh-cn: 要操作的网站域名
  instanceId:
    Label:
      en: InstanceId
      zh-cn: 要操作的WAF实例的ID
    Type: String
  defenseType:
    Label:
      en: DefenseType
      zh-cn: 要操作的WAF防护功能模块
    Type: String
    AllowedValues:
      - waf
      - ac_cc
      - tamperproof
  rateControl:
    Label:
      en: RateControl
      zh-cn: 任务执行的并发比率
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 10
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
      zh-cn: OOS扮演的RAM角色
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: modifyProtectionModuleStatus
    Action: ACS::ExecuteAPI
    Description:
      en: Modify protection module status
      zh-cn: 开启WAF防护功能模块-规则防护引擎
    Properties:
      Service: WAF-OPENAPI
      API: ModifyProtectionModuleStatus
      Parameters:
        RegionId: '{{ regionId }}'
        DefenseType: '{{ defenseType }}'
        Domain: '{{ ACS::TaskLoopItem }}'
        InstanceId: '{{ instanceId }}'
        ModuleStatus: 1
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ domains }}'

  • 本页导读 (1)
  • 模板名称
  • 模板描述
  • 模板类型
  • 所有者
  • 输入参数
  • 输出参数
  • 执行此模板需要的权限策略
  • 详情
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等