Active un module de protection WAF pour plusieurs domaines en masse.
Nom du modèle
ACS-WAF-BulkyModifyProtectionModuleStatus
Description du modèle
Active un module de protection Web Application Firewall (WAF).
Type de modèle
Automatisé
Propriétaire
Alibaba Cloud
Paramètres d'entrée
|
Paramètre |
description |
type |
Obligatoire |
Valeur par défaut |
Limite |
|
domains |
Noms de domaine à protéger. |
list |
Oui |
||
|
instanceId |
ID de l'instance WAF. |
string |
Oui |
||
|
defenseType |
Module de protection WAF à activer. |
string |
Oui |
||
|
regionId |
ID de la région. |
string |
Non |
{{ ACS::RegionId }} |
|
|
rateControl |
Paramètres de contrôle du débit. |
Json |
Non |
{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} |
|
|
OOSAssumeRole |
Rôle RAM endossé par OOS. |
string |
Non |
"" |
Paramètres de sortie
Aucun
permissions requises
{
"Version": "1",
"Statement": [
{
"Action": [
"waf-openapi:ModifyProtectionModuleStatus"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Références
Consultez le source du modèle sur GitHub : ACS-WAF-BulkyModifyProtectionModuleStatus.
Contenu du modèle
FormatVersion: OOS-2019-06-01
Description:
en: Modify protection module status
name-en: ACS-WAF-BulkyModifyProtectionModuleStatus
categories:
- security
Parameters:
regionId:
Type: String
Label:
en: RegionId
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
domains:
Type: List
Label:
en: Domains
instanceId:
Label:
en: InstanceId
Type: String
defenseType:
Label:
en: DefenseType
Type: String
AllowedValues:
- waf
- ac_cc
- tamperproof
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: modifyProtectionModuleStatus
Action: ACS::ExecuteAPI
Description:
en: Modify protection module status
Properties:
Service: WAF-OPENAPI
API: ModifyProtectionModuleStatus
Parameters:
RegionId: '{{ regionId }}'
DefenseType: '{{ defenseType }}'
Domain: '{{ ACS::TaskLoopItem }}'
InstanceId: '{{ instanceId }}'
ModuleStatus: 1
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ domains }}'