テンプレート名
ACS-ECS-BulkyReleasePublicIpAddress
テンプレートの説明
複数のパブリック IP アドレスを一度に解放します。
テンプレートの種類
自動化
所有者
Alibaba Cloud
入力パラメーター
パラメーター | 説明 | 種類 | 必須 | デフォルト値 | 制限 |
publicIpAddress | 解放するパブリック IP アドレス。 | リスト | はい | ||
regionId | リージョン ID。 | 文字列 | いいえ | {{ ACS::RegionId }} | |
rateControl | レート制御設定。 | JSON | いいえ | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | CloudOps Orchestration Service (OOS) によって引き受けられる Resource Access Management (RAM) ロール。 | 文字列 | いいえ | "" |
出力パラメーター
なし
テンプレートの実行に必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:ReleasePublicIpAddress"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
参照
詳細については、GitHub の ACS-ECS-BulkyReleasePublicIpAddress.yml をご参照ください。
テンプレートの内容
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS-ECS-BulkyReleasePublicIpAddress
name-zh-cn: 中国語の説明
en: Bulky release the public ip address
zh-cn: 中国語の説明
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: 中国語の説明
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
publicIpAddress:
Label:
en: PublicIpAddress
zh-cn: 中国語の説明
Type: List
rateControl:
Label:
en: RateControl
zh-cn: 中国語の説明
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: 中国語の説明
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: releasePublicIpAddress
Action: ACS::ExecuteAPI
Description:
en: Release the public ip address
zh-cn: 中国語の説明
Properties:
Service: ECS
API: ReleasePublicIpAddress
Parameters:
RegionId: '{{ regionId }}'
PublicIpAddress: '{{ ACS::TaskLoopItem }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ publicIpAddress }}'