テンプレート名
ACS-SLB-BulkyModifyAccessControlListEntry - Server Load Balancer (SLB) のアクセス制御リスト (ACL) の IP エントリを一括で変更します
テンプレートの説明
アクセス制御リスト (ACL) の IP エントリをバッチで変更します。
テンプレートの種類
自動化
所有者
Alibaba Cloud
入力パラメーター
パラメーター | 説明 | 種類 | 必須 | デフォルト値 | 制限 |
action | 変更方法。 | String | はい | ||
aclIds | ACL ID。 | List | はい | ||
aclEntrys | アクセス制御ポリシーグループの設定。 | String | はい | ||
regionId | リージョン ID。 | String | いいえ | {{ ACS::RegionId }} | |
rateControl | 同時タスク実行率。 | Json | いいえ | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | CloudOps Orchestration Service ( OOS ) がアシュームする Resource Access Management ( RAM ) ロール。 | String | いいえ | "" |
出力パラメーター
なし
テンプレートを実行するために必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"slb:AddAccessControlListEntry",
"slb:RemoveAccessControlListEntry"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
詳細
詳細については、GitHub の ACS-SLB-BulkyModifyAccessControlListEntry をご参照ください。
テンプレートコンテンツ
FormatVersion: OOS-2019-06-01
Description:
en: アクセス制御リストのエントリを一括で変更します
name-en: ACS-SLB-BulkyModifyAccessControlListEntry
categories:
- computenest
Parameters:
regionId:
Type: String
Label:
en: リージョン ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
action:
Label:
en: 操作
Type: String
AllowedValues:
- Add
- Remove
aclIds:
Label:
en: ACL ID
AssociationProperty: ALIYUN::SLB::ACL::ACLId
AssociationPropertyMetadata:
RegionId: regionId
Type: List
aclEntrys:
Label:
en: ACL エントリ
Description:
en: <ul><li>フォーマット:[{"entry":"10.0.**.**/24","comment":"privaterule1"},{"entry":"192.168.**.**/16","comment":"privaterule2"}]</li><li>entry:アクセス制御リスト (ACL) に追加する IP エントリ。CIDR ブロックを指定できます。複数の CIDR ブロックはコンマで区切ります。</li><li>comment:IP エントリの説明。</li></ul>
Type: String
rateControl:
Label:
en: レート制御
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Conditions:
Add:
'Fn::Equals':
- '{{ action }}'
- Add
Remove:
'Fn::Equals':
- '{{ action }}'
- Remove
Tasks:
- Name: addAccessControlListEntrys
When: Add
Action: ACS::ExecuteApi
Description:
en: アクセス制御リストのエントリを追加します
Properties:
Service: SLB
API: AddAccessControlListEntry
Parameters:
RegionId: '{{ regionId }}'
AclId: '{{ ACS::TaskLoopItem }}'
AclEntrys: '{{ aclEntrys }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ aclIds }}'
- Name: removeAccessControlListEntry
When: Remove
Action: ACS::ExecuteApi
Description:
en: アクセス制御リストのエントリを削除します
Properties:
Service: SLB
API: RemoveAccessControlListEntry
Parameters:
RegionId: '{{ regionId }}'
AclId: '{{ ACS::TaskLoopItem }}'
AclEntrys: '{{ aclEntrys }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ aclIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- regionId
- action
- aclIds
- aclEntrys
Label:
default:
en: パラメーターの設定
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
en: 制御オプション