テンプレート名
Elastic Compute Service (ECS) インスタンスのパブリック IP アドレスを一括で解放します。
テンプレートの説明
複数の ECS インスタンスのパブリック IP アドレスを 1 回の操作で解放します。
テンプレートタイプ
オートメーション
所有者
Alibaba Cloud
入力パラメーター
|
パラメーター名 |
説明 |
型 |
必須 |
デフォルト値 |
制約 |
|
publicIpAddress |
解放する ECS インスタンスのパブリック IP アドレス。 |
リスト |
はい |
||
|
regionId |
リージョンの ID。 |
文字列 |
いいえ |
{{ ACS::RegionId }} |
|
|
rateControl |
タスク実行の同時実行設定。 |
JSON |
いいえ |
{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} |
|
|
OOSAssumeRole |
CloudOps Orchestration Service (OOS) がテンプレートを実行するために引き受ける RAM ロール。 |
文字列 |
いいえ |
"" |
出力パラメーター
なし。
このテンプレートの実行に必要なアクセスポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:ReleasePublicIpAddress"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
詳細
ACS-ECS-BulkyReleasePublicIpAddress の詳細
テンプレートの内容
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS-ECS-BulkyReleasePublicIpAddress
name-zh-cn: ACS-ECS-BulkyReleasePublicIpAddress
en: Releases public IP addresses in batches.
zh-cn: Releases public IP addresses in batches.
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: RegionId
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
publicIpAddress:
Label:
en: PublicIpAddress
zh-cn: PublicIpAddress
Type: List
rateControl:
Label:
en: RateControl
zh-cn: RateControl
Type: JSON
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: OOSAssumeRole
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: releasePublicIpAddress
Action: ACS::ExecuteAPI
Description:
en: Releases the public IP address.
zh-cn: Releases the public IP address.
Properties:
Service: ECS
API: ReleasePublicIpAddress
Parameters:
RegionId: '{{ regionId }}'
PublicIpAddress: '{{ ACS::TaskLoopItem }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ publicIpAddress }}'